Overview
Displays the list of servers for the tenant entry. In network-based physical standby database scenarios, it is primarily used to obtain the IP address and SQL port number of the OBServer node where the primary tenant's replica resides.
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 tenant entry server list for 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.