Oracle Message SQL-02117 - Invalid SQL Cursor usage: trying to OPEN an OPENed cursor

ERRORInvalid SQL Cursor usage: trying to OPEN an OPENed cursor
CAUSEAn attempt was made to OPEN a cursor that was already OPENed with MODE={ANSI|ANSI14|ANSI13}. An open cursor can be re-OPENed only when MODE=ORACLE.
ACTIONWhen MODE={ANSI|ANSI14|ANSI13}, verify that a cursor is not already OPENed before trying to OPEN it. Specify MODE=ORACLE if an OPENed cursor is to be re-OPENed.