儲存過程被鎖無法編譯的解決

mrhaozi發表於2010-06-10

  select distinct s1.* from V$DB_OBJECT_CACHE oc,

  v$object_dependency od,

  dba_kgllock w,

  v$session s1

  where oc.name = 'P_SPS_INTERFACE'

  and od.TO_OWNER = oc.OWNER

  and od.TO_NAME = oc.NAME

  and od.TO_ADDRESS = w.kgllkhdl

  and w.kgllkuse = s1.SADDR;

  得到鎖定過程的程式PADDR

  select spid from v$process p where p.addr=(PADDR值)

  kill -8 spid

  殺掉這些程式就可以解鎖

[@more@]

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

相關文章