Reputation: 16676
I'm trying to retrieve a list of tables from an Oracle connection. I'm not very familiar with Oracle terminology and thus, having hard time finding the information I need.
Right now I can use Microsoft Access to connect via ODBC and it pops up with a "Link Tables" dialog that lists all tables, not just the ones I "own". None of the queries I've tried so far, give me this data.
I'm trying "SELECT * FROM all_tables
" but that doesn't show me the right data.
Upvotes: 1
Views: 17783
Reputation: 3873
SELECT * FROM TAB; that will show you all the table and views
Upvotes: 0
Reputation: 608
You can also try
SELECT * FROM USER_TABLES
It will return list of tables owned by your user.
Upvotes: 0
Reputation: 231801
ALL_TABLES
will show you all the tables that you have access to SELECT
from. DBA_TABLES
will show you all the tables that exist in the database though you'll need an additional privilege grant to be able to query the DBA*
data dictionary objects.
Upvotes: 3