Note
This view is introduced since OceanBase Database V4.1.0.
Purpose
The oceanbase.DBA_OB_CLUSTER_EVENT_HISTORY view displays cluster-level important events. At present, this view displays only events related to cluster upgrades. You can query this view only from the sys tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TIMESTAMP | timestamp(6) | NO | The time when the event was created. |
| MODULE | varchar(256) | NO | The name of the module. |
| EVENT | varchar(256) | NO | The name of the event. |
| NAME1 | varchar(256) | NO | The name of the first attribute of the event. |
| VALUE1 | text | NO | The value of the first attribute of the event. |
| NAME2 | varchar(256) | NO | The name of the second attribute of the event. |
| VALUE2 | text | NO | The value of the second attribute of the event. |
| NAME3 | varchar(256) | NO | The name of the third attribute of the event. |
| VALUE3 | text | NO | The value of the third attribute of the event. |
| NAME4 | varchar(256) | NO | The name of the fourth attribute of the event. |
| VALUE4 | text | NO | The value of the fourth attribute of the event. |
| NAME5 | varchar(256) | NO | The name of the fifth attribute of the event. |
| VALUE5 | text | NO | The value of the fifth attribute of the event. |
| NAME6 | varchar(256) | NO | The name of the sixth attribute of the event. |
| VALUE6 | text | NO | The value of the sixth attribute of the event. |
| EXTRA_INFO | text | NO | The additional information about the database link. |
Sample query
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_CLUSTER_EVENT_HISTORY \G
The query result is as follows:
TIMESTAMP: 2024-05-08 14:20:48.508912
MODULE: BOOTSTRAP
EVENT: BOOTSTRAP_SUCCESS
NAME1: cluster_version
VALUE1: 4.3.1.0
NAME2: build_version
VALUE2: 4.3.1.0_100000172024050810-fa1385d2910f990a8bb646c53ac03e2529d1bab8(May 8 2024 10:41:26)
NAME3:
VALUE3:
NAME4:
VALUE4:
NAME5:
VALUE5:
NAME6:
VALUE6:
EXTRA_INFO:
1 row in set (0.030 sec)