Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Oracle equivalent of 'show tables' in MySQL

There is all kinds of advice out there on the net as to how to see all the tables in an oracle database. I am very new to Oracle but if I create a 'database' which is known as an 'instance' in Oracle parlance, how would I find all the tables belonging just to that one instance as opposed to all of Oracle?

Thanks

like image 533
bluethundr Avatar asked Nov 23 '25 02:11

bluethundr


1 Answers

select *
from dba_tables

(Note that typically only the DBA role has access to that view).

If you actually want to see only the tables that are owned by the current user (not "the instance), use

select *
from user_tables;

To see the tables accessible by the current user, use:

select *
from_all_tables;

For more details, see the manual:

  • DBA_TABLES
  • USER_TABLES
  • ALL_TABLES

Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!