41

The title says it all, is there a way to quickly list all the current database links in oracle?

Something along the same lines as this, which lists the current user's tables:

select * from user_tables;

Thanks, GC.

asked Nov 14, 2011 at 14:25
0

2 Answers 2

57

These views are helpful for working with DB links in Oracle:

  • DBA_DB_LINKS - All DB links defined in the database
  • ALL_DB_LINKS - All DB links the current user has access to
  • USER_DB_LINKS - All DB links owned by current user

See more in Oracle documentation

answered Nov 14, 2011 at 14:33
0
11
SELECT DB_LINK, USERNAME, HOST FROM ALL_DB_LINKS 

you can try that, perhaps it can help you solve your problem

answered Nov 6, 2012 at 7:23
1
  • 4
    Doesn't this return only the links available to the current user? Just for clarification... Commented Nov 6, 2012 at 10:00

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.