标签:style blog color sp for on div 问题 log
在网上搜索了相关资料后,结合自己的实际情况,总结了一下解决方法,具体如下:
1.先批量分析统计各表总记录数:
--批量分析统计表记录总数 begin for obj in (select ‘analyze table ‘||table_name|| ‘ compute statistics ‘ sqlstr from user_tables) loop --in里面的select无分号 execute immediate obj.sqlstr; end loop; end;
2.再批量分配extent给空表:
--批量分配 begin for obj in (select ‘alter table ‘||table_name|| ‘ allocate extent ‘ sqlstr from user_tables where num_rows=0 or num_rows is null) loop --in里面的select无分号 execute immediate obj.sqlstr; end loop; end;
完成上门两步后,一般就可以正常导出了。
标签:style blog color sp for on div 问题 log
原文地址:http://www.cnblogs.com/javasharp/p/4160794.html