Mview is in Compilation_Error State After a Refresh or an Alter Statement
Last updated on FEBRUARY 02, 2017
Applies to:Oracle Database - Enterprise Edition - Version 220.127.116.11 and later
Information in this document applies to any platform.
There is an mview defined with a Database link (dblink) pointing to a remote database where the master table is located.
The mview definition is:
WITH ROWID as
SELECT DERIVED_PARAMETER FROM MPLUS_OWNER.TESTTBL@MPL_TEST.WORLD;
The database charactersets are:
Remote Master Database: JA16SJIS is a japanese SINGLE byte character set
MVIEW dictionary views output:
Select owner,mview_name, compile_state from dba_mviews;
OWNER MVIEW_NAME COMPILE_STATE
ONDB_OWNER MV_MEDCO COMPILATION_ERROR
The MVIEW is only marked as VALID when we create it. However, after a REFRESH or a COMPILE it is marked as COMPILE_STATE - COMPILATION_ERROR.
None, this is a new mview.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms