Note
This parameter was introduced in OceanBase Database V2.2.50.
Description
datafile_size specifies the size of a data file.
Attributes
| Attribute | Description |
|---|---|
| Type | Capacity |
| Default value | 0M. You must specify the unit. By default, MB is used. |
| Value range | [0M, +∞) |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No |
Considerations
- Once this parameter is specified, it cannot be reduced, only increased.
- If this parameter and the
datafile_disk_percentageparameter are both specified, the value of this parameter prevails. For more information about thedatafile_disk_percentageparameter, see datafile_disk_percentage.
Example
Set the size of the data file to 80 GB.
obclient> ALTER SYSTEM SET datafile_size='80G';