Oracle11g导出表空间存在空表导出失败问题解决办法
2018-02-07 12:15
330 查看
------解决oracle11g导出表空间存在空表问题:
------执行下面代码,使oracle以后建立表时默认分配空间;
alter system set deferred_segment_creation=false;
------在目标数据库新建 E:\sql_allocate.sql;文件
------进入要导出表空间户sqlplus执行:
set heading off;
set echo off;
set feedback off;
set termout on;
spool E:\sql_allocate.sql;
Select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0 or num_rows is null;
spool off;
打开 E:\sql_allocate.sql;文件 在plsqldeveloper内执行文件内代码
重新导出表空间即可
------执行下面代码,使oracle以后建立表时默认分配空间;
alter system set deferred_segment_creation=false;
------在目标数据库新建 E:\sql_allocate.sql;文件
------进入要导出表空间户sqlplus执行:
set heading off;
set echo off;
set feedback off;
set termout on;
spool E:\sql_allocate.sql;
Select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0 or num_rows is null;
spool off;
打开 E:\sql_allocate.sql;文件 在plsqldeveloper内执行文件内代码
重新导出表空间即可
相关文章推荐
- 关于VS2008 中添加成员变量提示 此网站的某个加载项运行失败 请检查“Internet选项”中的安全设置是否存在潜在冲突 问题解决办法
- Oracle11g使用exp导出表不全问题的原因和解决办法
- Oracle11g导出dmp空表不能导出解决办法
- Oracle11g使用exp导出表不全问题的原因和解决办法
- 轻松解决oracle11g 空表不能exp导出的问题
- 轻松解决oracle11g 空表不能exp导出的问题
- 轻松解决oracle11g 空表不能exp导出的问题。
- PLSQL数据导入导出问题解决(空表、大字段表、表空间错误等)
- PLSQL数据导入导出问题解决(空表、大字段表、表空间错误等)
- (转)oracle11g 不能导出空表解决办法
- 轻松解决oracle11g 空表不能exp导出的问题。
- 轻松解决oracle11g 空表不能exp导出的问题。
- 解决oracle11g 空表不能exp导出的问题
- 解决oracle11g 空表不能exp导出的问题
- PLSQL数据导入导出问题解决(空表、大字段表、表空间错误等)
- 永久性解决Oracle11g空表导出问题
- 解决oracle11g 空表不能exp导出的问题
- [转]轻松解决oracle11g 空表不能exp导出的问题
- 解决oracle11g无法导出空表问题
- 轻松解决oracle11g 空表不能exp导出的问题