Overview
max_partition_num specifies the maximum number of partitions allowed for a single table in MySQL-compatible mode.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Only the
systenant can modify this parameter; user tenants cannot modify it.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | INT |
| Default Value | 8192 |
| Value range | [8192, 65536] |
| Modifiable | Yes, you can use the following methods:ALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Configuration example
Set the maximum number of partitions allowed for a single table in MySQL-compatible mode to 8,192.
obclient> ALTER SYSTEM SET max_partition_num=8192;