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: multiple runs with the same ref cursor?

Re: multiple runs with the same ref cursor?

From: <pobox002_at_bebub.com>
Date: 3 Aug 2005 04:53:36 -0700
Message-ID: <1123070016.206542.231920@o13g2000cwo.googlegroups.com>


A good approach using dynamic SQL which can use indexes but does not have the drawback of shared pool fragmentation that will happen if bind variables are not used is described at Ask Tom here.

http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1288401763279

It uses sys_context to prevent literals being embedded in the SQL statement. I have used this technique myself and it works very well.

Hth

-- 
MJB
Received on Wed Aug 03 2005 - 06:53:36 CDT

Original text of this message

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