Overview
ob_trx_idle_timeout specifies the timeout period for an idle transaction. An idle transaction is one in which the execution interval between two consecutive statements exceeds this value.
Notice
After distributed transaction routing is enabled, the configuration of variable ob_trx_idle_timeout will no longer take effect.
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
Both 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 expiration
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 | 86400000000, in microseconds. |
| Value range | [100000000,+∞) |
| Effective Scope |
|
| Modifiable | Yes, you can use theSETStatement modification. |
Configuration example
Set the transaction idle timeout to 86400000000 microseconds.
Session expiration
obclient> SET ob_trx_idle_timeout =86400000000;Effective globally
obclient> SET GLOBAL ob_trx_idle_timeout =86400000000;