While running the Streams Setup Procedure receive ORA-04021: timeout occurred while waiting to lock object (Doc ID 2269012.1)

Last updated on AUGUST 07, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Information in this document applies to any platform.

Goal

Getting the ORA-04021  error when trying to run Streams Setup queue procedure

BEGIN
DBMS_STREAMS_ADM.SET_UP_QUEUE(
queue_table => 'STREAMS_QUEUE_TABLE',
queue_name => 'STREAMS_QUEUE',
queue_user => 'STRMADMIN');
END;
/

ERROR at line 1:
ORA-04021: timeout occurred while waiting to lock object
ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 746
ORA-06512: at line 2

 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms