You can view the status of a node by using an SQL statement.
Procedure
You can query the oceanbase.DBA_OB_SERVERS view for the status of a node.
Log on to the
systenant of the cluster as therootuser.Execute the following statement to go to the database named
oceanbase:obclient> USE oceanbaseExecute the following statement to view the status of the node.
In the
oceanbase.DBA_OB_SERVERSview, the status of a node is identified by thestop_timeandstatusfields.When the value of
stop_timeisNULL, the node is in thestartedstate. When the value ofstop_timeis notNULL, the node is in thestoppedstate. In this case, the value ofstop_timeis the timestamp when the node was stopped.The value of
statuscan be:active: indicates that the node is operating properly.inactive: indicates that the node is offline.
Sample statement:
obclient> SELECT stop_time,status FROM DBA_OB_SERVERS; +-----------+--------+ | stop_time | status | +-----------+--------+ | NULL | ACTIVE | +-----------+--------+ 1 row in set