Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: statspack report shows low execute to parse%

Re: statspack report shows low execute to parse%

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Sun, 04 Sep 2005 17:50:23 +0200
Message-ID: <vr5mh1ta2gol1siviane7g2c3a25ha96np@4ax.com>


On 4 Sep 2005 08:45:04 -0700, "Mark D Powell" <Mark.Powell_at_eds.com> wrote:

>Sybrand has likely hit the nail on the head. If you have a web based
>front-end many tools build SQL statements by concatenating the SQL
>boiler plate to a variable. That means that nearly every SQL statement
>executed is a new SQL statement to Oracle and is not reusable. In this
>case the applications should be changed to using prepared statements
>with bind variables.
>
>Applications that generate dynamic SQL require parsing. Substitue
>static SQL for dyamic SQL wherever possible.
>
>HTH -- Mark D Powell --

I trust the last sentence should read
'Substitute dynamic sql for static sql wherever possible' and you do know the difference between the two ; -)

--
Sybrand Bakker, Senior Oracle DBA
Received on Sun Sep 04 2005 - 10:50:23 CDT

Original text of this message

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