Note
This view is introduced since OceanBase Database V4.3.0.
Purpose
The CDB_MVREF_STATS_PARAMS view displays the refresh statistical attributes of each materialized view.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The ID of the tenant. |
| 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.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)