My Oracle Support Banner

COMPILATION_ERROR after Import when Materialized View References SYS Tables (Doc ID 1522287.1)

Last updated on FEBRUARY 28, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 to 12.1.0.1 [Release 10.2 to 12.1]
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.
  1. When a materialized view (mview) is imported into a database, the compile_state in DBA_MVIEWS shows as COMPILATION_ERROR.  
  2. Compiling the mview shows no errors, yet the compile_state cannot be changed back to VALID.  
  3. The mview references a SYS-owned table.  Query rewrite is not allowed when SYS tables are referenced in the mview query; however, this particular mview did not have query rewrite enabled.
  4. Applying a patch for <Bug 14722181>: MV NO LONGER REWRITES AFTER UPGRADE TO 11.2.0.3 did not resolve the problem.

 

 

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