Oracle 导入时出现ORA-39006错误

原创文章5年前 (2019)发布 fdadmin
5,160 0 0

oracle 导入时出现错误:

Import: Release 12.2.0.1.0 – Production on Wed Aug 21 11:54:29 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
ORA-39006: internal error
ORA-39065: unexpected master process exception in DISPATCH
ORA-56935: existing datapump jobs are using a different version of time zone data file
ORA-06512: at “SYS.DBMS_DST”, line 1837
ORA-06512: at “SYS.DBMS_SYS_ERROR”, line 79
ORA-06512: at “SYS.DBMS_DST”, line 1800
ORA-06512: at “SYS.KUPM$MCP”, line 19749
ORA-06512: at “SYS.KUPM$MCP”, line 12206
ORA-06512: at “SYS.KUPM$MCP”, line 11616
ORA-06512: at “SYS.KUPM$MCP”, line 14215
ORA-06512: at “SYS.KUPM$MCP”, line 9426

ORA-39097: Data Pump job encountered unexpected error -56935

解决方案:
执行下列sql
SELECT PROPERTY_NAME, SUBSTR (property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE ‘DST_%’
ORDER BY PROPERTY_NAME;

检查列 DST_UPGRADE_STATE 值是否为 NONE,如果是其它类似datapump(3)之类的,则在命令窗口执行下列sql
ALTER SESSION SET EVENTS '30090 TRACE NAME CONTEXT FOREVER, LEVEL 32';
exec dbms_dst.unload_secondary;

直到出现
ORA-56938: 按需或数据泵作业未加载任何次级时区数据文件
ORA-06512: 在 “SYS.DBMS_DST”, line 1957
ORA-06512: 在 “SYS.DBMS_SYS_ERROR”, line 79
ORA-06512: 在 “SYS.DBMS_DST”, line 1894
ORA-06512: 在 line 1

在查询
SELECT PROPERTY_NAME, SUBSTR (property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE ‘DST_%’
ORDER BY PROPERTY_NAME;

检查列 DST_UPGRADE_STATE 值是否为 NONE 则为成功。

© 版权声明

相关文章

暂无评论

暂无评论...