Last updated on AUGUST 24, 2017
Applies to:PL/SQL - Version 22.214.171.124 and later
***Checked for relevance on 05-Aug-2013***
You are executing a PL/SQL program running against an Oracle 9.2 server(or higher). Your program contains an explicit cursor LOOP, within which a cursor OPEN and a cursor CLOSE statement are performed. The CLOSE cursor is performed at the end of each iteration. When the program completes, however, you select against the V$OPEN_CURSOR view and see that the cursors are still 'OPEN'.
How can this happen when an explicit cursor CLOSE has been called? Can this lead to performance problems, especially if you exceed the maximum number of open cursors for your session?
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms