Note
This parameter is available starting with V4.0.0.
Description
log_disk_percentage specifies the percentage of the total disk space occupied by redo logs.
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
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 0 |
| Value range | [0, 99] |
| 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
- This parameter takes effect only when the value of the
log_disk_sizeparameter is 0. For more information about thelog_disk_sizeparameter, see log_disk_size. - When the value of this parameter is 0, the system automatically calculates the percentage of the total disk space occupied by redo logs based on whether logs and data share the same disk:
- If logs and data share the same disk, the percentage of the total disk space occupied by redo logs is 30%. In this case, 30% of the total disk space is allocated to log files.
- If logs and data do not share the same disk, the percentage of the total disk space occupied by redo logs is 90%. In this case, 90% of the total disk space is allocated to log files.
Examples
Set the percentage of the total disk space occupied by redo logs to 30%.
obclient> ALTER SYSTEM SET log_disk_percentage=30;