PL/SQL Developer 导入导出dmp 解决exp-00011

exp-00011出现的原因:在11g中空表是默认是不占Segment的,备份时exp自动忽略空表。


解决办法,批量修改Segment。
1先查找所有数据表为空的表 

select table_name from user_tables where NUM_ROWS=0; 


2若查不出数据,是因为 NUM_ROWS为空,需要analyze:
select 'ANALYZE TABLE ' || table_name || ' COMPUTE STATISTICS;' from user_tables;
然后将查询出来的语句批处理。



3,   select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0;




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章