Oracle Solution for Error ora-06519

Solution for Oracle Error ORA-06519

ORA-06519: active autonomous transaction detected and rolled back

What triggered the Error:

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.

What should we do to fix it:

Ensure that before returning from an autonomous PL/SQL block, any active autonomous transactions are explicitly committed or rolled back. ----------------------------------------------------------------------- 06520 through 06529 reserved for Foreign function errors