Note
This view is available starting with V4.2.0.
Purpose
This view displays the list of servers for the tenant access point. In a network-based physical standby database scenario, it is primarily used to obtain the IP address and SQL port number of the OBServer node in the primary tenant's replica.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The tenant ID.
|
| TENANT_NAME | varchar(128) | NO | The tenant name. |
| SVR_IP | varchar(46) | NO | The IP address of the server that hosts the system log stream replica. |
| SQL_PORT | bigint(20) | NO | The SQL port number of the server that hosts the system log stream replica. |
Sample query
Query the list of tenant access point servers for the primary_tenant1 tenant in the system 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 and how to operate them, see Physical standby database.