Adsense Ad

Thursday, 1 June 2017

Oracle: ORA-00034 Error Message

ORA-00034 Error Message

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

Description

When you encounter an ORA-00034 error, the following error message will appear:
  • ORA-00034: cannot COMMIT or ROLLBACK in current PL/SQL session

Cause

You tried to issue a COMMIT or ROLLBACK command from a PLSQL function, procedure, or package. However, COMMIT and ROLLBACK have been disabled with the following command:
ALTER SESSION DISABLE COMMIT IN PROCEDURE

Resolution

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

Option #1

Do not issue a COMMIT or ROLLBACK command from your PLSQL function, procedure, or package while disabled.

Option #2

Enable COMMIT or ROLLBACK for this PLSQL session.

No comments: