Materialized Views

The Information Source model for IFS Business Reporting & Analysis describes a star schema model consisting of Facts (transactions) and Dimensions (basic data). If an Information Source is supposed to support a Data Mart solution, then the necessary storage containers, representing the Facts and the Dimensions, have to be created in the Data Mart.

This section deals with the case when the Data Mart implementation is based on Materialized Views. Data Mart access can also be implemented as ordinary tables based on the Incremental Load framework. For more information, please refer to Incremental Load of Information Sources.

Contents

Data Mart

 Some words about the Data Mart:

Materialized View Basics

The above picture shows the basic principle for defining of a Materialized View:


A typical definition of a Materialized View looks as follows:

CREATE MATERIALIZED VIEW &MV
TABLESPACE &IFSAPP_DATA
BUILD DEFERRED
USING NO INDEX
REFRESH COMPLETE ON DEMAND
AS
SELECT <columns>
FROM   <table(s)>
WHERE  <conditions>

Refresh Options

When a Materialized View is created a refresh option is specified. The general options are:

The REFRESH FAST options means incremental update of the Materialized View.
The REFRESH COMPLETE options means that the Materialized View is completely recreated from the current state of the involved source tables.

It is possible to define that the refresh should be performed on COMMIT, i.e. as soon as changes in the involved source tables are made permanent or on DEMAND, i.e. either manually ordered or according to a scheduled task.

IFS only supports completely refreshable Materialized Views. Even if Oracle support refresh on COMMIT this option should NEVER BE USED.
This means that refresh of a MV is defined as:

REFRESH COMPLETE ON DEMAND

It is up to the administrator to define how often Materialized Views should be refreshed and this is preferable done by scheduling of a refresh category.

Build Options

There are different build options available when creating a Materialized View.

IFS recommends using the option BUILD DEFERRED, which means that the Materialized View is defined in the Oracle dictionary when installed/deployed BUT it will be created empty.
The first snapshot is created by activating the Materialized View.

Considerations

There are several areas to consider when creating a Materialized View.