Thanks for the replies.

I will also admit (sheepishly) that until today, I didn't realize that
the "Misses in library cache during parse:" line after each statement
in a trace file tells you how many of the parses for a statement were
hard parses.


--- Cary Millsap <[EMAIL PROTECTED]> wrote:
> Exactly! This is the thing that ora_check_sql=>0 prevents when you
> use the Perl DBI. Then there's the problem of doing the prepare() 
> inside a
> loop. The way to fix that problem is to NEVER PARSE INSIDE A LOOP.
> 
> 
> Cary Millsap
> Hotsos Enterprises, Ltd.
> http://www.hotsos.com
> 
> Upcoming events:
> - Hotsos Clinic 101 in Sydney
> - Hotsos Symposium 2004, March 7-10 Dallas
> - Visit www.hotsos.com for schedule details...
> 
> 
> -----Original Message-----
> Josh Collier
> Sent: Wednesday, August 20, 2003 3:45 PM
> To: Multiple recipients of list ORACLE-L
> 
> The application that is running this, or the connection thinger
> (ODBC,
> JDBC,
> DBI) is parsing it twice. They often do a describe before a parse,
> which
> results in two parses for every execution.
> 
>  945 * 2 = 1895
> 
> 
> Josh
> 
> 
> -----Original Message-----
> Sent: Wednesday, August 20, 2003 1:34 PM
> To: Multiple recipients of list ORACLE-L
> 
> 
> Why should a query such as this, with bind variables and no literals,
> be parsed so many times?  Other queries in the trace show, for
> example,
> 2 parses and 160000 executions.  And while I'm at it, why does is the
> parse count shown equal to the SUM of executes and fetches?
> 
> SELECT BENEFICIARY_FK, BENEFICIARY_PHONE_PK, PHONE_TYPE_FK,
> PHONE_NUMBER 
> FROM BENEFICIARY_PHONE WHERE COMPANY_FK = :V00001 
> AND BENEFICIARY_FK IN ( :V00002)
>   
> 
> 
> call     count       cpu    elapsed       disk      query    current 
>  
>     
> ------- ------  -------- ---------- ---------- ---------- ---------- 
> 
> Parse     1890      0.21       0.17          0          0          0 
>  
>        
> Execute    945      0.04       0.08          0          0          0 
>  
>        
> Fetch      945     38.48      43.24          0     620428          0
> 
> 
> 
> =====
> Paul Baumgartel
> Transcentive, Inc.
> www.transcentive.com
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> -- 
> Author: Paul Baumgartel
>   INET: [EMAIL PROTECTED]
> 
> 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: [EMAIL PROTECTED] (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: Josh Collier
>   INET: [EMAIL PROTECTED]
> 
> 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: [EMAIL PROTECTED] (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: Cary Millsap
>   INET: [EMAIL PROTECTED]
> 
> 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: [EMAIL PROTECTED] (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).
> 


=====
Paul Baumgartel
Transcentive, Inc.
www.transcentive.com

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Paul Baumgartel
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to