I got ” ORA-06519: active autonomous transaction detected and rolled back ” error in Oracle database.
ORA-06519: active autonomous transaction detected and rolled back
Details of error are as follows.
ORA-06519: active autonomous transaction detected and rolled back. Cause: Before returning from an autonomous PL/SQL block, all autonomous transactions started within the block must be completed (either committed or rolled back). If not, the active autonomous transaction is implicitly rolled back and this error is raised. Action: Ensure that before returning from an autonomous PL/SQL block, any active autonomous transactions are explicitly committed or rolled back.
active autonomous transaction detected and rolled back
This ORA-06519 error is related to the returning from an autonomous PL/SQL block, all autonomous transactions started within the block must be completed (either committed or rolled back). If not, the active autonomous transaction is implicitly rolled back and this error is raised.
Ensure that before returning from an autonomous PL/SQL block, any active autonomous transactions are explicitly committed or rolled back.
To solve this error, Don’t forget to use commit; androllback; in the PL/SQL block,
Do you want to learn Oracle Database for Beginners, then read the following articles.
Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )