使用orachk工具检查数据库实例的时候,发现报告里面有类似下面这样一些错误(最近有给Oracle 10g应用补丁PSU 10.2.0.5.180717,不清楚是这个产生的还是其他原因导致),使用脚本检查,发现有很多INVALID对象(具体参考[转载]—Health Check Reports Problem: Dependency$ p_timestamp mismatch for VALID objects (文档 ID 781959.1)

 

[W] - P_OBJ#=37817 D_OBJ#=38416 

[W] - P_OBJ#=38014 D_OBJ#=38605 

[W] - P_OBJ#=38020 D_OBJ#=38611 

[W] - P_OBJ#=38043 D_OBJ#=38634 

[W] - P_OBJ#=38061 D_OBJ#=38652 

[W] - P_OBJ#=38064 D_OBJ#=38655 

[W] - P_OBJ#=38087 D_OBJ#=38678 

[W] - P_OBJ#=38090 D_OBJ#=38681

 

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;

相关文章:

  • 2022-12-23
  • 2021-06-08
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
相关资源
相似解决方案