Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: latch free - library cache

Re: latch free - library cache

From: Dilip <dilip7772002_at_indiatimes.com>
Date: Thu, 15 May 2003 03:16:53 -0800
Message-ID: <F001.0059967C.20030515031653@fatcity.com>


I checked v$latch_holder view many times but there was nobody holding library cache latch.

When I was looking at v$session_wait, three columns state,seconds_in_wait and wait_time are having value WAITED SHORT TIME,-1 and 00. How seconds_in_wait can have minus value ?

CURSOR_SHARING=FORCE was done as per oracle's recommandation.

~Dilip

ORACLE-L_at_fatcity.com wrote:

Dilip,

Have you checked the other sessions holding the 'library cache latch'? Since you have set CURSOR_SHARING = FORCE on an Apps 11i database, I assume that you have some Custom code that uses literals rather than bind vars? The best starting point to troubleshooting this problem is to start looking at all sessions that are holding this latch and the SQLs that they have either executed or are executing - there are SQLs out there that can show you the currently executing SQLs as well as look at V$OPEN_CURSOR for those sessions - and look for clues...

All the best,
John Kanagaraj
Oracle Applications DBA
DBSoft Inc
(W): 408-970-7002

What would you see if you were allowed to look back at your life at the end of your journey in this earth?

&gt; -----Original Message-----
&gt; From: Dilip [mailto:dilip7772002_at_indiatimes.com]
&gt; Sent: Wednesday, May 14, 2003 3:37 AM
&gt; To: Multiple recipients of list ORACLE-L
&gt; Subject: latch free - library cache
&gt;
&gt;
&gt; Hi List,
&gt;
&gt; DB 8.1.7.4.0 on Sun sparc solaris 2.6
&gt; This is oracle applications 11.5.4
&gt;
&gt; One of the program was running for very long time. So checked
&gt; out v$session_wait for that perticular session. It was
&gt; waiting on 'latch free' and from P2 column and v$latch, found
&gt; out that it is waiting for library cache latch.
&gt; Now docs says this is related to shared pool fragmentation.
&gt; So checked v$sgastat where it showed 38M space free in the
&gt; shared pool (Total shared pool is 800 MB). But it didnt throw
&gt; ORA-4031 and the process was running for last 17 hours. I
&gt; looked at v$librarycache and v$latchholder but didn't get any clue.
&gt; At last, I flushed the shared pool but still that session was
&gt; waiting on same wait event. Finally I had to kill the
&gt; session. I am facing this situation once or twice in
&gt; production and everytime I can't kill the session.
&gt;
&gt; Can somebody tell me how should I debug furthur and go to the
&gt; root cause of the problem. Does this mean I need to increse
&gt; the shared pool ? CURSOR_SHARING is kept to FORCE.
&gt;
&gt; Thanks,
&gt; ~Dilip
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt; Get Your Private, Free E-mail from Indiatimes at
http://email.indiatimes.com

Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com

Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsahara.indiatimes.com and Bid Now !

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Dilip
INET: dilip7772002_at_indiatimes.com

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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: John Kanagaraj
INET: john.kanagaraj_at_hds.com

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).




Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com

 Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com

Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsahara.indiatimes.com and Bid Now !

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Dilip
  INET: dilip7772002_at_indiatimes.com

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 May 15 2003 - 06:16:53 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US