Note
This variable is available starting with V2.1.
Description
ob_sql_work_area_percentage specifies the percentage of memory allocated to SQL execution for the tenant.
Privilege requirements
Query variables
systenant and all user tenants can query the value of Global system variables by using theSHOW VARIABLESstatement or theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode).Modify variables
systenant can modify the value of Global system variables.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the value of Global system variables.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of Global system variables.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 5 |
| Value range | [0, 100] |
| Scope | Global |
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Set the percentage of memory allocated to SQL execution for the tenant to 5.
obclient> SET GLOBAL ob_sql_work_area_percentage =5;