Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I list all tables existent in a Database Link (Oracle)?

Basically I have a Database link (Oracle) called mylink.domain, in this link we can access foundation information like name of them members and other general information.

I would like to list all table's name in this link but i don't know how to do that.

Thanks in advance

like image 399
Igor Abreu Avatar asked Apr 10 '15 07:04

Igor Abreu


People also ask

How can I see all DB links in Oracle?

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.


1 Answers

You can access the all_tables view through the dblink:

select owner, table_name
from all_tables@dblink
order by owner, table_name;
like image 122
a_horse_with_no_name Avatar answered Oct 25 '22 13:10

a_horse_with_no_name