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 dblinks - oracle show database links - oracle dblink table - oracle database link view - view database link - view dblink - oracle list database links - oracle show database link - oracle database link table - view database links - oracle view database links - dblinks in oracle - oracle database links view - oracle dblink view - oracle view database link - database link view - dblink view - dblinks oracle - show database link - oracle view DBlink - DBLINK table in Oracle - show database links - list database links oracle - oracle database link - show database in oracle - oracle list dblink - dblink table - find database links - ORACLE show dblink - oracle view dblinks - view dblink oracle - how to check DB links - list DBLINK ORACLE - oracle list database link - Oracle select DBLINK - show database links oracle - VIEW DBLINK IN ORACLE - find database link - database links view - Oracle DB links view - show dblink - oracle database link list - oracle select database links - oracle view db links - db links table in oracle - show all database in oracle - dblink views - oracle show db links - show oracle database link - view database links oracle - list oracle database links - view database link oracle - oracle select from dblink - Oracle dblink list - select dblink oracle - list dblink - oracle db link - oracle view database - db_links oracle - oracle DB_LINKS - view oracle database link - check database link oracle - database link oracle view - DB LINK view - how to find db links in oracle - show dblinks - check database link - find database links oracle - dblink oracle view - view oracle dblink - database link oracle - toad database link - db link table in oracle - how to find database links in oracle - searching a database and displaying links -