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

来源:互联网 发布:centos ssh 连不上 编辑:程序博客网 时间:2024/05/24 07:02
imp出现这个问题有两个原因,
1,导入的备份文件有问题
2,版本问题,在使用exp命令导出的时候使用的客户端的版本,并且是如果从低版本到高版本没有问题,反之会出问题。
针对第二个问题,命令本身没有什么好的解决方式,不过可以使用Notepad++手动修改文件头部的版本号,比如
 11g R2:V11.02.00
 11g R1:V11.01.00
 10g:V10.02.01
另外在expdp和impdp中已经有了version的参数,可以解决数据泵导入遇到的相应问题,
比如:
[oracle@oracledb bakup]$ expdp \'/ as sysdba \' schemas=loge dumpfile=loge1.dmp version=10.2.0.1.0Export: Release 11.2.0.1.0 - Production on Fri Jan 6 13:33:59 2017Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsStarting "SYS"."SYS_EXPORT_SCHEMA_03":  "/******** AS SYSDBA" schemas=loge dumpfile=loge1.dmp version=10.2.0.1.0 


0 0
原创粉丝点击