I have a number of materialized views that for various reasons on (rare) occasion will fail to materialize. Is there a database table that stores the error messages from the refresh attempts that I can query?
Oracle – How to Resolve Materialized View Error Log Table Issues
oracle
Related Question
- Oracle Materialized View Refresh Group – Montly Interval
- One Materialized View in Two Refresh Groups
- Oracle – Materialized View Overloads Database
- Refresh materialize View fast on commit multiple table
- Oracle – Create Materialized View on Commit with PIVOT Function
- Oracle – Fix Materialized View Not Purging Over dblink
Best Answer
You can use the following query to check when the MVs were last refreshed.
If you were refreshing these MVs using
DBMS_SCHEDULER
:-If you were refreshing these MVs using Job Queues/DBMS_JOB`:-
The reason of the job failure is written in
alert_<SID>.log
file as shown below as well as in a trace file referenced in the alert log file.