Overview
log_disk_percentage specifies the percentage of total disk space that redo logs can occupy.
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
- The
log_disk_sizeparameter takes effect only when its value is 0. If the value oflog_disk_sizeis not 0, this parameter does not take effect. 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 total disk space occupied by redo logs based on whether the logs and data share the same disk.
- When shared, redo logs occupy 30% of the total disk space where they are located. In other words, 30% of the total disk space is allocated for log files.
- During exclusive use, redo logs occupy 90% of the total disk space where they reside, meaning 90% of the allocated disk space is used for log files.
Configuration example
Set the redo log to occupy 30% of the total disk space where it resides.
obclient> ALTER SYSTEM SET log_disk_percentage=30;