Note
This variable was introduced in V1.4.
Description
The ob_trx_timeout variable specifies the transaction timeout value.
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 in their own tenant.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 86400000000, in microseconds.
NoteThe default value of this variable was changed from 100000000 to 86400000000 in V4.0.0. |
| Applicable scope | |
| Modifiable | Yes. You can modify the value by using the SET statement. |
Examples
The following examples show how to set the transaction timeout value to 86400000000 microseconds.
Set the variable at the session level
obclient> SET ob_trx_timeout =86400000000;Set the variable at the global level
obclient> SET GLOBAL ob_trx_timeout =86400000000;