impdp从高版本往低版本导入数据报错

来源:互联网 发布:淘宝推广培训课程 编辑:程序博客网 时间:2024/05/16 14:05



C:\Documents and Settings\Administrator>impdp   bosadmin/"MM"   dumpfile=BOSDATA.TM_LOGITRAK.dmp  tables=t1  logfile=DUMP_DIR.log   directory= CXDUMP_DIR  flashback_scn=26631739806  table_exists_action=replace
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-39142: incompatible version number 3.1 in dump file "D:\databak\BOSDATA.TM_LOGITRAK.dmp"

 

查看版本后发现,原端数据库版本是PL/SQL Release 11.2.0.1.0 - Production   expdp导出数据 ,impdp导入端的数据库版本是PL/SQL Release 10.2.0.4.0 - Production

从高版本导入低版本数据报错,empdp导出时 加入version选项

expdp bosadmin/"MM" dumpfile=TM_INWSEPT.dmp directory=DUMP_DIR   logfile=DUMP_DIR.log   tables=BOSDATA.TM_INWSEPT   flashback_scn=26637830170  version=10.2.0.4.0