Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: library cache lock
Hi Riyaj
Thanks for your response. I did do systemstat and ran your query too.
Select * from gv$session_wait where event='library cache lock';
1 237 165 library cache lock
handle address 3285451564 C3D4032C
lock address 3188447124 BE0BD794
10*mode+namespace 31 0000001F -1 13812
WAITED SHORT TIME
SID PID SPID SERIAL#
---------- ---------- --------- ----------
237 689 19837 17691
PROCESS 689:
>>>> handle address=c3d4032c,
Using the above 'handle address' I did look up the process that is
keeping a lock on my resource by doing a search on the address within
the same tracefile.
But I couldn't find any.
The sql you gave me
{select ses.sid, ses.serial#,lck.* from x$kgllk lck , v$session ses
where kgllkhdl in
(select kgllkhdl from x$kgllk where kgllkreq >0)
and lck.KGLLKUSE = ses.saddr
Order by lck.KGLNAOBJ}
also returned no rows.
I have 5 such session waiting for 'library cache lock'. All of them are in similar situation.
Could someone through some light on this.
On Apr 4, 2005 11:58 AM, Riyaj Shamsudeen <rshamsud_at_jcpenney.com> wrote:
>
> Sami
> Find why that session is holding the library cache lock.
> Following SQL will give you a map of sessions waiting and holding
> library cache locks.
>
>
-- http://www.freelists.org/webpage/oracle-lReceived on Mon Apr 04 2005 - 22:18:35 CDT