时间:2021-07-01 10:21:17 帮助过:22人阅读
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;
oracle导不出空表的解决办法
标签:tables locate 解决办法 alter ble compute order by 语句 acl