Note
This view is available starting with V4.3.0.
Purpose
The ALL_MVIEW_LOGS view displays information about all materialized view logs.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| LOG_OWNER | VARCHAR2(128) | YES | The name of the materialized view log owner. |
| MASTER | VARCHAR2(128) | YES | The name of the master table to which the materialized view log belongs. |
| LOG_TABLE | VARCHAR2(128) | YES | The name of the materialized view log table. |
| LOG_TRIGGER | VARCHAR2(128) | YES | The row-level trigger on the master table that inserts rows into the materialized view log
NoteThis column is only compatible and its value is NULL by default. |
| ROWIDS | VARCHAR2(3) | NO | Indicates whether rowid information is recorded
|
| PRIMARY_KEY | VARCHAR2(3) | NO | Indicates whether primary key information is recorded
|
| OBJECT_ID | VARCHAR2(3) | NO | Indicates whether object identifier information is recorded in the object table
NoteThis column is only compatible and its value is NO by default. |
| FILTER_COLUMNS | VARCHAR2(3) | NO | Indicates whether filter column information is recorded
|
| SEQUENCE | VARCHAR2(3) | NO | Indicates whether sequence values are recorded to provide additional sorting information
NoteThe value of this column is always YES. |
| INCLUDE_NEW_VALUES | VARCHAR2(3) | NO | Indicates whether both old and new values are recorded
NoteThe value of this column is always YES. |
| PURGE_ASYNCHRONOUS | VARCHAR2(3) | NO | Indicates whether the materialized view log is asynchronously purged
|
| PURGE_DEFERRED | VARCHAR2(3) | NO | Indicates whether the materialized view log is purged in a deferred manner
|
| PURGE_START | DATE | YES | The start date of the deferred purge. |
| PURGE_INTERVAL | VARCHAR2(200) | YES | The interval for the deferred purge. |
| LAST_PURGE_DATE | DATE | YES | The date when the materialized view log was last purged. |
| LAST_PURG_ESTATUS | NUMBER | NO | The status of the last purge of the materialized view log
NoteThe value of this column is always 0. |
| NUM_ROWS_PURGED | NUMBER | YES | The number of rows purged from the materialized view log in the last purge. |
| COMMIT_SCN_BASED | VARCHAR2(3) | NO | Indicates whether the materialized view log is based on commit SCN
NoteThe value of this column is always YES. |
| STAGING_LOG | VARCHAR2(3) | NO | Indicates whether the materialized view log is a staging log for synchronous refresh
NoteThis column is only compatible and its value is NO by default. |
| PURGE_DOP | NUMBER(38) | NO | The parallelism for purging the materialized view log.
NoteFor OceanBase Database V4.3.5, this column is available starting with V4.3.5 BP2. |
| LAST_PURGE_TIME | NUMBER(38) | YES | The duration of the last materialized view log purge task, in seconds.
NoteFor OceanBase Database V4.3.5, this column is available starting with V4.3.5 BP2. |
Sample query
Query all materialized view log information and display the first record.
obclient [SYS]> SELECT * FROM SYS.ALL_MVIEW_LOGS WHERE ROWNUM = 1\G
The query result is as follows:
*************************** 1. row ***************************
LOG_OWNER: TEST_USER001
MASTER: TBL1
LOG_TABLE: MLOG$_TBL1
LOG_TRIGGER: NULL
ROWIDS: NO
PRIMARY_KEY: YES
OBJECT_ID: NO
FILTER_COLUMNS: YES
SEQUENCE: YES
INCLUDE_NEW_VALUES: YES
PURGE_ASYNCHRONOUS: NO
PURGE_DEFERRED: YES
PURGE_START: 23-APR-25
PURGE_INTERVAL: current_date + 1
LAST_PURGE_DATE: 23-APR-25
LAST_PURGE_STATUS: 0
NUM_ROWS_PURGED: 0
COMMIT_SCN_BASED: YES
STAGING_LOG: NO
PURGE_DOP: 5
LAST_PURGE_TIME: 0
1 row in set