Note
This view is introduced since OceanBase Database V4.3.0.
Purpose
The DBA_MVREF_STATS_PARAMS view displays the refresh statistical attributes of each materialized view.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| MV_OWNER | varchar(128) | NO | The owner of the materialized view. |
| MV_NAME | varchar(128) | NO | The name of the materialized view. |
| COLLECTION_LEVEL | varchar(8) | NO | The refresh statistics collection level. Valid values:
|
| RETENTION_PERIOD | bigint(20) | NO | The retention period of refresh statistics. |
Sample query
obclient [test_db]> SELECT * FROM oceanbase.DBA_MVREF_STATS_PARAMS;
The query result is as follows:
+----------+---------------+------------------+------------------+
| MV_OWNER | MV_NAME | COLLECTION_LEVEL | RETENTION_PERIOD |
+----------+---------------+------------------+------------------+
| test_db | mv1_tbl1_tbl2 | TYPICAL | 31 |
| test_db | mv2_tbl1_tbl2 | TYPICAL | 31 |
| test_db | t1_mv0 | TYPICAL | 31 |
+----------+---------------+------------------+------------------+
3 rows in set (0.020 sec)