如何将oracle 11g转储文件导入10g oracle

时间:2014-02-19 09:43:38

标签: oracle

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

  

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

     

IMP:00000导入未完成

任何帮助,请

4 个答案:

答案 0 :(得分:6)

如果您确保在导出期间使用Oracle 11g参数,则可以将expdp dump file Oracle 10g导入VERSION=10.2。像:


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

答案 1 :(得分:3)

来自oracle KB:

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                        |
+-----------+--------+--------+--------+--------+--------+--------+--------+

此致 Giova

答案 2 :(得分:2)

这样做的一种方法(不是最酷的,但很方便)是使用vi或任何类型的好文本/控制台编辑器以及文件的第一行从11G打开DMP。

它显示版本号11(在本例中),因此您只需编辑文本并进行更改然后保存即可。在此之后,您可以尝试加载DMP并且可以正常工作。

这是Punk方式!

希望它有助于并赦免我破碎的英语

答案 3 :(得分:0)

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

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