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-parsing for SQL associated with PL/SQL cursor variables

Re-parsing for SQL associated with PL/SQL cursor variables

From: Adrian Bowen <adrian_at_raptor.win-uk.net>
Date: Tue, 21 Sep 1999 13:11:05 +0100
Message-ID: <7s7sok$ck3$1@laura.pcug.co.uk>


I have a number of utility functions in a PL/SQL package which return cursor variables - they essentially do some massaging of their arguments, then do an OPEN FOR, always with the same SQL statement (apart from bind variable values). The caller then FETCHes rows as required and finally CLOSEs the cursor variable.

From my tkprof output, it would appear that the parse count and execution count of the SQL used by the cursor variables is always the same - even though my shared pool is not full, and all other SQL from the package (i.e. that associated with CURSOR declarations) is successfully cached, and not re-parsed.

Is this to be expected? Is there something about cursor variable SQL that causes it not to be cached?

Ta for any help

Adrian Bowen Received on Tue Sep 21 1999 - 07:11:05 CDT

Original text of this message

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