local_ip

2023-10-31 11:17:11  Updated

local_ip specifies the IP address of the server where OceanBase Database is installed.

Note

This parameter is available in OceanBase Database V4.2.0 and later.

Property Description
Type STRING
Default value Empty string
Value range Valid IP address of the target server
Effective upon OBServer node restart No. This is a read-only parameter.

Considerations

  1. You cannot modify the value by running the alter system set command.
  2. We recommend that you use the -I or --local_ip parameter in the command line to specify the IP address when you start the OBServer node.
  3. We recommend that you do not specify the local_ip and devname parameters at the same time. If you do, the value of the local_ip parameter is used.
  4. You can also specify the IP address in the local_ip=xxx.xxx.xxx.xxx format by using the -o parameter. If you specify IP addresses by using the -I, --local_ip, and -o parameters, the IP address specified by the -o parameter is used.

Examples

The following sample code describes how to start the OBServer node of the specified IP address:

./observer -I xxx.xxx.xxx.xxx -P 2882 -p 2881 -z zone1 -n demo1 -c 1 -d /home/user_name/path_to_store/store -l INFO -r 'xxx.xxx.xxx.xxx:2882:2881;xxx.xxx.xxx.xxx:2884:2883' -o "memory_limit=64G,system_memory=16G"

Contact Us