Oracle Error ORA-16962: SQL statement attempted to begin an autonomous transaction

Oracle Error Message

ORA-16962: SQL statement attempted to begin an autonomous transaction

Reason for the Error

The SQL statement being analyzed attempted to begin an autonomous transaction, which is not supported.

Solution

Analyze another statement or remove the autonomous transaction from the current statement.