解决ORACLE11g导出表不全问题及导入导出

来源:互联网 发布:如何解读融资融券数据 编辑:程序博客网 时间:2024/04/30 23:21

一、因oracle11对未占有空间内存的表(即未用过的表)不进行导出,所以在进行exp时只导出的表会不全。

检查user_tables表发现没有导出的表的segment_created属性是NO

解决办法:

1、可通过下面语句生成SQL执行:

select
'alter table '|| table_name ||' move;'
 from user_tables where segment_created='NO';
 可行。

2、通过修改系统参数(没有测试):

alter system set deferred_segment_creation=true; 

二、导出导入语言:

在cmd中:

导入:exp 用户名/用户密码@服务名 file=path+**.dmp log=path+**.log full=y;

导出:imp 用户名/用户密码@服务名 fromuser=lis touser=lis file=path+**.dmp log=path+**.log ;


转载自:http://blog.csdn.net/xieqingcheng4000/article/details/7360117

0 0
原创粉丝点击