Note
This view is available starting with V4.2.0.
Purpose
This view displays the log streams that existed in the current tenant in the past.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| LS_ID | bigint(20) | NO | The ID of the log stream. |
| LS_GROUP_ID | bigint(20) | NO | The ID of the log stream group. |
| STATUS | varchar(100) | NO | The status of the log stream.
|
| FLAG | varchar(2048) | NO | The flag of the log stream.
|
| CREATE_SCN | decimal(20,0) | NO | The GTS when the log stream was created, in nanoseconds. |
Sample query
Query the log streams that existed in the current user tenant in the past.
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