oracle导入导出exp/imp 及imp-00037错误

附上导入导出数据的指令如下:
exp name/password@tnsName file=D:\*** owner=(USERNAME)
imp name/password@tnsName fromuser=username touser=username file=D:\**** ignore\=y

执行导入数据库的时候出现了以下的错误:
imp-00037未知字符集标记

确认一下导入与导出的数据库的字符集类型是否一致:
select * from V$NLS_PARAMETERS;
output:
NLS_NCHAR_CHARACTERSET AL16UTF16

如果字符集一样,则说明导出的文件极有可能损坏了,损坏的原因有很多,例如导出的文件是否有经过传送,从而导致了其编码的改变或者损坏。

这次错误的出现就是因为导出之后将文件拖放到另外一台服务器上后出现的,估计在两台服务器传送的过程中,导出的dmp文件已经损坏,从而导致导入错误。最后导入导出都在同一台服务器上操作,问题解决。

另外,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.

你可能感兴趣的:(oracle,sql,工作)