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

  • From: <ryan.gaffuri@xxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Tue, 30 Mar 2004 8:59:38 -0500

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@xxxxxxxxxxxxxxx>
> Date: 2004/03/30 Tue AM 08:42:38 EST
> To: <oracle-l@xxxxxxxxxxxxx>
> 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@xxxxxxxxxxxxxxxx]
> Sent: Tue 3/30/2004 7:50 AM
> To:   oracle-l@xxxxxxxxxxxxx
> 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@xxxxxxxxxxxxx
> put 'unsubscribe' in the subject line.
> --
> Archives are at //www.freelists.org/archives/oracle-l/
> FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
> -----------------------------------------------------------------
> 
> 
> 
> 

Other related posts:

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