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: Cary Millsap <cary.millsap_at_hotsos.com>
Date: Fri, 15 Nov 2002 11:28:34 -0800
Message-ID: <F001.005049E2.20021115112834@fatcity.com>


And a note: Using bind variables is a necessary step but not a sufficient step toward eliminating parse CALLS. Using bind variables will only reduce the number of misses in the library cache ("parse count (hard)").

If the application still puts the parse call inside a loop, it still gets the "parse once per execute" behavior shown in the trace file. When the application says "parse" ("prepare" or whatever), the Oracle kernel will parse (unless something on the client side stops the call from going to SQL*Net).

See "Scaling applications to massive user counts" at www.hotsos.com/catalog.

Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:

- Hotsos Clinic, Dec 9-11 Honolulu
- 2003 Hotsos Symposium on OracleR System Performance, Feb 9-12 Dallas
- Jonathan Lewis' Optimising Oracle, Nov 19-21 Dallas


-----Original Message-----
Baumgartel
Sent: Friday, November 15, 2002 11:20 AM To: Multiple recipients of list ORACLE-L

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

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Cary Millsap
  INET: cary.millsap_at_hotsos.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 - 13:28:34 CST

Original text of this message

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