【问题标题】:ORA-39358: Export dump file version 12.2.0 not compatible with target version 12.1.0.2.0ORA-39358: 导出转储文件版本 12.2.0 与目标版本 12.1.0.2.0 不兼容
【发布时间】:2019-10-26 20:40:27
【问题描述】:

我已将我的 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

【问题讨论】:

  • 错误很明显,不是吗? (数据库不允许向后导入)。
  • @BarbarosÖzhan 是的,但是我最近升级到所需的版本 12.2.0.1.0,我不知道为什么它在导入时仍然选择旧版本。

标签: database oracle plsql oracle12c


【解决方案1】:

使用参数 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

【讨论】:

  • 问题是我无法再次导出,这就是为什么我将我的 oracle 从(12.1.0.1.0)升级到所需版本(上版本 12.2.0.1.0)
  • 我明白了,您已连接到 12.2,但它仍然抱怨 12.1。奇怪的。也许您错过了一些升级步骤。
  • 是的,很奇怪,我在升级时收到了成功消息(升级结果)。并且我能够连接并可以处理现有的数据库用户。
猜你喜欢
  • 2020-07-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-12-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多