imp-00003:oracle error 959 encountered

imp-00003:oracle error 959 encountered

背景描述:今天imp 导入dmp,dmp中有6张表,且均为同一用户的表,其中四张导入成功,还有两张表导入失败,提示 imp-00003:oracle error 959 encountered ;

tablespaces does not exits;

导入语句为:

imp system/oracle123 file=/dmp/dmpfile.dmp log=/dmp/impfile.log fromuser=oracle touser=test 

检查导入语句,指定表空间,添加ignore=y 参数后仍然报错;

检查报错的表字段,发现该表中有clob 或者 blob字段;

解决办法:找到报错表的建表语句,先在目标端中创建该表,替换建表语句中的表空间为目标端用户的表空间,然后再imp导入dmp,添加ignore=y参数,最终的导入语句为:

imp system/oracle123 file=/dmp/dmpfile.dmp log=/dmp/impfile.log fromuser=oracle touser=test tablespaces=test_data ignore=y

猜你喜欢

转载自blog.csdn.net/AChinesePaPa/article/details/114263233