Note
This variable is available starting with V2.1.
Description
net_buffer_length specifies the maximum size of SQL queries that an OBServer node can accept.
Privilege requirements
Query variables
Global level
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 value of global system variables.Session level
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 value of session system variables.
Modify variables
systenant can 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.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 16384 |
| Value range | [1024, 1048576] |
| Scope |
|
| Modifiable | Yes. You can execute the SET GLOBAL statement to modify the value of global system variables. You cannot execute the ALTER SESSION SET statement to modify the value of session system variables. |
Examples
Set the maximum size of SQL queries that an OBServer node can accept to 16384.
obclient> SET GLOBAL net_buffer_length =16384;