Note
For V2.2.50, this parameter is available starting with V2.2.50.
Description
In Shared-Nothing (SN) mode, the
datafile_sizeparameter specifies the size of data files.In Shared-Storage (SS) mode, the
datafile_sizeparameter specifies the size of the local cache space.
Privilege requirements
Query the parameter
The
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Capacity |
| Default value | 0M. The default unit is MB. You must specify the unit when you configure this parameter. |
| Value range | [0M, +∞) |
| 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
- After this parameter is set, you can only increase the value but cannot reduce it.
- When this parameter and the
datafile_disk_percentageparameter are both configured, the value of this parameter takes precedence. For more information about thedatafile_disk_percentageparameter, see datafile_disk_percentage.
Examples
In SN mode, set the size of data files to 80 GB.
obclient> ALTER SYSTEM SET datafile_size='80G';