ORA-29476: DBMS_SQL.CLOSE_CURSOR failed Cause: An attempt was made to close a DBMS_SQL cursor while it was executing under its own context. Action: Rewrite the program so that it does not attempt to close a DBMS_SQL cursor while it is executing under its own context.