RE: OPEN_CURSORS !

  • From: "SRIDHARAN, SAN (SBCSI)" <ss4569@xxxxxxx>
  • To: <oracle-l@xxxxxxxxxxxxx>
  • Date: Wed, 14 Jul 2004 13:59:17 -0700

It returns me a multi row result set.

How can I get ride of it?

Thanks

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Guang Mei
Sent: Wednesday, July 14, 2004 1:55 PM
To: oracle-l@xxxxxxxxxxxxx
Subject: RE: OPEN_CURSORS !


Why do you want to use word CURSOR here? Get rid off it and it should be
fine.

HTH.

Guang

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx]On Behalf Of SRIDHARAN, SAN
(SBCSI)
Sent: Wednesday, July 14, 2004 4:50 PM
To: oracle-l@xxxxxxxxxxxxx
Subject: OPEN_CURSORS !


When I execute the following query, the number cursors opened increase
with the number of rows returned by the query and I get the oracle error
"maximum cursor opened".=3D20

Is there a way I can reuse the already opened cursor and not hit the
maximum OPEN_CURSOR value?


SELECT po.prod_offer_id, pot.dscr, po.qual_req, po.prod_id, pt.dscr
,
       CURSOR (SELECT pi.prod_iden_id, pi.parent_id, pit.dscr, pi.VALUE
                 FROM PROD_IDEN pi, PROD_OFFER_IDEN poi, PROD_IDEN_TYPE
pit
                WHERE pit.prod_iden_type_id =3D3D pi.prod_iden_type_id
                  AND pi.prod_iden_id =3D3D poi.prod_iden_id
                  AND poi.prod_offer_id =3D3D po.prod_offer_id
              )
                            FROM PROD_OFFER po,
       PROD_OFFER_TYPE pot,
       PROD p,
       PROD_TYPE pt,
       PROD_OFFER_AUDNC_PRFLE poap
 WHERE po.prod_offer_type_id =3D3D pot.prod_offer_type_id
   AND po.prod_id =3D3D p.prod_id
   AND pt.prod_type_id =3D3D p.prod_type_id
   AND po.prod_offer_id =3D3D poap.prod_offer_id
   AND poap.audnc_prfl_id =3D3D 16
   AND pt.dscr IN ('LD');

Thanks,
San
----------------------------------------------------------------
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
-----------------------------------------------------------------

----------------------------------------------------------------
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
-----------------------------------------------------------------
----------------------------------------------------------------
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: