Danny,

I'll bet my morning cheese danish that when you changed the SQL from using
literals to bind variables, the execution plan changed.

Just pull each SQL statement and run it in SQL*Plus, one version of it with
literals and the other with bind variables.  The difference in your web page
coming up in < 2 seconds with literals and > 5 minutes with bind variables
is huge.  Testing like this in SQL*Plus should reveal which SQL statement is
taking longer with bind variables.

In SQL*Plus use SET AUTOTRACE ON so you can see the execution plans.  Once
you find the problem you can use hints to force the bind variable version to
use the same fast plan that was used by the literal version.



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Greg Moore
  INET: [EMAIL PROTECTED]

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: [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