Oracle 11g不能导出表解决方法

1、11G中有个新特性,当表无数据时,不分配segment,以节省空间;

  只需要在空表中添加一条数据在删除,就会产生segment。导出时则可导出空表。

(1)、查询所有表中那些是空表。

select table_name from user_tables where NUM_ROWS=0;  

(2)、拼接字符串生成SQL执行语句。

select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0 ;
posted @ 2021-08-03 13:53  唏嘘-  阅读(99)  评论(0编辑  收藏  举报