Fast Refresh on commit of materialized view

后端 未结 2 728
夕颜
夕颜 2021-02-08 15:41

I just created tables DEPT and EMP like follow :

create table DEPT
( dept_no number , dept_name varchar(32) , dept_desc varchar(32),
  CONSTRAINT dept_pk Primary         


        
2条回答
  •  日久生厌
    2021-02-08 15:49

    I see that you created the materialized view logs with ROWID, which is not really required as both tables have a primary key so you could try without the ROWID.

    create materialized view log on emp; create materialized view log on dept;

    Additionally, if you create the materialized view log with ROWID you should create the materialized view with rowid.

    create materialized view empdept_mv refresh fast on commit WITH ROWID as select a.rowid dept_rowid, b.rowid emp_rowid, a.dept_no,b.emp_no from dept a, emp b where a.dept_no=b.dept_no ;

    You could try those changes and see if the materialized views fast refresh on commit.

提交回复
热议问题