Overview
The datafile_disk_percentage parameter specifies the percentage of the total disk space that is available for caching data locally.
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 | 0 |
| Value range | [0,99] |
| 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
When the value of this parameter is 0, the system automatically calculates the percentage of the total disk space occupied by the local cache space (in SS mode) based on whether the logs and data share the same disk:
- When shared, the data files or local cache space occupies 60% of the total disk space where they are located.
- During exclusive access, the data files or local cache space occupy 90% of the total disk space where they are located.
When this parameter is configured together with
datafile_size, the value set bydatafile_sizeprevails. For more information aboutdatafile_size, see datafile_size.
Configuration example
Set the data file to occupy 90% of the total disk space where it resides.
obclient> ALTER SYSTEM SET datafile_disk_percentage=90;