How to emulate the DISTINCT functionality in a FAST Refresh Materialized View
(Doc ID 1535549.1)
Last updated on NOVEMBER 04, 2019
Applies to:Oracle Database - Enterprise Edition - Version 184.108.40.206 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.
I am trying to create a materialized view (using fast refresh) at the mview site. The issue is I want to use the DISTINCT Keyword in the mview
definition. This results in:
SQL> create materialized view emp_distinct_mv refresh fast on demand as select distinct(job) from emp;
create materialized view emp_distinct_mv refresh fast on demand as select distinct(job) from emp
ERROR at line 1:
ORA-12015: cannot create a fast refresh materialized view from a complex query
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