Your statement needs a lock that another session is holding, and it was told not to wait.
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;ALTER SYSTEM KILL SESSION 'sid,serial#' IMMEDIATE;ALTER SESSION SET ddl_lock_timeout=60;Run DDL in a maintenance window and keep transactions short.
One email a week. Unsubscribe any time.