我已经将我的ORACLE本地版本从12.1.0.2.0升级到12.2.0.1.0,并且已经从12.2.0.1.0导出了转储,并且我正在通过impdp
命令导入该转储,但是显示旧的目标ORACLE版本,并显示以下错误
ORA-39358: Export dump file version 12.2.0 not compatible with target version 12.1.0.2.0
我尝试以管理员身份执行impdp
命令,它显示了连接的正确数据库,但是问题是相同的
impdp
的日志文件:
;;;
Import: Release 12.2.0.1.0 - Production on Wed Jun 12 15:41:17 2019
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
;;;
Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
Master table "NEW_DB"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
ORA-39358: Export dump file version 12.2.0 not compatible with target version 12.1.0.2.0
Job "NEW_DB"."SYS_IMPORT_FULL_01" successfully completed at Wed Jun 12 15:41:26 2019 elapsed 0 00:00:07
Job "NEW_DB"."SYS_IMPORT_FULL_01" successfully completed at Wed Jun 12 15:41:27 2019 elapsed 0 00:00:08
答案 0 :(得分:0)
使用参数VERSION = 12.1开始导出。这将使导出与目标12.1数据库兼容。
expdp system@std12c VERSION=12.1 schemas=...
如果源数据库使用目标数据库中尚不可用的选项,则可能会遇到一些问题。例如:
Warning: Oracle Data Pump is exporting from a database that supports long identifiers to a version that does not support long identifiers