Note
For V4.0.0, 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 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 | 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. If the value of thelog_disk_sizeparameter is not 0, this parameter does not take effect. For more information about thelog_disk_sizeparameter, see log_disk_size. - If 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 redo logs occupy 30% of the total disk space, i.e., 30% of the disk space is allocated to log files.
- If logs and data are stored on separate disks, the redo logs occupy 90% of the total disk space, i.e., 90% of the disk space is allocated to log files.
Examples
Set the redo logs to occupy 30% of the total disk space.
obclient> ALTER SYSTEM SET log_disk_percentage = 30;