Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7899125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:37:04+00:00 2026-06-03T08:37:04+00:00

I am currently trying to validate that an Oracle db_link is actually pointing to

  • 0

I am currently trying to validate that an Oracle db_link is actually pointing to the correct server.
When I query the db_links I get the definition of the DB_link referencing the TNSNames:

select * from all_db_links;

Gives me the following result:

OWNER: user1
DB_LINK: DBL_xxx.world
Username: User2
Host: tnsEntry1
Created: 03-MAY-12

When I test the DB_link, everything works fine:

select * from dual@"DBL_xxx.world";

DUMMY: X

However, as I do not have access to the server, I cannot make sure that the tns entry tnsEntry1 is pointed to the correct server.

Locally, I can run:

select sys_context ( 'USERENV', 'DB_NAME' ) db_name,
 sys_context ( 'USERENV', 'SESSION_USER' ) user_name,
 sys_context ( 'USERENV', 'SERVER_HOST' ) db_host
 from dual;

I tried to run the same command remotely:

select sys_context ( 'USERENV', 'DB_NAME' ) db_name,
 sys_context ( 'USERENV', 'SESSION_USER' ) user_name,
 sys_context ( 'USERENV', 'SERVER_HOST' ) db_host
 from dual@DBL_xxx.world;

But it returns only local data.

Is there a way to check the remote info? Or check the tnsnames from a sql query?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:37:05+00:00Added an answer on June 3, 2026 at 8:37 am

    This will give you the database name of the database on the other end of the database link:

    select property_value 
    from database_properties@<database_link> 
    where property_name='GLOBAL_DB_NAME'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently trying to validate some front-end values with some server-side methods (as
I am currently trying to validate a form server side, the way it works
I'm currently trying to validate fields without having an ActiveRecord::Base inheritance. My model stores
Currently trying at add ajax to a site, after much reading I discovered that
My employer is currently trying out Fogbugz and one feature that would be nice
I have a DataAnnotationValidator that I created. I am currently trying to test it
I am currently trying to hook up jQuery UI dialog so that I may
I am currently trying to validate my ASP.NET form. I need to be to
I am currently attempting to find a suitable xpath that will help me validate
I was trying to validate that a username has length > 2 on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.