Features
The DBA_MVREF_STATS_PARAMS view displays the refresh statistics attributes associated with each materialized view.
Columns
Field |
Type |
Nullable |
Description |
|---|---|---|---|
| MV_OWNER | varchar(128) | NO | Owner name of the materialized view |
| MV_NAME | varchar(128) | NO | Materialized View Name |
| COLLECTION_LEVEL | varchar(8) | NO | Refresh the statistics collection level.
|
| RETENTION_PERIOD | bigint(20) | NO | Number of Days to Retain Refreshed Statistics |
Sample query
Query the refresh statistics attributes associated with each materialized view.
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)