Overview
The datafile_size parameter is used to set the size of the local cache.
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 | Capacity |
| Default Value | 0 MB. The default unit is MB. You must specify the unit when configuring it. |
| Value range | [0M, +∞) |
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Usage instructions
- After this parameter is set, the storage capacity cannot be reduced when modified again; only expansion is supported.
- If this parameter is configured together with
datafile_disk_percentage, the value set in this parameter takes effect. For more information aboutdatafile_disk_percentage, see datafile_disk_percentage.
Configuration example
Set the local cache size to 80 GB.
obclient> ALTER SYSTEM SET datafile_size='80G';