How to Create and Maintain Materialized View

Here we will demonstrate how to create a materialized view with fast refresh, make a materialized view updateable, materialized view partitions, SYSDATE usage in materialized view creation etc.

Subscribe to get access

Read more of this content when you subscribe today.

SQL>  select  owner, mview_name, last_refresh_date, REFRESH_MODE,REFRESH_METHOD,FAST_REFRESHABLE,STALENESS,STALE_SINCE, QUERY  from dba_mviews order by LAST_REFRESH_DATE, STALENESS;

OWNER                          MVIEW_NAME                     LAST_REFRESH_DATE REFRES REFRESH_ FAST_REFRESHABLE   STALENESS           STALE_SINCE       QUERY
------------------------------ ------------------------------ ----------------- ------ -------- ------------------ ------------------- ----------------- ------------------------------------------------------------
TESTUSER                       MV_TRANSACTIONS                20210907-02:38:00 COMMIT FAST     DIRLOAD_DML        FRESH                                 SELECT "TRANSACTIONS"."ID" "ID","TRANSACTIONS"."DATETIME",