Learn the reason and how to get to the bottom of the ORA-00034 error message in Oracle.
When you encounter an ORA-00034 error, the following error message will appear:
ORA-00034: cannot COMMIT or ROLLBACK in current PL/SQL session
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
The option(s) to resolve this Oracle error are:
Do no longer trouble a COMMIT or ROLLBACK command from your PLSQL function, procedure, or package whilst disabled.
Enable COMMIT or ROLLBACK for this PLSQL session.