Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: library cache lock
library cache lockDave,
To find out which session is blocking you you can also try this one:
select sid Holder ,KGLLKUSE Sesion , KGLLKMOD Held, KGLLKREQ Req
from x$kgllk , v$session
where KGLLKHDL in (select p1raw from v$session_wait
where wait_time=0 and event like 'library cache lock%')and KGLLKMOD <> 0
Then after identifying the blocking session, you can go from there
HTH
Regards,
Diego
Hi, got a strange problem. I am trying to truncate a partition in a table, but it just hangs forever, it is waiting on a library cache lock. Anyone know why and how I can clear it - flushing the shared pool didn't help and there are no other sessions touching that table.
Thanks
Dave