Refreshing Two or More Materialized View groups leads to Row Update Contention on SYS.MV_REFRESH_USAGE_STATS$ Table (Doc ID 1902926.1)

Last updated on APRIL 05, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.1 to 12.1.0.2 [Release 12.1]
Oracle Database - Standard Edition - Version 12.1.0.1 to 12.1.0.2 [Release 12.1]
Information in this document applies to any platform.

Symptoms

 You are refreshing two Materialized View groups as follows:

 You may also get this error:

Error Stack Dump -----
ORA-02049: timeout: distributed transaction waiting for lock
----- Current SQL Statement for this session (sql_id=gg0a5w60jw12h) -----
UPDATE SYS.MV_REFRESH_USAGE_STATS$ SET COUNT# = COUNT# + 1 WHERE MV_TYPE# = 'OTHER' AND REFRESH_METHOD# = 'FAST' AND REFRESH_MODE# = 'ON_DEMAND' AND OUT_OF_PLACE# = 'NO' AND ATOMIC# = 'YES'

 

Cause

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