You can create a tenant in the cluster that you manage.
Procedure
Log on to the OceanBase Cloud Platform (OCP) console.
The Clusters page automatically appears.
The Cluster Overview page automatically appears.
In the Clusters list, find the target cluster and click its name.
On the page that appears, you can go to the Create Tenant page through the following two ways:
Click Create Tenant in the upper-right corner of the Overview page.
In the left-side navigation pane, click Tenant Management , and click Create Tenant in the upper-right corner of the page that appears.
Enter a name for the new tenant.
The tenant name must meet the following conditions:
Configure the zone information for the new tenant of the selected cluster.
By default, the system displays configurable zones based on the zone information of the selected cluster. If you do not need to create a replica in a zone, click the Delete icon to delete the zone. The zone information fields that need to be configured and their descriptions are listed in the following table.
Field Description Replica Type The type of the replica. Valid values: - Full-featured Replica
- Read-only Replica
- Log Replica Select multiple full-featured replicas to ensure that they are in the majority.
Unit Specification OCP has a set of built-in unit specifications. You can select the specification that you need from the list or click Add Specification at the bottom of the list to add a custom specification. For more information, see OCP resource unit specifications . Units The number of units in the zone. Note that the number of units cannot exceed the number of servers in the zone . Zone Priority Rankings The priorities of the zones. The priority order affects the priority order of the primary zone of the SYS tenant. The left-side list shows all zones in the cluster. You can select and add one or more zones from the left-side list to the right-side list. By default, zones selected earlier have higher priorities than those selected later. Zones selected at the same time have the same priority. You can also adjust the order of the zones added to the right-side list by moving them upward or downward. The zone at the top of the list has the highest priority and the one at the bottom has the lowest priority. Complete the basic settings for the new tenant. The required fields and their descriptions are listed in the following table.
Field Description Administrator Password The password of the administrator account of the tenant. In MySQL mode, the administrator account is root. In Oracle mode, the administrator account is SYS. The password must meet the following conditions: - Be 8 to 32 characters in length.
- Contain at least two digits, two uppercase letters, two lowercase letters, and two special characters.
- The following special characters are supported: . _ + @ # $ %
Tenant Mode MySQL and Oracle tenant modes are supported. Note that the Oracle mode is supported only for OceanBase Database V2.1 and later. OCP Community Edition supports only the MySQL mode. To support the Oracle mode, contact OceanBase Technical Support to obtain OCP Enterprise Edition. Character Set and Encoding In MySQL mode, the supported character sets are utf8mb4, binary, gbk, and gb18030. Default value: utf8mb4. In Oracle mode, the supported character sets are utf8mb4, gbk, and gb18030. Default value: utf8mb4. Remarks This field is optional, and allows you to add additional information. IP Address Whitelist The list of clients that are allowed to access this tenant. The default value is % , indicating that all client connections are allowed. When you configure the whitelist, you must add the IP addresses of the OCP server and the OBProxy server to it. Otherwise, you cannot manage the tenant from OCP. Configure the whitelist in the following formats: - IP address example: xxx.xxx.xxx.1, xxx.xxx.xxx.2
- Subnet mask example: xxx.xxx.xxx.1/24
- Fuzzy match example: xxx.xxx.xxx.% or xxx.xxx.xxx._
- Mixed format example: xxx.xxx.xxx.1, xxx.xxx.xxx.2, xxx.xxx.xxx.%, xxx.xxx.xxx._, xxx.xxx.xxx.1/24
Click Submit .