Overview
ob_trx_lock_timeout specifies the lock wait timeout for transactions.
Privilege requirements
Query variables
Global level
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.GLOBAL_VARIABLESview to view the values of global system variables.Session level
The
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.SESSION_VARIABLESview to view the values of session system variables.
Modify variables
Global effective
The
systenant can directly modify the values of global system variables.The user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.
Session Validity Period
The
systenant and all user tenants can directly modify the values of session system variables for their own tenants.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | int |
| Default Value | -1 indicates that the value is not effective. The unit is microseconds. |
| Value range | 0,+∞)
NoteA value of 0 indicates NO WAIT. |
| Effective Scope |
|
| Modifiable | Yes, you can use theSETStatement modification. |
Configuration example
Session effective
obclient> SET ob_trx_lock_timeout = 3000;Effective globally
obclient> SET GLOBAL ob_trx_lock_timeout = 3000;
References
[Lock mechanism