日期:2014-05-16 浏览次数:20602 次
 create materialized view MV_except_pattern_orders
  as
    select * from v_except_pattern_ordersdrop materialized view MV_except_pattern_orders
call DBMS_MVIEW.REFRESH('MV_EXCEPT_PATTERN_ORDERS','C');
DBMS_MVIEW.REFRESH
   ('countries_mv,regions_mv,hr.employees_mv','cf');
This statement performs a complete refresh of the countries_mv materialized view, a fast refresh of the regions_mv materialized view, and a default refresh of the hr.employees materialized view.
上述sql让物化视图countries_mv执行了全局刷新,regions_mv执行了增量刷新,hr.employees_mv执行了默认刷新
   create materialized view MV_except_pattern_orders  
    refresh Complete on demand  
        start with to_date('2010-01-01 13:20:51','YYYY-MM-DD HH24:MI:SS') next sysdate+1/(24*60)  
    as  
      select * from v_except_pattern_orders