ORA-56935: 现有数据泵作业正在使用其他版本的时区数据文件

将一个11.2.0.1的数据泵导出文件导入12.1.0.2版本时,出现如下错误
连接到: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Produc
tion
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing opt
ions
ORA-39006: 内部错误
ORA-39065: DISPATCH 中出现意外的主进程异常错误
ORA-56935: 现有数据泵作业正在使用其他版本的时区数据文件

ORA-39097: 数据泵作业出现意外的错误 -56935

搜索了半天,找到了如下解决方案

UNCATEGORIZED
impdp ORA-39097 ORA-39065 ORA-56935
MAY 12, 2015 ARCSDEGEO3 COMMENTS
While performing an import, I faced the below error:


ORA-39097: Data Pump job encountered unexpected error 
ORA-39065: unexpected master process exception in DISPATCH
ORA-56935: existing datapump jobs are using a different version of time zone data file


Solution:


Check the value of  DST_UPGRADE_STATE by the following query:


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


Then try executing the following:


ALTER SESSION SET EVENTS ‘30090 TRACE NAME CONTEXT FOREVER, LEVEL 32’;
exec dbms_dst.unload_secondary;


Re-execute the query:


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


****check the value of  DST_UPGRADE_STATE should be NONE

大意是检查属性 DST_UPGRADE_STATE的值,如果值是DATAPUMP(8)之类的,要反复执行 exec dbms_dst.unload_secondary;8次,
直到 DST_UPGRADE_STATE的值变为NONE
SQL> SELECT PROPERTY_NAME, SUBSTR (property_value, 1, 30) value
  2  FROM DATABASE_PROPERTIES
  3  WHERE PROPERTY_NAME LIKE 'DST_%'
  4  ORDER BY PROPERTY_NAME
  5  /


PROPERTY_NAME             VALUE
------------------------- -----
DST_PRIMARY_TT_VERSION    14
DST_SECONDARY_TT_VERSION  0
DST_UPGRADE_STATE         NONE


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8520577/viewspace-2125797/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8520577/viewspace-2125797/

你可能感兴趣的:(数据库)