[OCM 12C] Managing a fast refreshable materialized view

“Performing a refresh operation requires temporary space to rebuild the indexes and can require additional space for performing the refresh operation itself.”
“Not all materialized views may be fast refreshable. Therefore, use the package DBMS_MVIEW.EXPLAIN_MVIEW to determine what refresh methods are available for a materialized view.”

Refresh methods:

  • Incremental : Two types: logg-based refresh and partition change tracking (PCT).
    “The incremental refresh is commonly called FAST refresh as it usually performs faster than the complete refresh.”
  • Complete refresh

DBMS_MVIEW package

  • DBMS_MVIEW.REFRESH
  • DBMS_MVIEW.REFRESH_ALL_MVIEWS
  • DBMS_MVIEW.REFRESH_DEPENDENT

Traditional methods:

FAST (‘F’), COMPLETE (‘C’), PCT (‘P’), and FORCE (‘?’).

  • Monitoring and information about the refresh
  • V$SESSION_LONGOPS;
  • DBA_JOBS_RUNNING;
  • MVIEW_NAME;

https://www.youtube.com/watch?v=_JOu5cg70Js – Oracle sql materialized view refresh fast by Sridhar Raghavan
Data Warehousing and Business Intelligence -> Database Data Warehousing Guide -> 7 Refreshing Materialized Views

Related posts

Leave a Comment