denrepo

Oracle error

ORA-00060

ORA-00060: deadlock detected while waiting for resource

What usually causes it

Two sessions each waited for a row the other held. Oracle rolled back one statement, not the whole transaction.

What to check first

The trace file named in the alert log holds the deadlock graph and both statements. The lasting fix is in the application's locking order. Unindexed foreign keys are a common cause of table-level (TM) deadlocks.

Scripts that help

Open in the error lookupOracle's reference