Note
This variable is available starting with V2.1.
Description
ob_trx_idle_timeout specifies the transaction idle timeout. A transaction is considered idle when the execution interval between two statements exceeds this value.
Notice
After you enable distributed transaction routing, the configuration of the ob_trx_idle_timeout variable will no longer take effect.
Privilege requirements
Query variables
Global level
The
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 values of global system variables.Session level
The
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 values of session system variables.
Modify variables
Global level
The
systenant can directly 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.
Session level
The
systenant and all user tenants can directly modify the value of session system variables.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 86400000000 microseconds.
NoteStarting from V4.0.0, the default value of this variable is changed from 120000000 to 86400000000. |
| Value range | [100000000, +∞) |
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Set the transaction idle timeout to 86400000000 microseconds.
Session level
obclient> SET ob_trx_idle_timeout =86400000000;Global level
obclient> SET GLOBAL ob_trx_idle_timeout =86400000000;
