Note
- For V4.3.x, this parameter is available starting with V4.3.1.
- For V4.2.x, this parameter is available starting with V4.2.1 BP3.
Description
max_partition_num specifies the maximum number of partitions allowed for a single table in MySQL mode.
Applicability
This parameter is applicable only to OceanBase Database in MySQL mode.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query the value of this parameter by executing theSHOW PARAMETERSstatement or querying theGV$OB_PARAMETERSview.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | INT |
| Default value | 8192 |
| Value range | [8192, 65536] |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Examples
Set the maximum number of partitions allowed for a single table in MySQL mode to 8192.
obclient> ALTER SYSTEM SET max_partition_num=8192;
