Oracle Error ORA-31108: Action failed as resource string is locked

Oracle Error Message

ORA-31108: Action failed as resource string is locked

Reason for the Error

Delete/Rename failed because of an existing lock

Solution

Do lockdiscovery to find the lock and delete it.