Oracle check out all the empty tables

 

1. Analyze all tables

 

select 'analyze table '||table_name||' compute statistics;' from user_tables;

copy out the execution. . . . Update user_tables of num_rows

 

 2.

   select * FROM user_tables WHERE NUM_ROWS =0 ;

 

Guess you like

Origin www.cnblogs.com/cpbm/p/12455768.html