Note
This view is available starting with V4.0.0.
Purpose
This view displays the distribution information of log stream (LS) replicas in the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CREATE_TIME | VARCHAR2(19) | NO | The creation time. |
| MODIFY_TIME | VARCHAR2(19) | NO | The modification time. |
| SVR_IP | varchar2(46) | NO | The IP address of the server. |
| SVR_PORT | NUMBER | NO | The port number of the server. |
| SQL_PORT | NUMBER | NO | The SQL port number. |
| ZONE | varchar2(128) | NO | The zone name. |
| ROLE | varchar2(8) | NO | The replica role. LEADERFOLLOWER |
| MEMBER_LIST | varchar2(4480) | NO | The list of replicas, separated by commas.
|
| PAXOS_REPLICA_NUMBER | NUMBER | NO | The number of Paxos quorum replicas. When the role is LEADER, this field is valid. Otherwise, it is NULL. |
| REPLICA_TYPE | varchar2(18) | NO | The replica type.
|
| LEARNER_LIST | CLOB | YES | The list of read-only replicas of the current log stream, separated by commas. The format of a single replica is svr_ip:svr_port:timestamp:flag. Here:
Example: 172.xx.xxx.xxx:2882:1:0 NoteThis field is available starting with V4.2.0. |
| REBUILD | VARCHAR2(5) | NO | Indicates whether the replica is being rebuilt.
NoteThis field is available starting with V4.2.1. |
Sample query
Query the distribution information of log stream replicas in the current tenant.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_LS_LOCATIONS;
The query result is as follows:
+---------------------+---------------------+-------+----------------+----------+----------+-------+--------+-----------------------+----------------------+--------------+--------------+---------+
| CREATE_TIME | MODIFY_TIME | LS_ID | SVR_IP | SVR_PORT | SQL_PORT | ZONE | ROLE | MEMBER_LIST | PAXOS_REPLICA_NUMBER | REPLICA_TYPE | LEARNER_LIST | REBUILD |
+---------------------+---------------------+-------+----------------+----------+----------+-------+--------+-----------------------+----------------------+--------------+--------------+---------+
| 03-SEP-24 11.25.29. | 03-SEP-24 11.25.32. | 1 | 172.xx.xxx.xxx | 2882 | 2881 | zone1 | LEADER | 172.xx.xxx.xxx:2882:1 | 1 | FULL | NULL | FALSE |
| 03-SEP-24 11.25.42. | 03-SEP-24 11.25.45. | 1001 | 172.xx.xxx.xxx | 2882 | 2881 | zone1 | LEADER | 172.xx.xxx.xxx:2882:1 | 1 | FULL | NULL | FALSE |
+---------------------+---------------------+-------+----------------+----------+----------+-------+--------+-----------------------+----------------------+--------------+--------------+---------+
2 rows in set