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.
Related Articles
- Oracle Database Link
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile
- How to Remove and Drop Datafiles from Tablespace in Oracle Database
- Oracle EXP-00091 Error When Export Database
- Oracle Database Import Error 3113/3114
- Change Oracle Database User Password
- IMP-00016 Required Character Set Conversion Not Supported Error when Import to Oracle Database
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error
- ORA-00942 Table or View Does Not Exist Oracle Error
- View and Retrieve or Change Windows (XP, Vista, 2003, 2000 and more) and Office (XP, 2003, 92) Product Key or CD Key










































October 12th, 2008 03:18
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
July 15th, 2008 14:33
For Oracle 9i and Greater,
Use
Select * from ALL_DB_LINKS
This view is present in the SYS Schema
RvK