select owner,table_name from all_tables;
You can enumerate some more information about your application tables to determine the number of columns and rows that are present in the tables as follows:
select a.table_name||‘[‘||count(∗)||’]=’||num_rows from user_tab_columns a,user_tables b where a.table_name=b.table_name group by a.table_name,num_rows
EMP[8]=14
DUMMY[1]=1
DEPT[3]=4
SALGRADE[3]=5
And you can enumerate the same information for all accessible/available tables, including their users, table names, and the number of rows in these tables as follows:
select b.owner||‘.’||a.table_name||‘[’||count(∗)||‘]=’||num_rows from all_tab_columns a, all_tables b where a.table_name=b.table_name group by b.owner,a.table_name,num_rows
Finally, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access