|
从上面SQL中查出的字段中 D_TYPE = 5 表示 SYNONYM , 和下面的metalink 文档 ID 835792.1 非常像 。
但是不懂其中的这句话的意思 : Already at version 10.2.0.4 which includes fix for Bug 6136074
--------------------------------------------------------------------------
ORA-4068 Errors for Valid Objects [ID 835792.1]
--------------------------------------------------------------------------------
修改时间 01-JUN-2009 类型 PROBLEM 状态 MODERATED
In this Document
Symptoms
Cause
Solution
References
--------------------------------------------------------------------------------
This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
Applies to:
Oracle Server - Enterprise Edition - Version: 10.2.0.4
This problem can occur on any platform.
Symptoms
-- Problem Statement:
Receiving error ORA-04068: Existing state of packages has been discarded errors even though the packages are valid.
Already at version 10.2.0.4 which includes fix for Bug 6136074
We can see timestamp discrepancies exist for valid objects.
set pagesize 10000
column d_name format a20
column p_name format a20
select do.obj# d_obj,do.name d_name, do.type# d_type,
po.obj# p_obj,po.name p_name,
to_char(p_timestamp,'DD-MON-YYYY HH24:MI:SS') "P_Timestamp",
to_char(po.stime ,'DD-MON-YYYY HH24:MI:SS') "STIME",
decode(sign(po.stime-p_timestamp),0,'SAME','*DIFFER*') X
from sys.obj$ do, sys.dependency$ d, sys.obj$ po
where P_OBJ#=po.obj#(+)
and D_OBJ#=do.obj#
and do.status=1 /*dependent is valid*/
and po.status=1 /*parent is valid*/
and po.stime!=p_timestamp /*parent timestamp not match*/
order by 2,1;
Example output:
SP_CALCULAR_CUSTO_MEDIO 5 82287 CEQ_SP_CALCULAR_CUSTO_MEDIO 09-ABR-2009 10:22:35 20-MAI-2009 19:59:00 *DIFFER*
SP_ATUALIZA_ESTOQUE 5 82278 CNV_SP_ATUALIZA_ESTOQUE 09-ABR-2009 10:47:14 21-MAI-2009 01:27:43 *DIFFER*
Cause
The objects from the query are not PL/SQL objects but synonyms. (D_TYPE=5)
In this case, we have synonyms which reference parent objects that have different timestamp values.
Solution
-- To implement the solution, please execute the following steps::
Manually drop and recreate the synonyms from list provided from query above and then recheck query for discrepencies.
References
BUG:6136074 - ORA-4068 ORA-4065 ORA-06508 ERRORS SIGNALED FOR VALID OBJECTS
NOTE:456338.1 - ORA-4068 ORA-4065 ORA-06508 Errors Signalled For Valid Objects
--------------------------------------------------------------------------------
相关的
--------------------------------------------------------------------------------
产品
--------------------------------------------------------------------------------
Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
错误
--------------------------------------------------------------------------------
4068; ERROR; ORA-4068 |
|