Oracle如何导出空表?

sqlplus 登录后

1、先查询一下当前用户下的所有空表

select table_name from user_tables where NUM_ROWS=0; 

2、用以下这句查找空表

select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0  

把查询结果导出,执行导出的语句,最后exp导出!

posted on 2015-07-21 15:00  lky666  阅读(130)  评论(0)    收藏  举报

导航