Oracle导入失败:报错与解决办法总结

Oracle导入.dmp文件失败,发生的错误总结并对应解决办法:

imp-00037:位置字符集标记;

imp-000000:未成功终止导入错误;

imp-00058:遇到Oracle错误1017;

ora-01017:invalid username/password;logon denied;

Oracle导入失败:报错与解决办法总结


imp-00037:位置字符集标记;

imp-00037的 解释是
Cause: The export file is corrupted.
Action: Try to obtain an uncorrupted version of the export file.
If the export file is not corrupted, report this as an Import
internal error and submit the export file to customer support.


对应的解决方法是:

查看 导入的.dmp文件的字符集是否与导入数据库当中的字符集的一致性;

1)查询Oracle server端的字符集:

打开plsql,输入语句:

select * from nls_database_parameters;

执行语句

结果是:

Oracle导入失败:报错与解决办法总结

2)查询.dmp文件的字符集:

因为导入的.dmp文件过大,超过2G,所以不能用UltraEdit工具打开,所以可以在SQL文件中输入

Oracle导入失败:报错与解决办法总结

3)如果得到的数据库字符集与.dmp文件的字符集不一致,那么可以修改数据库字符集后导入,或者修改原数据库字符集后重新导出.dmp文件。

4)如果数据库和.dmp字符集 一致,则要考虑在DOS命令中以imp命令导入。

5)结果如下,又出现了新的问题。