Oracle Error ORA-24754: cannot start new transaction with an active transaction

Oracle Error Message

ORA-24754: cannot start new transaction with an active transaction

Reason for the Error

An attempt to start a new transaction was made when there was an active transaction.

Solution

Commit, rollback or detach the existing transaction before starting a new transaction.