View and Retrieve Oracle Database Link Details

In Oracle, database links are named objects that are created in one database which contains detail and instruction that describes how to connect to another, entirely different, database. Database links are is a mean of performing distributed database processing, and can be used to retrieve data from a remote database of different version, or running on different operating system.

If you want to know whether any database links exist in data dictionary views, and where the database links connect to, you can get the information from DBA_DB_LINKS view.

Just launch your SQL*Plus or Toad, or whatever convenient to you and query the dba_db_links table. For example:

SQL> select * from dba_db_links;

And you will be seeing listing of database links defined, with details of OWNER, DB_LINK, USERNAME, HOST, and CREATED, which the column name itself is more or less self-explanatory.

Normally the OWNER of the database link is the person who created it, unless it was created as a public link, in which case a pseudo-user called PUBLIC is said to own it.

Beside, if you define connection host string as an entry (alias) from tnsnames.ora when creating the database links, the HOST column will show the tnsnameas alias, and not the host or remote server name that the database link is connecting to. You have to check tnsnames.ora to get the connection details.


2 Responses to “View and Retrieve Oracle Database Link Details”

  1. Mariela
    October 12th, 2008 03:18
    2

    Hola a todos..
    Quisiera saber si me pueden ayudar en eso es urgente:
    Como puedo ver las bases de datos que estan en oracle y las tablas tambien
    Desde ya agradesco su respuesta

  2. Vivek Raman
    July 15th, 2008 14:33
    1

    For Oracle 9i and Greater,

    Use
    Select * from ALL_DB_LINKS

    This view is present in the SYS Schema

    RvK

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

oracle database link view - oracle db links table - oracle dblink - oracle database link table - oracle dblink view - how to check dblink in oracle - oracle dblink table - oracle show database link - how to check the dblink in oracle - oracle db links view - view database links - Oracle View Database Links - check database link oracle - database link view - database links view - oracle link table - show dblink - check link org view sverch - find db links oracle - list database links oracle - oracle list database links - oracle find all database links - how to check DATABASE LINK in oracle - oracle database link query - oracle show all dblink - database link oracle view - dblinks in oracle - how to find database links in oracle - list oracle db links - oracle check db link - oracle view db links - ORACLE DBLINKS VIEW - dblink view oracle - HOW TO FIND LINKS INFORMATION IN ORACLE - oracle dblink dictionary - show database link oracle - dblink view - dblink views - oracle view db link - show database links oracle - oracle list db links - oracle view dblinks - dblink table in oracle - show databases in oracle - view oracle database links - oracle database link list - view database link oracle - oracle list links - how access dblink tables - find all database links -