Oracle Error ORA-31102: Already locked in exclusive mode. Cannot add lock.

Oracle Error Message

ORA-31102: Already locked in exclusive mode. Cannot add lock.

Reason for the Error

The resource is already locked in exclusive mode. Cannot add another lock.

Solution

Unlock the existing lock.