Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to find the session holding the library cache pin.
Murali:
After identifying a LC pin wait in v$session_wait, use dba_lock_internal (it shows DDL/DML Locks, LC Locks, Latch Locks, etc)
select to_char(SESSION_ID,'999') sid ,
substr(LOCK_TYPE,1,30) Type, substr(lock_id1,1,23) Object_Name, substr(mode_held,1,4) HELD, substr(mode_requested,1,4)REQ,
You can also join
v$session_wait.p1raw to x$kglpn.KGLPNHDL
and v$session.saddr to x$kglpn.kglpnuse
to get the sid of the session that's holding the pin.
HTH
Greetings
Diego Cutrone
>Gurus:
>
>One of the developers has changed his java code and
>wants to load the class
>into the db. He did this on production db while users
>are accessing the
>application...and then complained that his session is
>just sitting in idle
>state....>>
>I queried the v$session_wait and found that his
>session is waiting for the
>library cache pin....question is how to tell which
>session is holding the
>enqueue?
>
>Thanks in advance for your help.
>
>Murali.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: =?iso-8859-1?q?Diego=20Cutrone?= INET: diegocutrone_at_yahoo.com.ar Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Thu Aug 28 2003 - 16:54:33 CDT