Oracle中查詢依賴的無效物件(invalid object)

luckyfriends發表於2017-10-11
找依賴的無效物件:

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
and po.status=1
and po.stime!=p_timestamp
order by 2,1;



來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/14710393/viewspace-2145852/,如需轉載,請註明出處,否則將追究法律責任。

相關文章