Note
This view is introduced since OceanBase Database V4.3.0.
Purpose
The CDB_MVREF_STATS_SYS_DEFAULTS view displays the system-level default values of refresh history statistical attributes for materialized views.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The ID of the tenant. |
| PARAMETER_NAME | varchar(16) | NO | The name of the parameter. Valid values:
|
| VALUE | varchar(40) | NO | The system-level default value of the parameter. |
Sample query
obclient [test_db]> SELECT * FROM oceanbase.CDB_MVREF_STATS_SYS_DEFAULTS;
The query result is as follows:
+-----------+------------------+---------+
| TENANT_ID | PARAMETER_NAME | VALUE |
+-----------+------------------+---------+
| 1 | COLLECTION_LEVEL | TYPICAL |
| 1 | RETENTION_PERIOD | 31 |
| 1002 | COLLECTION_LEVEL | TYPICAL |
| 1002 | RETENTION_PERIOD | 31 |
| 1004 | COLLECTION_LEVEL | TYPICAL |
| 1004 | RETENTION_PERIOD | 31 |
+-----------+------------------+---------+
6 rows in set (0.015 sec)