Oracle 11G R2 用exp无法导出空表的简单方案

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/rdsuncn1977/article/details/54708929

alter system set deferred_segment_creation=false scope=both;

执行完需重启DB 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

猜你喜欢

转载自blog.csdn.net/rdsuncn1977/article/details/54708929
今日推荐