Note
- For V4.3.x, this parameter is available starting with V4.3.5.
- For V4.2.x, this parameter is available starting with V4.2.5.
Description
query_memory_limit_percentage specifies the percentage of memory that can be used by a single SQL statement. When the memory usage exceeds the specified threshold, the system will return an error and interrupt the execution of the SQL statement.
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
The
systenant and user tenants can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 50 |
| Value range | [0, 100] |
| 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. |
Examples
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;
