Note
This view is available starting with V4.0.0.
Purpose
This view displays the status and restore progress of log streams in the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| LS_ID | NUMBER | NO | The ID of the log stream. |
| STATUS | VARCHAR2(100) | NO | The status of the log stream. Valid values: CREATING: The log stream is being created.CREATED: The log stream has been created.NORMAL: The log stream is available for service.DROPPING: The log stream is being dropped. The tablets on the log stream must be migrated.TENANT DROPPING: The tenant to which the log stream belongs is being dropped. The log stream must be dropped.WAIT OFFLINE: The data of the log stream has been dropped. The log stream is waiting for garbage collection.CREATE ABORT: The log stream creation failed or is not required. The log stream is being dropped. |
| PRIMARY_ZONE | CLOB | YES | The election priority of the log stream. |
| UNIT_GROUP_ID | NUMBER | NO | The ID of the unit group. |
| LS_GROUP_ID | NUMBER | NO | The ID of the log stream group. |
| CREATE_SCN | NUMBER | NO | The starting point of log writing for the log stream. |
| DROP_SCN | NUMBER | NO | The point at which the log stream is dropped. This point marks the end of all user data. |
| SYNC_SCN | NUMBER | NO | The synchronization point of the log stream. |
| READABLE_SCN | NUMBER | NO | The readable point of the log stream. |
| FLAG | VARCHAR2(2048) | YES | The flag of the log stream. Valid values:
NoteThis column is available starting with V4.2.0. |
Sample query
Query the status and restore progress of log streams in the current user 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