Overview
Displays the event history information of an OBServer node.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| TIMESTAMP | timestamp(6) | NO | Event Occurrence Time |
| SVR_IP | varchar(46) | NO | IP address of the event location |
| SVR_PORT | bigint(20) | NO | Port information of the event location |
| MODULE | varchar(64) | NO | The name of the module to which the event belongs. |
| EVENT | varchar(64) | NO | Event Name |
| NAME1 | varchar(256) | YES | Name of the first event attribute |
| VALUE1 | varchar(256) | YES | Value of the first event attribute |
| NAME2 | varchar(256) | YES | Name of the Second Event Attribute |
| VALUE2 | longtext | YES | Value of the Second Event Attribute |
| NAME3 | varchar(256) | YES | Name of the third event attribute |
| VALUE3 | varchar(256) | YES | Value of the third event attribute |
| NAME4 | varchar(256) | YES | Name of the Fourth Event Attribute |
| VALUE4 | varchar(256) | YES | Value of the Fourth Event Attribute |
| NAME5 | varchar(256) | YES | The fifth event attribute name. |
| VALUE5 | varchar(256) | YES | Value of the fifth event attribute |
| NAME6 | varchar(256) | YES | Name of the sixth event attribute |
| VALUE6 | varchar(256) | YES | Value of the sixth event attribute |
| EXTRA_INFO | varchar(512) | YES | Additional information |
Sample query
The system tenant queries DDL events on the OBServer node and displays the first record.
obclient(root@sys)[oceanbase]> SELECT * FROM oceanbase.DBA_OB_SERVER_EVENT_HISTORY WHERE MODULE = 'ddl' ORDER BY TIMESTAMP DESC LIMIT 1;
The query result is as follows:
*************************** 1. row ***************************
TIMESTAMP: 2026-01-29 16:42:32.673049
SVR_IP: 172.xx.xxx.xxx
SVR_PORT: 2882
MODULE: ddl
EVENT: create table execute finish
NAME1: tenant_id
VALUE1: 1002
NAME2: ret
VALUE2: 0
NAME3: trace_id
VALUE3: YB4**********************************
NAME4: rpc_dst
VALUE4: "172.xx.xxx.xxx:2882"
NAME5: table_info
VALUE5: 500217
NAME6: schema_version
VALUE6: 1769676152629320
EXTRA_INFO:
1 row in set