ORA-2097 & ORA-1031 When Refreshing a Materialized View in Non-Atomic Mode (Doc ID 1442725.1)

Last updated on JANUARY 15, 2015

Applies to:

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

Symptoms

Materialized view refresh is failing with:

exec dbms_mview.refresh('mv_test2','C',atomic_refresh=>false);
BEGIN dbms_mview.refresh('mv_test2','C',atomic_refresh=>false); END;

*
ERROR at line 1:
ERROR at line 1:
ORA-20001: Job failed: ORA-12801: error signaled in parallel query server P000
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2256
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2462
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2431
ORA-06512: at line 1

This can also show up in the failure for index rebuild during the mview refresh.

DBMS_INDEX_UTL: Error executing ALTER INDEX <index_name> REBUILD  PARALLEL 12

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