ORA-12015 is Raised when Creating a Fast Refresh Materialized View for a Query Containing XMLTABLE Function (Doc ID 1914717.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.1 to 12.1.0.1 [Release 11.2 to 12.1]
Information in this document applies to any platform.

Symptoms

Ccreating a materialized view for a query which is using the XMLTABLE function:
CREATE MATERIALIZED VIEW MV_TEST REFRESH FAST AS SELECT XT.XC
FROM X1, XMLTABLE('/TAG/SUBTAG' PASSING X1.C2 COLUMNS XC VARCHAR2(20)
PATH 'SUBSUBTAG') XT;

is raising below error -


ORA-12015 - cannot create a fast refresh materialized view from a complex query

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