Note
This variable is available starting with V1.4.
Description
net_read_timeout specifies the maximum number of seconds to wait for additional data from the connection before interrupting the read operation.
Privilege requirements
Query variables
Global level
systenant and all user tenants can query the value of global variables by executing theSHOW VARIABLESstatement or by querying theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode).Session level
SHOW VARIABLESor by querying theSYS.TENANT_VIRTUAL_SESSION_VARIABLE(Oracle mode) orinformation_schema.SESSION_VARIABLES(MySQL mode) views. Session system variables are accessible in thesystenant and all user tenants.
Modify variables
Global level
systenant can directly modify the value of a global system variable.The user of the MySQL user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of global system variables.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the values of global system variables.
Session level
You can modify the session system variables of the
systenant or user tenants.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 30 |
| Value range | [1, 31536000] |
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Guidelines
When the server reads data from a client, net_read_timeout specifies the value of timeout for how long to wait until interrupting the server operation.
Examples
SET GLOBAL read_rnd_buffer_size = 30;
Session level
obclient> SET net_read_timeout =30;Global level
obclient> SET GLOBAL net_read_timeout =30;
