Note
This variable is available starting with V1.4.
Description
ob_query_timeout specifies the maximum execution time of an SQL statement.
Privilege requirements
Query variables
Global level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to view the value of a global system variable.Session level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle mode) or theinformation_schema.SESSION_VARIABLESview (MySQL mode) to view the value of a session system variable.
Modify variables
Global level
The
systenant can directly modify the value of a global system variable.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.Oracle user tenant must have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Session level
Both the
systenant and all user tenants can directly modify the value of session system variables for their own tenant.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 10000000, in microseconds |
| Value range | [0, 3216672000000000] |
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Set the maximum execution time of an SQL statement to 10000000 microseconds.
Session level
obclient> SET ob_query_timeout =10000000;Global level
obclient> SET GLOBAL ob_query_timeout=10000000;