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: Slow Inserts

Re: Slow Inserts

From: Paul Baumgartel <treegarden_at_yahoo.com>
Date: Fri, 15 Nov 2002 09:19:32 -0800
Message-ID: <F001.00504729.20021115091932@fatcity.com>


The Parse statistics are what caught my eye. The statement is being parsed once per execution, which is puzzling because it does use bind variables. Of more concern, though, is the difference between CPU and elapsed times for the parsing, indicating that there is a lot of waiting going on. I'd suggest looking at v$session_event to see what are the top wait events for the session.

break on sid
col event format a30
set pages 99
select se.event, se.total_waits,

       se.time_waited, se.average_wait
from v$session s, v$session_event se
where s.sid = se.sid
and s.username is not null
and s.sid = &sid
order by se.time_waited
/
Run this before and after executing the insert statement, and compute the delta for each wait event seen.

HTH Paul Baumgartel


Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Paul Baumgartel
  INET: treegarden_at_yahoo.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 Fri Nov 15 2002 - 11:19:32 CST

Original text of this message

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