【问题标题】:how to import oracle 11g dump file to 10g oracle如何将oracle 11g转储文件导入10g oracle
【发布时间】:2014-03-19 13:15:45
【问题描述】:

当我尝试将 oracle 数据库 11g 导入 o​​racle 10g 时,出现此错误。

IMP:00010 不是有效的导出文件。标头识别失败

IMP:00000 导入未成功终止

请帮忙

【问题讨论】:

  • 您应该使用 10g 导出实用程序进行导出,然后使用 10g 导入实用程序导入 10g。这样它就可以工作了。

标签: oracle oracle-dump


【解决方案1】:

如果您确保在导出过程中使用VERSION=10.2 参数,您可以将Oracle 11g expdp dump file 导入Oracle 10g。喜欢:


expdp hr/hr TABLES=hr.employees VERSION=10.2 DIRECTORY=data_pump_dir 
DUMPFILE=emp.dmp LOGFILE=emp.log

(假设你要导入Oracle 10.2

并像往常一样使用impdp,例如:

impdp hr/hr TABLES=hr.employees DIRECTORY=data_pump_dir
DUMPFILE=emp.dmp LOGFILE=emp_imp.log

【讨论】:

  • 我想单独导入整个架构
  • @ezzaam - 完整信息点击:expdp impdp 并找到Schema Exports/ImportsDatabase Exports/Imports
  • 或者只是提供您尝试过的内容...这样我就可以给您您想要的输入。
【解决方案2】:

来自 oracle 知识库:

IMP-00010: Not a valid export file, header failed verification

Cause: Either it is not a file generated by the Export utility or that the file is corrupted. 

Action: Check if file was transferred in Binary-mode. If the file was indeed generated by the Export utility, **and no compatibility issue is related**, report this as an Import bug.

正如 Incognito 所说: 如果您想使用 exp/imp 实用程序将数据从较高版本的数据库移动到较低版本的数据库,您必须运行与目标数据库和源数据库匹配的 exp 客户端版本。

以下是exp/imp实用程序在不同版本之间的兼容性矩阵

+-----------+--------------------------------------------------------------+ 
|  EXPORT   |                       IMPORT into:                           | 
|   from    +--------+--------+--------+--------+--------+-----------------+ 
|    \/     |  8.1.7 |  9.2.0 | 10.1.0 | 10.2.0 | 11.1.0 | 11.2.0 |        | 
+-----------+--------+--------+--------+--------+--------+--------+--------+ 
|  5.x  1)2)| EXP5x  | EXP5x  | EXP5x  | EXP5x  | EXP5x  | EXP5x  |        | 
|  6.x    2)| EXP6x  | EXP6x  | EXP6x  | EXP6x  | EXP6x  | EXP6x  |        | 
|  7.x    3)| EXP7x  | EXP7x  | EXP7x  | EXP7x  | EXP7x  | EXP7x  |        | 
+-----------+--------+--------+--------+--------+--------+--------+--------+ 
|  8.0.3    | EXP803 | EXP803 | EXP803 | EXP803 | EXP803 | EXP803 |        | 
|  8.0.4    | EXP804 | EXP804 | EXP804 | EXP804 | EXP804 | EXP804 |        | 
|  8.0.5    | EXP805 | EXP805 | EXP805 | EXP805 | EXP805 | EXP805 |        | 
|  8.0.6    | EXP806 | EXP806 | EXP806 | EXP806 | EXP806 | EXP806 |        | 
+-----------+--------+--------+--------+--------+--------+--------+--------+ 
|  8.1.5    | EXP815 | EXP815 | EXP815 | EXP815 | EXP815 | EXP815 |        | 
|  8.1.6    | EXP816 | EXP816 | EXP816 | EXP816 | EXP816 | EXP816 |        | 
|  8.1.7    | EXP817 | EXP817 | EXP817 | EXP817 | EXP817 | EXP817 |        | 
+-----------+--------+--------+--------+--------+--------+--------+--------+ 
|  9.0.1    | EXP817 | EXP901 | EXP901 | EXP901 | EXP901 | EXP901 |        | 
|  9.2.0    | EXP817 | EXP920 | EXP920 | EXP920 | EXP920 | EXP920 |        | 
+-----------+--------+--------+--------+--------+--------+--------+--------+ 
| 10.1.0  4)| EXP817 | EXP920 |                 4)                |        | 
| 10.2.0  4)|   N/S  | EXP920 |                 4)                |        | 
+-----------+--------+--------+--------+--------+--------+--------+--------+ 
| 11.1.0  4)|   N/S  | EXP920*|        4)       |        5)       |        | 
| 11.2.0  4)|   N/S  | EXP920*|        4)       |        5)       |        | 
+-----------+--------+--------+--------+--------+--------+--------+--------+




+-----------+--------------------------------------------------------------+ 
|  EXPORT   |                       IMPORT into:                           | 
|   from    +--------+--------+--------+--------+--------+--------+--------+ 
|    \/     |   5.x  |   6.x  |   7.x  |  7.3.x |  8.0.x |  8.1.x |  9.0.1 | 
+-----------+--------+--------+--------+--------+--------+--------+--------+ 
|  5.x 1) 2)| EXP5x  | EXP5x  | EXP5x  | EXP5x  | EXP5x  | EXP5x  | EXP5x  | 
|  6.x    2)|  N/S   | EXP6x  | EXP6x  | EXP6x  | EXP6x  | EXP6x  | EXP6x  | 
+-----------+--------+--------+--------+--------+--------+--------+--------+ 
|  7.0.x  3)|  N/S   | EXP6x  | EXP7x  | EXP70x | EXP70x | EXP70x | EXP70x | 
|  7.1.x  3)|  N/S   | EXP6x  | EXP7x  | EXP71x | EXP71x | EXP71x | EXP71x | 
|  7.2.x  3)|  N/S   | EXP6x  | EXP7x  | EXP72x | EXP72x | EXP72x | EXP72x | 
|  7.3.x  3)|  N/S   | EXP6x  | EXP7x  | EXP73x | EXP72x | EXP73x | EXP73x | 
+-----------+--------+--------+--------+--------+--------+--------+--------+ 
|  8.0.x  4)|  Not Supported  | EXP7x  | EXP73x | EXP80x | EXP80x | EXP80x | 
|  8.1.x  4)|  Not Supported  | EXP7x  | EXP73x | EXP80x | EXP81x | EXP81x | 
+-----------+--------+--------+--------+--------+--------+--------+--------+ 
|  9.0.1.x  |           Not Supported           |    5)  | EXP81x | EXP901 | 
|  9.2.0.x  |           Not Supported           |    5)  |   N/S  | EXP901 | 
+-----------+--------+--------+--------+--------+--------+--------+--------+ 
| 10.1.0.x  |                    Not Supported                    | EXP901 | 
| 10.2.0.x  |                    Not Supported                    |   N/S  | 
+-----------+--------+--------+--------+--------+--------+--------+--------+ 
| 11.1.0.x  |                         Not Supported                        | 
| 11.2.0.x  |                         Not Supported                        |
+-----------+--------+--------+--------+--------+--------+--------+--------+

问候 乔瓦

【讨论】:

    【解决方案3】:

    执行此操作的一种方法(不是最酷的方法,但很方便)是使用 vi 或任何类型好的文本/控制台编辑器从 11G 打开 DMP,并在文件的第一行中。

    它显示版本号 11(在这种情况下),因此您可以编辑文本并更改它然后保存。在此之后,您可以尝试加载 DMP 并运行。

    这就是朋克风格!

    希望对你有帮助,请原谅我的英语不好

    【讨论】:

      【解决方案4】:

      IMP-00010:不是有效的导出文件,标头验证失败 IMP-00000:导入未成功终止

      因为从 linux 转储但你从窗口导入。 行动:来自 linux 的 imp

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-06-10
        • 2016-05-20
        • 2012-06-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多