Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Stored procedure - cursor not closed
FOR/LOOP code references a cursor called 'all_terms' while you are asking
about 'all_rules'. Is this just a simple typing error or are you looking at
the wrong spot in your code?
Alec
-----Original Message-----
C
Sent: Wednesday, September 18, 2002 12:53 AM
To: Multiple recipients of list ORACLE-L
resending the mail. Kindly ignore my prev mail with wrong subject.
Hi All,
I ve a stored proceure and with the following cursor defined. And after running the procedure, i see that No of open cursors incresing. I checked it querying v$open_cursor like this. ( SELECT sql_text from v$open_cursor).
CURSOR all_rules (l_ticket_type_id NUMBER) IS
SELECT rule_id , workflow_id FROM rule
WHERE ticket_type_id = l_ticket_type_id AND ews_flag=1 AND active_flag=1;
PS:
Also in the stored procedure I use some SELECT statements, that too is shown when I query open_cursor as above. Do you know why no of open cursors increasing?
Thanks in advance
Joshy
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: JOSHY MON M C
INET: JOSHYMON_at_nestec.net
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting servicesto: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Alec Macdonell
INET: amacdonell_at_usscript.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting servicesto: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Sep 18 2002 - 14:48:26 CDT
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
![]() |
![]() |