Skip to main content

Limitations

Note:

At present, OceanBase Advanced Tutorial for DBAs applies only to MySQL tenants of OceanBase Database Community Edition. Features of Oracle tenants of OceanBase Database Enterprise Edition are not described in this topic. For more information about the differences between the two editions, see Differences between Enterprise Edition and Community Edition.

Cluster Name Length

ItemMaximum length
     Cluster name          128 bytes     

Identifier Length

ItemMaximum length
      Username           64 bytes      
      Tenant name           63 bytes
      Database name           128 bytes
      Table name           64 characters
      Column name           128 bytes
      Index name           64 bytes
      View name           64 bytes
      Alias           255 bytes
      Table group name           127 bytes
      User-defined variable         64 characters

ODP Connections

Connections to databases

When you connect to OceanBase Database V4.x by using OceanBase Database Proxy (ODP), free routing between primary and standby databases is not supported.

Maximum number of connections

ItemUpper limit
Number of connections per ODP  It is specified by the client_max_connections parameter of ODP. The default value is 8192.

Note

You can increase the number of ODP nodes or the value of the client_max_connections parameter to increase the maximum number of connections for a cluster.

Number of Partition Replicas

ItemUpper limit
Number of partition replicas per OBServer nodeUnlimited.
You can estimate the number of partition replicas of each OBServer node based on the memory size of the tenant. 1 GB of memory supports about 20,000 tablets.

Single Table

ItemUpper limit
Row length1.5 MB
Number of columns4,096
Number of indexes128
Total number of index columns512
Index length16 KB
Total number of primary key columns64
Primary key length16 KB
Number of partitions8,192 to 65,536.
The maximum number of partitions in a single table in MySQL mode is specified by the tenant-level parameter max_partition_num. The default value is 8192.

Single Column

ItemUpper limit
      Length of an index column            16 KB      

String Type

ItemMaximum length
       CHAR            256 characters      
VARCHAR262,144 characters
BINARY256 bytes
VARBINARY1,048,576 bytes
TINYBLOB255 bytes
BLOB65,535 bytes
MEDIUMBLOB16,777,215 bytes
LONGBLOB536,870,910 bytes
TINYTEXT255 bytes
TEXT65,535 bytes
MEDIUMTEXT16,777,215 bytes
LONGTEXT536,870,910 bytes

Feature Usage

The following table describes the limitations for using the Physical Standby Database feature.

ItemDescription
Maximum number of standby tenants supported by one primary tenantUnlimited.
Whether homogeneous resources are required for the primary and standby tenantsResources of the primary and standby tenants do not need to be homogeneous. We recommend that you use the same resource specifications for the primary and standby tenants.
ParametersThe parameters of the primary tenant are independent of those of a standby tenant, and parameter modifications are not physically synchronized. After you modify a parameter of the primary tenant, you must assess whether to modify the corresponding parameter of the standby tenants.
System variablesSystem variables of the primary and standby tenants are physically synchronized. If you modify a system variable of the primary tenant, the system synchronously modifies the corresponding system variable of the standby tenants.
Users and passwordsYou can create users and change user passwords only in the primary tenant. The updated information is synchronized to the standby tenants.
Read/write operationsA standby tenant supports only read operations.
Minor and major compactionsMinor compactions in the primary tenant are independent of those in the standby tenants.
Major compactions are not performed in a standby tenant. Instead, the major compaction information is synchronized from the primary tenant to the standby tenants.
SwitchoverAll replicas of log streams of the standby tenants must be online.
FailoverAll replicas of log streams of the standby tenants must be online.
Loading...