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",

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.