totn Oracle Error Messages

Oracle / PLSQL: ORA-01042 Error Message

Learn the cause and how to resolve the ORA-01042 error message in Oracle.

Description

When you encounter an ORA-01042 error, the following error message will appear:

  • ORA-01042: detaching a session with open cursors not allowed

Cause

You tried to detach from an Oracle session while there was an open cursor.

Resolution

The option(s) to resolve this Oracle error are:

Option #1

Close all cursors and then retry detaching the session.