Note
This view is available starting with V4.2.0.
Overview
Displays the server list for all tenant portals. In network-based physical standby database scenarios, it is primarily used to obtain the IP address and SQL port number of the OBServer node hosting the replica of the primary tenant.
Columns
field |
Type |
Is NULL |
Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Tenant ID.
|
| TENANT_NAME | varchar(128) | NO | Tenant Name |
| SVR_IP | varchar(46) | NO | IP Address of the Server Where the System Log Stream Replica Resides |
| SQL_PORT | bigint(20) | NO | SQL Port of the System Log Stream Replica |
Sample query
Query the server list of the primary tenant primary_tenant1 in the sys tenant.
obclient [oceanbase]> SELECT SVR_IP, SQL_PORT FROM oceanbase.CDB_OB_ACCESS_POINT WHERE TENANT_NAME = 'primary_tenant1';
The query result is as follows:
+----------------+----------+
| SVR_IP | SQL_PORT |
+----------------+----------+
| xxx.xxx.xxx.20 | 17860 |
+----------------+----------+
1 row in set
References
For more information about network-based physical standby databases, see Physical standby database.
