Note
This view was introduced in version V4.2.0.
Description
This view displays the log streams that existed in the tenant.
Fields
| Field | Type | Not null | Description |
|---|---|---|---|
| LS_ID | bigint(20) | NO | Log stream ID |
| LS_GROUP_ID | bigint(20) | NO | Log stream group ID |
| STATUS | varchar(100) | NO | Current status of the log stream. The following values are possible:
|
| FLAG | varchar(2048) | NO | Log stream flags. The following values are possible:
|
| CREATE_SCN | decimal(20,0) | NO | The GTS when the log stream is created. The value is in nanoseconds. |
Examples
Query the log streams that existed in the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_LS_HISTORY;
The query result is as follows:
+-------+-------------+--------+------+---------------------+
| LS_ID | LS_GROUP_ID | STATUS | FLAG | CREATE_SCN |
+-------+-------------+--------+------+---------------------+
| 1 | 0 | NORMAL | | 0 |
| 1001 | 1001 | NORMAL | | 1736152507462028000 |
+-------+-------------+--------+------+---------------------+
2 rows in set