Query References Materialized View From Another Schema And Not The One In Local Schema (Doc ID 1937159.1)

Last updated on FEBRUARY 02, 2017

Applies to:

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

Goal

There are two identical queries having 2 identical mview in their own schemas, the expectation is that the query rewrite uses local mview to rewrite the query.  But both the queries are using only 1 mview to rewrite.
 

Solution

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