local_ip specifies the IP address of the server where OceanBase Database is installed.
Note
This parameter is available since OceanBase Database V4.2.0.
| Attribute | 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
- You cannot modify the value by running the
alter system setcommand. - We recommend that you use the
-Ior--local_ipparameter in the command line to specify the IP address when you start the OBServer node. - We recommend that you do not specify the
local_ipanddevnameparameters at the same time. If you do, the value of thelocal_ipparameter is used. - You can also specify the IP address in the
local_ip=xxx.xxx.xxx.xxxformat by using the-oparameter. If you specify IP addresses by using the-I,--local_ip, and-oparameters, the IP address specified by the-oparameter is used.
Example
Start an OBServer node with 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"