--删除物化表的日志表 DROP MATERIALIZED VIEW LOG ON 表名; --为将要创建物化视图的表添加带主键的日志表 CREATE MATERIALIZED VIEW LOG ON 表名 WITH PRIMARY KEY; --创建物化视图并每分钟刷新一次 CREATE MATERIALIZED VIEW 表名 NOLOGGING REFRESH FAST ON DEMAND WITH PRIMARY KEY START WITH SYSDATE NEXT SYSDATE +…
create materialized view MV_XXXXrefresh fast on commitwith rowidenable query rewriteasselect * from SYS_USER where (USER_STATUS=0 AND USER_HR=1); oracle 有个机制,一旦条件与物化视图里的一样,那么会自动使用物化视图表…
create materialized view MV_XXXXrefresh fast on commitwith rowidenable query rewriteasselect * from SYS_USER where (USER_STATUS=0 AND USER_HR=1); oracle 有个机制,一旦条件与物化视图里的一样,那么会自动使用物化视图表 ORA-23413: 表 "xxx"."xx" 不带实体化视图日志 DROP materialize…