Note
This view is introduced since OceanBase Database V4.0.0.
Purpose
The oceanbase.CDB_OB_LS_LOCATIONS view displays the distribution of the log stream replicas of all tenants.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CREATE_TIME | datetime(6) | NO | The time when the log stream was created. |
| MODIFY_TIME | datetime(6) | NO | The time when the log stream was modified. |
| TENANT_ID | bigint(20) | NO | The ID of the tenant. |
| LS_ID | bigint(20) | NO | The ID of the log stream. |
| SVR_IP | varchar(46) | NO | The IP address of the OBServer node. |
| SVR_PORT | bigint(20) | NO | The port number of the OBServer node. |
| SQL_PORT | bigint(20) | NO | The SQL port number. |
| ZONE | varchar(128) | NO | The name of the zone. |
| ROLE | varchar(8) | NO | The role of the replica. Valid values: LEADERFOLLOWER |
| MEMBER_LIST | varchar(4480) | NO | The list of replica members. When ROLE is set to LEADER, this column is valid. In other cases, the value of this column is NULL. |
| PAXOS_REPLICA_NUMBER | bigint(20) | NO | The quorum of a Paxos group. When ROLE is set to LEADER, this column is valid. In other cases, the value of this column is NULL. |
| REPLICA_TYPE | varchar(18) | NO | The replica type. Valid values:
|