Oracle IMP-00010、IMP-00031的解决

来源:互联网 发布:淘宝网商城中年女装 编辑:程序博客网 时间:2024/04/29 12:54

Oracle IMP-00010、IMP-00031的解决

1、首先说一下IMP-00010的问题

这里请看这篇文章Oracle 11g导出来的dmp导入到 10g的数据库(IMP-00010:不是有效的导出文件,头部验证失败)

(http://zhw2527.iteye.com/blog/1460651)下载了AlxcTools.rar就解决了

2、发生IMP-00031错误是因为我在服务器上sunbing/123456用户下采用的是exp sunbing/123456@orcl file=e:\2012\bk.dmp full=y 及将数据库orcl完全导出但是在orcl中有多个用户在本地的oracle中没有这些用户所以即使使用imp sunbing/sunbing file=e:\2012\bk.dmp full=y log=e:\2012\imp.log也会出错

解决方法:1、在导出数据库的时候不使用full=y的模式,只导出sunbing用户下的表exp sunbing/123456@orclfile=e:\2012\bk.dmp owner=sunbing

2、虽然使用的是full=y导出但是在导入的时候使用fromuser和 touser 指定imp sunbing/sunbing file=e:2012/bk.dmp fromuser=sunbing touser=sunbing log=e:2012/imp.log

fromuser就是把当前的dmp文件中的某一个用户下的数据取出。
touser就是把现在dmp文件中的数据导入到目标库的指定user下。
具体命令这样。
exp userid=system/manager owner=username1 file=expfile.dmp 

imp userid=system/manager fromuser=username1 touser=username2 ignore=y file=expfile.dmp;
0 0