Learn the reason and how to get to the bottom of 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 no longer trouble a COMMIT or ROLLBACK command from your PLSQL function, procedure, or package whilst disabled.
Option #2
Enable COMMIT or ROLLBACK for this PLSQL session.
Leave a Review