If the OBServer node where the arbitration service is deployed fails, you can deploy the arbitration service on another OBServer node instead.
Prerequisites
The OceanBase Database software is installed on the new OBServer node and the arbitration service is enabled.
Procedure
Log on to the
systenant of the cluster as therootuser.Note that you must specify the corresponding fields in the following sample code based on your actual database configurations.
obclient -h10.xx.xx.xx -P2883 -uroot@sys -p***** -AFor more information about how to connect to a database, see Database connection overview (MySQL mode) or Database connection overview (Oracle mode).
Execute the following statement to replace the arbitration service:
ALTER SYSTEM REPLACE ARBITRATION SERVICE 'curr_arb_server_ip:curr_arb_server_port' WITH 'new_arb_server_ip:new_arb_server_port';Parameters:
curr_arb_server_ip:curr_arb_server_port: the IP address and remote procedure call (RPC) port of the faulty OBServer node on which the arbitration service is deployed. By default, Port 2882 is used.new_arb_server_ip:new_arb_server_port: the IP address and RPC port of the new OBServer node on which the arbitration service is deployed. By default, Port 2882 is used.
Sample statement:
obclient [(none)]> ALTER SYSTEM REPLACE ARBITRATION SERVICE '100.xx.xx.x2:2882' WITH '100.xx.xx.x3:2882'; Query OK, 0 rows affected(Optional) If the execution of the replacement command times out, execute the following statement to query the
DBA_OB_ARBITRATION_SERVICEview for the replacement status:SELECT * FROM DBA_OB_ARBITRATION_SERVICE;If the value of the
PREVIOUS_ARBITRATION_SERVICEfield in the query result is not empty, the replacement is in progress in the background. Wait for the replacement process to complete. If the value in thePREVIOUS_ARBITRATION_SERVICEcolumn is empty, the arbitration service is replaced.For more information about the
DBA_OB_ARBITRATION_SERVICEview, see DBA_OB_ARBITRATION_SERVICE.
More information
For more information about the arbitration service, see the following topics: