2. Whenever materialized view and base table data’s are
synchronized then it is considered that materialized view has
fresh data otherwise it has the stale data (out-of-date data).
For knowing the status of materialized view data, there is
three types of view are available namely DBA_MVEIWS,
ALL_MVIEWS, and USER_MVIEWS in the data dictionary.
In the data dictionary the columns of the all the three views
such as MVIEW_NAEM, STALNESS, LAST_REF,
COMPILE_STATE are status are maintain automatically.
3. The STALENESS column display any one value like FRESH, STALE,
UNUSABLE, UNKNOWN, UNDEFINED or NEEDS_COMPILE.
Whenever NEEDS_COMPILE in these views shows NEEDS_COMPILE
OR VALID status. Suppose the STALENESS column value has
NEEDS_COMPILE then issue following alter materialized view
statement for compile.