My Oracle Support Banner

Error ORA-01031 When Refresh Materialized View (Doc ID 1496817.1)

Last updated on OCTOBER 14, 2019

Applies to:

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

Symptoms

NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product.  Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

On production database 11.2.0.2 version when attempting to refresh the following error occurs.

ERROR
-----------------------
Cannot refresh materialized view group:

ORA-12048: error encountered while refreshing materialized view "<user_name>"."TEST_MV"
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2566
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2779
ORA-06512: at "SYS.DBMS_IREFRESH", line 685
ORA-06512: at "SYS.DBMS_REFRESH", line 195

Changes

When refreshing a MV with XML type  columns and the MV log is in another schema, if the "insufficient privileges" error is encountered, it's probably due to this bug.

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
Changes
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.