oracle 11g导出空表的处理

2014-11-24 14:54:13 · 作者: · 浏览: 0

oracle 11g导出空表的处理
----oracle 11g的新特征,数据条数是0行表不会自动分配segment,
所以不能导出空表;所有需要手动分配segment
--查询 所有的空表 www.2cto.com
select table_name from user_tables where NUM_ROWS=0;
----为 表分配segment;如果 有多张表的话 就一张表执行一次。
alter table 表名 allocate extent;