denrepo

Oracle error

ORA-04021

ORA-04021: timeout occurred while waiting to lock object

What usually causes it

A compile or DDL needed a library cache lock on an object that running sessions have pinned.

What to check first

Find the sessions executing the object and compile during a quiet period.

Scripts that help

Open in the error lookupOracle's reference