您的位置:首页 > 数据库 > Oracle

ORACLE EXP不能导出空表解决方法

2016-06-15 14:21 441 查看
select 'exec dbms_stats.unlock_table_stats('||'''username'''||','''||table_name||''');' from user_tables

把username替换成导出源数据库的用户。

复制以上查询结果,在username的sqlplus执行。

select 'analyze table '||table_name||' compute statistics;' from user_tables

复制以上查询结果,在username的sqlplus执行。

select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0 or num_rows is null

复制以上查询结果,在username的sqlplus执行。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: