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?
Have you tried running DBMS_MVIEW.EXPLAIN_MVIEW procedure, its output may help.
Thanks
Vishad
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With