Description
The CDB_MVREF_STATS_PARAMS view displays the refresh statistics attributes associated with each materialized view.
Columns
Field |
Type |
Nullable |
Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Tenant ID |
| 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.CDB_MVREF_STATS_PARAMS;
The query result is as follows:
+-----------+----------+---------------+------------------+------------------+
| TENANT_ID | MV_OWNER | MV_NAME | COLLECTION_LEVEL | RETENTION_PERIOD |
+-----------+----------+---------------+------------------+------------------+
| 1002 | test_db | mv1_tbl1_tbl2 | TYPICAL | 31 |
| 1002 | test_db | mv2_tbl1_tbl2 | TYPICAL | 31 |
| 1002 | test_db | t1_mv0 | TYPICAL | 31 |
| 1004 | SYS | MV_TBL1 | TYPICAL | 31 |
| 1004 | SYS | MV_TBL3 | TYPICAL | 31 |
| 1004 | SYS | MV1_TBL1 | TYPICAL | 31 |
| 1004 | SYS | MV2_TBL1 | TYPICAL | 31 |
| 1004 | SYS | MV3_TBL1 | TYPICAL | 31 |
| 1004 | SYS | MV_TBL1_TBL2 | TYPICAL | 31 |
| 1004 | SYS | MV1_TEST_TBL1 | TYPICAL | 31 |
| 1004 | SYS | MV2_TEST_TBL1 | TYPICAL | 31 |
| 1004 | SYS | MV3_TEST_TBL1 | TYPICAL | 31 |
| 1004 | SYS | MV4_TEST_TBL1 | TYPICAL | 31 |
| 1004 | SYS | MV5_TEST_TBL1 | TYPICAL | 31 |
| 1004 | SYS | MV6_TEST_TBL1 | TYPICAL | 31 |
| 1004 | USER001 | MV_TEST_TBL1 | TYPICAL | 31 |
+-----------+----------+---------------+------------------+------------------+
16 rows in set (0.073 sec)