oracle exp命令不能导出空表处理方法

生成sql脚本:
set heading off;
   set echo off;
   set feedback off;
   set termout on;
   spool C:\allocate.sql;
select 'alter table '||table_name||' allocate extent;'  from dba_tables dt where dt.OWNER='CFSDT' and dt.SEGMENT_CREATED='NO';
   spool off;
生成脚本 执行生成的脚本后 在执行导出命令,这样空的表就能正常导出
要想要彻底解决这个问题 需要修改参数,
在sqlplus中,执行如下命令:
   SQL<alter system set deferred_segment_creation=false;

猜你喜欢

转载自uinotfoundexception.iteye.com/blog/2083352