Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

command to list tables in the database?

Status
Not open for further replies.

Wildlander

Programmer
Dec 19, 2001
2
US
I am runnint SQL Plus and am looking for a command to list the tables in the database?

-K
 
You should query the catalog view, dba_tables, if you have permission to do so. Something like

select owner, table_name from dba_tables;

If you don't have authority to select from dba_tables, you should try all_tables. That will give you a list of the tables in the database, regardless of owner, but restricted to the ones that you have authority to see.

select owner, table_name from all_tables;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top