Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

materialized view with nested table

I have following type:

create or replace type varchar2_arr as table of varchar2(300)

I try to create materialized view:

create table a (id varchar2(10), data varchar2(200), constraint pk_a primary key(id));
create table b (id varchar2(10), data varchar2(200), constraint pk_b primary key(id));

create materialized view log on a with rowid;
create materialized view log on b with rowid;

create materialized view mnest_ab_mv
refresh fast on commit
as
select a.rowid a_rowid, b.rowid b_rowid, varchar2_arr(a.data), b.data
from a, b
where a.id = b.id (+)

oracle gives me following error:

ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view

What do I need to do to create materialized view with a nested table?

like image 227
michael nesterenko Avatar asked Sep 09 '26 07:09

michael nesterenko


1 Answers

Have you tried running DBMS_MVIEW.EXPLAIN_MVIEW procedure, its output may help.

Thanks

Vishad

like image 91
vishad Avatar answered Sep 11 '26 22:09

vishad