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 wait

RE: latch wait

From: Deepak Thapliyal <deepakthapliyal_at_yahoo.com>
Date: Mon, 12 Nov 2001 13:31:28 -0800
Message-ID: <F001.003C2D00.20011112131539@fatcity.com>

Paul ,

try joining the v$session with v$sqlarea to find offending sql harassing the cache buffers chains..

here is a sample sql u could use ..

select sql_text
from v$sqlarea, v$session
where v$sqlarea.address= v$session.sql_address and v$sqlarea.hash_value = v$session.sql_hash_value and sid='Your Sid From V$session wait for latch#66';

find the offending sql and tune it ..

cache buffer chains latch means that your SQL is badly written and is performing a considerably higher # of LIO's .. explian plan the sql and see if you can use indexes .. also analyze your table and indexes .. post dump from v$session wait for wait=0 (waiting state) .. so other list members an give you more suggestions

Deepak


Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Deepak Thapliyal
  INET: deepakthapliyal_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Mon Nov 12 2001 - 15:31:28 CST

Original text of this message

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