Note
This view is available starting with V4.3.0.
Description
The DBA_MVREF_STATS view displays basic timing statistics for materialized view refreshes.
Columns
Field |
Type |
Nullable |
Description |
|---|---|---|---|
| MV_OWNER | VARCHAR2(128) | YES | Owner of the materialized view |
| MV_NAME | VARCHAR2(128) | YES | Materialized View Name |
| REFRESH_ID | NUMBER | NO | Refresh ID |
| REFRESH_METHOD | VARCHAR2(30) | NO | The method used to refresh the materialized view. Valid values:
|
| REFRESH_OPTIMIZATIONS | VARCHAR2(4000) | NO | The primary key or foreign key of the application during an empty refresh or a materialized view refresh.
NoteThis field is only compatible with and its default value is NULL. |
| ADDITIONAL_EXECUTIONS | VARCHAR2(4000) | NO | Additional operations. For example, log operations involved during index rebuilding or materialized view refreshes.
NoteThis field is only compatible and its default value is NULL. |
| START_TIME | TIMESTAMP(6) | NO | Refresh Start Time |
| END_TIME | TIMESTAMP(6) | NO | Refresh End Time |
| ELAPSED_TIME | NUMBER | NO | The length of time for which the refresh will run.
|
| LOG_SETUP_TIME | NUMBER | NO | Log retention period for the materialized view, in seconds
NoteThis field is only compatible with and its default value is 0. |
| LOG_PURGE_TIME | NUMBER | YES | The log cleanup time for the materialized view.
|
| INITIAL_NUM_ROWS | NUMBER | NO | Initial Number of Rows in the Materialized View (at the Start of Refresh) |
| FINAL_NUM_ROWS | NUMBER | NO | Final row count in the materialized view (at the end of the refresh) |
| NUM_STEPS | NUMBER | NO | Indicates the total number of steps in this refresh.
Note
|
| RESULT | NUMBER | NO | Indicates the execution result code of this refresh task. A value of 0 indicates success.
Note
|
| REFRESH_SCN | NUMBER | YES | The SCN at which the refresh starts.
Note
|
| SVR_IP | VARCHAR2(64) | YES | The IP address of the OBServer node that performed the refresh.
Note
|
| SVR_PORT | NUMBER | YES | The port number of the OBServer node that performs the refresh.
Note
|
Sample query
Query the basic timing statistics for materialized view refresh.
obclient [SYS]> SELECT * FROM SYS.DBA_MVREF_STATS;
The query result is as follows:
+----------+---------------+------------+----------------+-----------------------+-----------------------+------------------------------+------------------------------+--------------+----------------+----------------+------------------+----------------+
| MV_OWNER | MV_NAME | REFRESH_ID | REFRESH_METHOD | REFRESH_OPTIMIZATIONS | ADDITIONAL_EXECUTIONS | START_TIME | END_TIME | ELAPSED_TIME | LOG_SETUP_TIME | LOG_PURGE_TIME | INITIAL_NUM_ROWS | FINAL_NUM_ROWS |
+----------+---------------+------------+----------------+-----------------------+-----------------------+------------------------------+------------------------------+--------------+----------------+----------------+------------------+----------------+
| SYS | MV1_TEST_TBL1 | 825195 | FAST | NULL | NULL | 20-JAN-24 07.16.27.668694 PM | 20-JAN-24 07.16.27.726144 PM | 0 | 0 | 0 | 0 | 0 |
+----------+---------------+------------+----------------+-----------------------+-----------------------+------------------------------+------------------------------+--------------+----------------+----------------+------------------+----------------+
1 row in set (0.010 sec)
