首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

一个建立在View下的物化View 可以建立 on commit机制吗

2013-01-21 
一个建立在View上的物化View 可以建立 on commit机制吗一个建立在View上的物化View 可以建立 on commit机

一个建立在View上的物化View 可以建立 on commit机制吗
一个建立在View上的物化View 可以建立 on commit机制吗?
create materialized view mv_1
as
select * from v_1
[解决办法]
sys@ORCL> create view emrep as select * from hr.employees;

View created.

sys@ORCL> create materialized view mv_emrep refresh force on commit as select * from emrep;
create materialized view mv_emrep refresh force on commit as select * from emrep
                                                                           *
ERROR at line 1:
ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view


sys@ORCL> !oerr ora 12054
12054, 00000, "cannot set the ON COMMIT refresh attribute for the materialized view"
// *Cause:  The materialized view did not satisfy conditions for refresh at
//          commit time.
// *Action: Specify only valid options.

热点排行