ORA-01001

Error: ORA-01001: invalid cursor

Causa: Either a host language program call specified an invalid cursor or the value of the MAXOPENCURSORS option in the precompiler command were too small. All cursors must be opened using the OOPEN call before being referenced in any of the following calls: SQL, DESCRIBE, NAME, DEFINE, BIND, EXEC, FETCH, and CLOSE. The Logon Data Area (LDA) must be defined by using OLON or OLOGON. If the LDA is not defined, this message is issued for the following calls: OPEN, COM, CON, ROL, and LOGOFF.

Acción: Check the erroneous call statement. Specify a correct LDA area or open the cursor as required. If there is no problem with the cursor, it may be necessary to increase the MAXOPENCURSORS option value before precompiling.

COMENTARIOS:

por carlinodba | 10/01/2012 20:44:49

RE: ORA-01001

Al ejecutar un procedure:

BEGIN HISR_RETEN.p_hisr_retention_all; END;

sale el mje de error:

ORA-01001: invalid cursor
ORA-06512: at "XAJTDB.HISR_RETEN", line 154
ORA-01403: no data found
ORA-06512: at line 1

Al ver la lìnea 154 veo que el cursor esta siendo cerrado, cuando maneja la EXCEPTION, sin ser abierto antes, eso es correcto? Ya estaba cerrado en la linea 132, ¿?

EXCEPTION

WHEN OTHERS
THEN
CLOSE hisr_freq_cur; --linea 154