Oracle11GR2用exp无法导出空表的简单方案。
alter system set deferred_segment_creation=false scope=both;
执行完需重启DBoracle账号 INSTANCE。
并且对已经建立过的表无效,只对后面新建的表有效。
对已经建立的表可以执行一下Script。
select 'analyze table ' || A.TABLE_NAME || ' compute statistics;' from user_tables A;
执行结果的SQL
select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0
执行结果的SQL