Note
This variable was introduced in V2.1.
Description
The ob_trx_idle_timeout variable specifies the transaction idle timeout period, which is the period of time between the execution of two statements in a transaction. If the period of time between the execution of two statements in a transaction exceeds this value, the transaction will time out.
Notice
After distributed transaction routing is enabled, the configuration of the ob_trx_idle_timeout variable will take no effect.
Privilege requirements
Query variables
Global level
systenants and user tenants can execute theSHOW VARIABLESstatement or view theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (in Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (in MySQL mode) to query the value of a global system variable.Session level
systenants and user tenants can execute theSHOW VARIABLESstatement or view theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (in Oracle mode) or theinformation_schema.SESSION_VARIABLESview (in MySQL mode) to query the value of a session system variable.
Modify variables
Set the variable at the global level
systenants 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 tenants must have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Set the variable at the session level
systenants and user tenants can directly modify the value of a session system variable for the current tenant.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 86400000000, in microseconds.
NoteThe default value of this variable was changed from 120000000 to 86400000000 in V4.0.0. |
| Value range | [100000000, +∞) |
| Scope |
|
| Modifiable | Yes. You can modify this variable by using the SET statement. |
Examples
Set the transaction idle timeout period to 86400000000 microseconds.
Set the variable at the session level
obclient> SET ob_trx_idle_timeout =86400000000;Set the variable at the global level
obclient> SET GLOBAL ob_trx_idle_timeout =86400000000;