Home > Blogroll, dba, sql > where is my database link listed?

where is my database link listed?

October 6th, 2008


$ sqlplus scott/tiger@DEVL
SQL> select * from all_db_links;
no rows selected
SQL> select * from dual@PROD;
D
-
X

Hey, why does this work???

Ok, after some research I found out that this seems to be an implicit loopback database link. The fact that the DEVL database has the global name set to PROD is just to annoy more ;)


SQL> select * from global_name;

GLOBAL_NAME
--------------------------------
PROD.LAURENTSCHNEIDER.COM

Bookmark and Share

  1. October 6th, 2008 at 22:57 | #1

    Laurent, btw the base is sys.link$

    Grz

    M

  2. October 6th, 2008 at 23:01 | #2

    typing via an ipod is not easy… :-)

    The FQDN is derived from your sqlnet.ora during database install

  3. Martin
    April 30th, 2009 at 11:39 | #3

    it’s not the same as using a database link, because if using a dblink, a new connection (for the link) is created, which is not the case for above construct.

  1. No trackbacks yet.