enable_compression_protocol specifies whether to enable the compression protocol.
Note
This parameter is deprecated in OceanBase Database V4.3.4. You can query and modify this parameter, but the setting does not take effect.
| Attribute | Description |
|---|---|
| Parameter type | Boolean |
| Default value | True |
| Value range |
|
| Effective only after ODP restart | No |
Note
This parameter takes effect only for new connections.
Examples
Log in to OceanBase Database through OceanBase Database Proxy (ODP) as the
root@sysuser or log in to ODP as theroot@proxysysuser.Here is an example of logging in to OceanBase Database through ODP as the
root@sysuser. For more information, see Connect to an OceanBase Database tenant by using OBClient.[admin@obtest ~]$ obclient -uroot@sys#obcluster -h10.10.10.1 -P2883 -pNotice
To use ODP commands in OceanBase Database, the IP address (specified by
-h) and the port (specified by-P) for connecting to OceanBase Database must be the IP address and listening port (specified bylisten_port) of ODP.Here is an example of logging in to ODP as the
root@proxysysuser. The IP address (specified by-h) is the IP address of ODP, and the port (specified by-P) is the listening port (specified bylisten_port) of ODP.[admin@obtest ~]$ obclient -uroot@proxysys -h10.10.10.1 -P2883 -pRun the following command to enable the compression protocol:
obclient> alter proxyconfig set enable_compression_protocol=True;enable_ob_protocol_v2has a higher priority thanenable_compression_protocol. Therefore, if OceanBase Protocol 2.0 is enabled, it will still be used even if the compression protocol is enabled.Note
You can use the following command to disable OceanBase Protocol 2.0. Note that if you disable OceanBase Protocol 2.0 in ODP V4.x, some features of ODP will be unavailable.
obclient> alter proxyconfig set enable_ob_protocol_v2=False;