Note
This parameter is available starting with V4.4.1.
Description
The enable_database_sharding_none parameter specifies whether to enable automatic aggregation (automatic table group binding) when you create a database.
Applicability
This parameter applies only to OceanBase Database in MySQL mode.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
The
systenant and user tenants can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Boolean |
| Default value | False |
| Value range |
|
| 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. |
Considerations
Set the value of the
enable_database_sharding_noneparameter toTrue:- When you create a database, a table group with the
SHARDING = 'NONE'option is automatically bound to the database. All user tables in the database are bound to the same log stream. - This parameter does not affect existing databases.
- When you create a database, a table group with the
Set the value of the
enable_database_sharding_noneparameter toFalse:- This parameter does not affect existing databases.
Examples
Set the value of the enable_database_sharding_none parameter to True to enable automatic aggregation when you create a database.
obclient> ALTER SYSTEM SET enable_database_sharding_none = True;
