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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Stored procedure - cursor not closed

RE: Stored procedure - cursor not closed

From: Alec Macdonell <amacdonell_at_usscript.com>
Date: Wed, 18 Sep 2002 11:48:26 -0800
Message-ID: <F001.004D2C0B.20020918114826@fatcity.com>


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;

Since I m using CURSOR for stemennet its closed automaticaly. right?. But it doentnt seem closing as mentioned above ( when querried v$open_cursor). pls reply

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 services

---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: 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).

--

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 services

---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: 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

Original text of this message

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