Oracle Error OCI-31103: Resource locked in shared mode. Cannot add exclusive lock

Oracle Error Message

OCI-31103: Resource locked in shared mode. Cannot add exclusive lock

Reason for the Error

The resource is locked in shared mode. Cannot add a shared lock.

Solution

Try locking in shared mode or unlocking the existing lock.