Note
This view is introduced in V4.0.0.
Purpose
This view displays the status and recovery progress of log streams in the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| LS_ID | NUMBER | NO | Log stream ID |
| STATUS | VARCHAR2(100) | NO | Log stream status. Valid values: CREATING: Log stream is being created.CREATED: Log stream has been created.NORMAL: The log stream is available.DROPPING: The log stream is to be deleted. The tablets on the log stream need to be migrated.TENANT DROPPING: The tenant where the log stream resides is to be deleted. The log stream needs to be deleted.WAIT OFFLINE: The user data of the log stream has been deleted. The log stream is waiting for garbage collection.CREATE ABORT: The log stream creation has failed or is not needed. The log stream is to be deleted. |
| PRIMARY_ZONE | CLOB | YES | The primary zone of the log stream. |
| UNIT_GROUP_ID | NUMBER | NO | Unit group ID. |
| LS_GROUP_ID | NUMBER | NO | Log stream group ID. |
| CREATE_SCN | NUMBER | NO | The SCN at which the log stream starts writing logs. |
| DROP_SCN | NUMBER | NO | The SCN at which the log stream is deleted. It is also the end SCN of all user data. |
| SYNC_SCN | NUMBER | NO | The synchronization SCN of the log stream. |
| READABLE_SCN | NUMBER | NO | The readable SCN of the log stream. |
| FLAG | VARCHAR2(2048) | YES | The log stream flag. Valid values:
NoteThis field is introduced in V4.2.0. |
Sample query
A user tenant queries the status and recovery progress of log streams in the tenant.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_LS;
The query result is as follows:
+-------+--------+--------------+---------------+-------------+---------------------+----------+---------------------+---------------------+------+
| LS_ID | STATUS | PRIMARY_ZONE | UNIT_GROUP_ID | LS_GROUP_ID | CREATE_SCN | DROP_SCN | SYNC_SCN | READABLE_SCN | FLAG |
+-------+--------+--------------+---------------+-------------+---------------------+----------+---------------------+---------------------+------+
| 1 | NORMAL | zone1 | 0 | 0 | NULL | NULL | 1741747516828022001 | 1741747516828022000 | NULL |
| 1001 | NORMAL | zone1 | 1002 | 1001 | 1740535631547912001 | NULL | 1741747516828022001 | 1741747516828022000 | NULL |
+-------+--------+--------------+---------------+-------------+---------------------+----------+---------------------+---------------------+------+
2 rows in set