Note
net_write_timeout is available starting with V1.4.
Description
The net_write_timeout variable specifies the number of seconds to wait for a block write to a connection before interrupting the write.
Privilege requirements
Query variables
Global level
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_GLOBAL_VARIABLE(Oracle mode) orinformation_schema.GLOBAL_VARIABLES(MySQL mode) to query the value of a Global system variable.Session level
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_SESSION_VARIABLE(Oracle mode) orinformation_schema.SESSION_VARIABLES(MySQL mode) to query the value of a session system variable.
Modify variables
Set the variable at the global level
The
systenant 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
The
systenant and all user tenants can directly modify the value of a session system variable in their own tenant.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 60 |
| Valid values | [1, 31536000] |
| Effective scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Remarks
When the server writes data to the client, the net_write_timeout variable specifies the timeout value in seconds before the write is interrupted.
Examples
Set the number of seconds to wait for a block write connection before interrupting the write operation to 60.
Global level
obclient> SET GLOBAL net_write_timeout=60;Session level
obclient> SET net_write_timeout=60;