标签:tables locate 解决办法 alter ble compute order by 语句 acl
1.先进行表分析(一定要执行此步,否则查询空表可能不准确)
select ‘analyze table ‘||table_name||‘ compute statistics;‘ from user_tables;
2.再查询哪些表是空的(此步可以省略,直接进行第三步)
select table_name from user_tables where NUM_ROWS=0 order by table_name;
3.最后生成alert语句
select ‘alter table ‘||table_name||‘ allocate extent;‘ from user_tables where num_rows=0 order by table_name;
标签:tables locate 解决办法 alter ble compute order by 语句 acl
原文地址:http://www.cnblogs.com/nsw2018/p/7216915.html