Re: PLSQL: Closing all open cursors

From: GovindanK <gkatteri_at_fastmail.fm>
Date: Thu, 24 Jan 2008 21:52:14 UT
Message-Id: <1201211534.824.1233130169@webmail.messagingengine.com>


Good Question. I would say "Yes". If you happen to do repetitive stuff inside a loop and you fail to close , you would soon run into maximum number of open cursors exceeded. An interesting scenario i came across once was when the PLSQL back end was selecting NULL for all the columns (single row returned to front end Java) to handle exception situation so that the front end gets a null pointer. But the Java programmers did not close the cursor on such NULL scenarios and soon afterwards we used to run into max number of open cursors exceeded. Later the Java / Front end code had to be modified to 'capture' this NULL scenarios and forcibly issue close cursor.

HTH GovindanK

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jan 24 2008 - 15:52:14 CST

Original text of this message