Oracle Solution for Error ora-24775

Solution for Oracle Error ORA-24775

ORA-24775: cannot prepare or commit transaction with non-zero lock value

What triggered the Error:

attempt was made to detach the transaction with a non-zero lock value.

What should we do to fix it:

tach the transaction with lock value set to zero and then try to prepare or commit the transaction.