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 View Database Links - how to check dblink in oracle - ORACLE DBLINK TABLE - oracle list database links - oracle db links view - oracle database link table - oracle dblink - oracle dblink view - view database links - dblink table in oracle - oracle show database link - oracle link table - oracle list db links - DBlink oracle - oracle show database links - dblinks in oracle - oracle view db links - show dblink - oracle view database link - oracle database link views - db links table - How to check the DBlink in Oracle - oracle database links table - database link view - list database links oracle - check database link oracle - select dblink oracle - view dblink oracle - show database link - show dblink oracle - oracle list links - view db links - how to find database links in oracle - oracle database links view - check DBLINK in oracle - how to check database link in oracle - how to check db links in oracle - view oracle database links - database link oracle view - oracle database link list - show database links oracle - view database link oracle - database links view - oracle db_link - oracle database link - oracle view or db link - oracle dblink list - dblink table -