My Oracle Support Banner

Drop Materialized View Hangs with 'Enq: JI - Contention' (Doc ID 1126123.1)

Last updated on AUGUST 04, 2018

Applies to:

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

Symptoms

When running a DROP MATERIALIZED VIEW the session hangs.

The hang has been reproduced and this time we have some trace files generated:

Connect to any session and run the following commands:

sqlplus /nolog
connect / as sysdba
REM The select below is to avoid problems on some releases
select * from dual;
oradebug setmypid
oradebug unlimit
oradebug dump systemstate 266


In the system state we can see the following wait events.

*** 2010-05-11 13:07:10.310
WAIT #4: nam='enq: JI - contention' ela= 4961081 name|mode=1246298118 view object #=3893654 0=0 obj#=3012275 tim=30332617495564
WAIT #4: nam='enq: JI - contention' ela= 2929739 name|mode=1246298118 view object #=3893654 0=0 obj#=3012275 tim=30332620425505


This wait event was determined to be due to a DBMS_JOB entry to refresh the mview we are trying to drop.  So after removing this job we could then successfully drop the mview.

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.