Oracle Error ORA-00056: DDL lock on object “str.name” already held in an incompatible mode

Oracle Error Message

ORA-00056: DDL lock on object “str.name” already held in an incompatible mode

Reason for the Error

The attempted lock is incompatible with the object’s existing DDL lock.

This usually happens when you try to drop a table with parse locks.

Solution

Check that there are no parse locks on the table before attempting to drop it.

Wait a few minutes before attempting the operation again.