You can connect to OceanBase Cloud by using public or private connectivity.
Choose a connection method
Note
Verify that the client has a route to the database address and that the relevant firewalls and security groups allow TCP traffic on the database port.
Connection method |
Cloud provider |
Use case |
Access control requirements |
|---|---|---|---|
| Public connection | All | Local development, testing, or cross-cloud access. | Add the client’s public egress IP address to the tenant allowlist. For instructions, see Set allowlist groups. |
| Private Link | Alibaba Cloud | Access the database through Alibaba Cloud Private Link. | Allow inbound traffic from application clients to the database port in the endpoint security group. No tenant allowlist entry is required. For instructions, see Alibaba Cloud security group rules. |
| Huawei Cloud | Access the database through Huawei Cloud VPC Endpoint. | Allow inbound traffic from application clients to the database port in the endpoint security group. No tenant allowlist entry is required. For instructions, see Huawei Cloud security group rules. |
|
| AWS | Access the database through AWS Private Link. | Configure the endpoint security group to allow application clients to access the database port. For a one-part connection string, also add the client IP address to the tenant allowlist. For instructions, see AWS security group rules and Set allowlist groups. |
|
| Azure | Access the database through an Azure Private Link endpoint. | Add the client IP address to the tenant allowlist for a one-part connection string. A two-part connection string requires no additional tenant allowlist entry. For instructions, see Azure Private Link. |
|
| Google Cloud | Access the database through a Google Cloud Private Service Connect (PSC) endpoint. | Enter the Google Cloud project ID when creating the service and the PSC connection ID when binding the endpoint. Neither step requires configuring the tenant allowlist. For instructions, see Private Service Connect. |
|
| VPC peering | AWS | Access the database through peered VPCs of the same cloud provider. | Add the client IP address or CIDR block of the peer VPC to the tenant allowlist and configure routing and security groups. For instructions, see Set allowlist groups. |