Oracle Error ORA-00034: cannot string in current PL/SQL session

Oracle Error Message

ORA-00034: cannot string in current PL/SQL session

Reason for the Error

In a session when this has been disabled (via “change session disable commit in procedure”), an attempt was made to issue a commit or rollback from a PL/SQL object (procedure, function, or package).

Solution

If PL/SQL commits aren’t enabled for this session, don’t try to use the commit or rollback functions in PL/SQL while they are.