Oracle 9i ORA-04062 timestamp of package SYS DBMS_SNAPSHOT_UTL has been changed ORA-06512 at SYS DBMS_SNAPSHOT
2010-04-23 14:54
561 查看
群里有个朋友问了个问题,Oracle 9i 的数据库,Job 执行失败,物化视图刷新报错。 错误信息如下:
ORA-04068: existing state of packages has been discarded
ORA-04062: of has been changed
ORA-04062: timestamp of package "SYS.DBMS_SNAPSHOT_UTL" has been changed
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 617
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 674
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 654
ORA-06512: at line 1
Oracle的解释如下:
Symptoms
Snapshot refresh of an 8.1.7 database from a 9.2.0.6 master
instance now fails for complete or fast refresh
exec dbms_snapshot.refresh('AS_GROUP','C') ;
BEGIN dbms_snapshot.refresh('AS_GROUP','C') ; END;
*
ERROR at line 1:
ORA-04068: existing state of packages has been discarded
ORA-04062: of has been changed
ORA-04062: timestamp of package "SYS.DBMS_SNAPSHOT_UTL" has been changed
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 617
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 674
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 654
ORA-06512: at line 1
Changes
The 9.2.0.6 database had been rebuilt from a 9.2.0.5 database.
Cause
It looks likely that this issue is related to Bug:3017255.
It appears that is is possible for information to be flushed from the shared pool which cannot be reloaded correctly. By forcing a flush of the shared pool on both sides the problem can be worked around.
Solution
On both the master and the source sides issue
alter system flush shared_pool;
alter system flush shared_pool;
This should allow the refresh to start and complete successfully.
References
BUG:3017255 - Create Materiarized View Caused Ora-4068 And Ora-4062
对于Bug 3017255, 相关信息如下:
PROBLEM:
--------
- Creating two materialized views using same database link name (owner is
different)
causes ORA-4068,ORA-4062.
- refreshing the materialized views alternately cause ORA-4062.
DIAGNOSTIC ANALYSIS:
--------------------
This only happens using same Database link name. (owner is differnet)
If change one side's Database link name, error does not be caused.
And if I execute 'alter system flush shared_pool' before create second
materialized view or refresh materialized views, error does not be caused.
WORKAROUND:
-----------
- Don't use same database link name even if owner is different.
- Execute 'alter system flush shared_pool' before create materialized views.
- Execute 'alter system flush shared_pool' before refresh materialized views
ORA-04068: existing state of packages has been discarded
ORA-04062: of has been changed
ORA-04062: timestamp of package "SYS.DBMS_SNAPSHOT_UTL" has been changed
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 617
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 674
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 654
ORA-06512: at line 1
Oracle的解释如下:
Symptoms
Snapshot refresh of an 8.1.7 database from a 9.2.0.6 master
instance now fails for complete or fast refresh
exec dbms_snapshot.refresh('AS_GROUP','C') ;
BEGIN dbms_snapshot.refresh('AS_GROUP','C') ; END;
*
ERROR at line 1:
ORA-04068: existing state of packages has been discarded
ORA-04062: of has been changed
ORA-04062: timestamp of package "SYS.DBMS_SNAPSHOT_UTL" has been changed
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 617
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 674
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 654
ORA-06512: at line 1
Changes
The 9.2.0.6 database had been rebuilt from a 9.2.0.5 database.
Cause
It looks likely that this issue is related to Bug:3017255.
It appears that is is possible for information to be flushed from the shared pool which cannot be reloaded correctly. By forcing a flush of the shared pool on both sides the problem can be worked around.
Solution
On both the master and the source sides issue
alter system flush shared_pool;
alter system flush shared_pool;
This should allow the refresh to start and complete successfully.
References
BUG:3017255 - Create Materiarized View Caused Ora-4068 And Ora-4062
对于Bug 3017255, 相关信息如下:
PROBLEM:
--------
- Creating two materialized views using same database link name (owner is
different)
causes ORA-4068,ORA-4062.
- refreshing the materialized views alternately cause ORA-4062.
DIAGNOSTIC ANALYSIS:
--------------------
This only happens using same Database link name. (owner is differnet)
If change one side's Database link name, error does not be caused.
And if I execute 'alter system flush shared_pool' before create second
materialized view or refresh materialized views, error does not be caused.
WORKAROUND:
-----------
- Don't use same database link name even if owner is different.
- Execute 'alter system flush shared_pool' before create materialized views.
- Execute 'alter system flush shared_pool' before refresh materialized views
相关文章推荐
- Oracle 9i ORA-04062 timestamp of package SYS DBMS_SNAPSHOT_UTL has been changed ORA-06512 at SYS DBMS_SNAPSHOT
- Oracle 9i ORA-04062 timestamp of package SYS DBMS_SNAPSHOT_UTL has been changed ORA-06512 at SYS DBMS_SNAPSHOT
- Oracle 9i ORA-04062 timestamp of package SYS DBMS_SNAPSHOT_UTL has been changed ORA-06512 at SYS DBMS_SNAPSHOT
- Oracle 9i ORA-04062 timestamp of package SYS DBMS_SNAPSHOT_UTL has been changed ORA-06512 at SYS DBMS_SNAPSHOT
- Oracle 9i ORA-04062 timestamp of package SYS DBMS_SNAPSHOT_UTL has been changed ORA-06512 at SYS DBMS_SNAPSHOT
- ORA-12170: TNS:Connect timeout occurred ORA-06512: at "SYS.DBMS_SNAPSHOT"
- Oracle error 1403: java.sql.SQLException: ORA-01403: no data found ORA-06512: at line 1 has been det
- ORA-12170: TNS:Connect timeout occurred ORA-06512: at "SYS.DBMS_SNAPSHOT"
- ORA-00931: missing identifier ORA-06512: at "SYS.DBMS_UTILITY"
- oracle-ORA-12012: error on auto execute of job "SYS"."ORA$AT_SA_SPC_SY_%
- ORA-04063: package body "SYS.DBMS_RCVMAN" has errors
- oracle11g expdp报错 ORA-06512: at "SYS.UTL_FILE", line 536
- Oracle win 下expdp 导出数据出错 ORA-06512: 在 "SYS.UTL_FILE", line 536
- oracle11g expdp报错 ORA-06512: at "SYS.UTL_FILE", line 536
- Oracle Compile 编译 无效对象(ORA-04063: package body "SYS.DBMS_XPLAN" 有错误)
- ORACLE OLAP错误ORA-06512: at "SYS.OLAPIHISTORYRETENTION"
- 导数据时ORA-06512: at "SYS.DBMS_STATS", line 14015
- 解决问题 ORA-04063: package body "SYS.DBMS_LOGREP_UTIL" has errors
- ORA-06512: At "SYS.DBMS_XSTREAM_ADM_INTERNAL" (文档 ID 1956932.1)
- impdp错误 ORA-06512: at "SYS.UTL_FILE", line 536解决办法