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: RE: bind variables & dbms_sql in procedure/packages

Re: RE: bind variables & dbms_sql in procedure/packages

From: <ryan.gaffuri_at_cox.net>
Date: Tue, 30 Mar 2004 8:59:38 -0500
Message-Id: <20040330135938.LRWI21704.lakemtao05.cox.net@smtp.central.cox.net>


I thought i read in tom kytes book that the advantage of dbms_sql only comes into play if the same session is going to reuse the same sql, not if many sessions are going to re-bind to the cached sql statement?

so the advantage of dbms_sql in terms of performance only comes into play then.

or did i miss something?
>
> From: "Bobak, Mark" <Mark.Bobak_at_il.proquest.com>
> Date: 2004/03/30 Tue AM 08:42:38 EST
> To: <oracle-l_at_freelists.org>
> Subject: RE: bind variables & dbms_sql in procedure/packages
>
> For optimal scalability, you really need to use DBMS_SQL. Execute immediate,
> even if properly implemented w/ binds, will do extra soft parsing.
>
> Only w/ DBMS_SQL can you get the optimal parse once, execute many behavior.
>
> -Mark
>
>
> -----Original Message-----
> From: Juan Cachito Reyes Pacheco [mailto:jreyes_at_dazasoftware.com]
> Sent: Tue 3/30/2004 7:50 AM
> To: oracle-l_at_freelists.org
> Cc:
> Subject: Re: bind variables & dbms_sql in procedure/packages
> Whenever is possible I prefer to use
> execute immediate, it allows binding, and is easier to use and to check.
>
> Juan Carlos Reyes Pacheco
> OCP
> Database 9.2 Standard Edition
>
> ----------------------------------------------------------------
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
> To unsubscribe send email to: oracle-l-request_at_freelists.org
> put 'unsubscribe' in the subject line.
> --
> Archives are at http://www.freelists.org/archives/oracle-l/
> FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
> -----------------------------------------------------------------
>
>
>
>




Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

Received on Tue Mar 30 2004 - 07:56:10 CST

Original text of this message

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