Mview Cannot Be Refreshed After Compile / ORA-01740: Missing Double Quote In Identifier (Doc ID 2214690.1)

Last updated on JANUARY 18, 2017

Applies to:

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

Symptoms

mview "MVIWXLSKCKAPAANGEBOTE1" has stateleness state of "NEEDS_COMPILE" in dba_mviews.

sql>select owner, mview_name, staleness, stale_since from dba_mviews where mview_name = 'MVIWXLSKCKAPAANGEBOTE1';

OWNER MVIEW_NAME STALENESS STALE_SINCE
-------------------- ------------------------------ ------------------- -------------------
INFOR MVIWXLSKCKAPAANGEBOTE1 NEEDS_COMPILE 22-08-2016 11:26:55


After the mview is compiled, it cannot be refreshed. The refresh brings up following Errors:

INFOR@S01EDV188/bii:V12>BEGIN
  2 DBMS_SNAPSHOT.REFRESH(
  3 LIST => 'INFOR.SCHAEFS1TEST'
  4 ,PUSH_DEFERRED_RPC => TRUE
  5 ,REFRESH_AFTER_ERRORS => FALSE
  6 ,PURGE_OPTION => 1
  7 ,PARALLELISM => 0
  8 ,ATOMIC_REFRESH => TRUE
  9 ,NESTED => FALSE);
 10 END;
 11 /
BEGIN
*
ERROR at line 1:
ORA-12018: following error encountered during code generation for "INFOR"."SCHAEFS1TEST"
ORA-01740: missing double quote in identifier
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2821
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 3058
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 3017
ORA-06512: at line 2

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