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.
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:
connect / as sysdba
REM The select below is to avoid problems on some releases
select * from dual;
oradebug dump systemstate 266
In the system state we can see the following wait events.
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.
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