Is there a way in Oracle to see which tables have data and which don't?
2 answers
One way to do this, besides running the silly pl / sql block before count(*)
for each table, is to do this:
SELECT num_rows FROM ALL_TAB_STATISTICS WHERE OWNER = 'user name';
(Alternative table: DBA_TAB_STATISTICS
, USER_TAB_STATISTICS
)
But then it is only valid if you have recently collected statistics with the package DBMS_STATS
.
+1
source to share