您的位置:首页 > 其它

如何通过expdp和impdp完美的迁移用户数据?

2013-12-17 10:34 316 查看
在数据库迁移数据时,因为impdp工具的执行顺序没有考虑约束关系,所以导入时经常报错,这里有一个比较好的解决方法,导入时使用exclude=constraint 参数先不导入索引只导入其他其他对象数据,然后导入完毕后再使用include=constraint参数只导入约束,这样一来就很好的解决了因为约束导致的导入报错,具体命令如下:
IMPDP test/test direcotry=dirTest dumpfile=test.dmp exclude=constraint logfile=lognoconstraint.log

IMPDP test/test direcotry=dirTest dumpfile=test.dmp include=constraint logfile=logconstraint.log

我的博客:www.fanmeng.net.cn
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: