Search This Blog

Friday, September 23, 2022

Oracle / PLSQL: 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:

Post a Comment

PL/SQL - Collections

A collection is an ordered group of elements having the same data type. Each element is identified by a unique subscript that represents its...