Overview
query_memory_limit_percentage specifies the percentage of tenant memory allowed for a single SQL statement. When memory usage exceeds this threshold, the system reports an error and interrupts the execution of that SQL statement.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Both the
systenant and user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Int |
| Default Value | 50 |
| Value range | [0, 100] |
| Modifiable | Yes, you can use the following methods:ALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Configuration example
Set the maximum memory that a single SQL statement can use to 50% of the tenant's memory.
ALTER SYSTEM SET query_memory_limit_percentage = 50;