Home / Oracle Errors / ORA-00054

ORA-00054

Resource busy and acquire with NOWAIT specified

What it means

Your statement needs a lock that another session is holding, and it was told not to wait.

Common causes

How to fix it

  1. Find the blocker: SELECT s.sid,s.serial#,s.username,o.object_name FROM v$locked_object l JOIN dba_objects o ON o.object_id=l.object_id JOIN v$session s ON s.sid=l.session_id;
  2. Ask the owner to commit or roll back, or end the session if appropriate: ALTER SYSTEM KILL SESSION 'sid,serial#' IMMEDIATE;
  3. For DDL, wait for a quiet moment or allow waiting: ALTER SESSION SET ddl_lock_timeout=60;

How to prevent it

Run DDL in a maintenance window and keep transactions short.

Still stuck? Ask the community in Q&A.

Get the weekly Vismo digestNew Oracle articles and Q&A in your inbox. No spam.

One email a week. Unsubscribe any time.