The invention relates to an
Oracle RAC
heartbeat network detection switching method and device and a storage medium, and the method comprises the steps: obtaining the number of sent and received
heartbeat packets, the number of received and sent bytes and the round-trip time of the
heartbeat packets in a network card hardware counter, calculating the
network delay according to the round-trip time of the heartbeat packets through employing a hardware
timestamp, and carrying out the detection switching of the
Oracle RAC heartbeat network. And calculating a
packet loss rate according to the number of sent and received heartbeat packets, calculating a
bandwidth utilization rate according to the number of received and sent bytes, judging whether a heartbeat network fault is detected according to the
network delay, the
packet loss rate and the
bandwidth utilization rate, and if the heartbeat network fault is detected, switching a network card or a virtual IP. The network flow data comprises the number of sent and received heartbeat packets and the number of received and sent bytes, the network flow data can be collected in real time through a network card hardware counter and a hardware
timestamp, the timeliness of flow monitoring can be ensured, the accuracy can be up to milliseconds, heartbeat network faults can be detected within the
millisecond level, and the service life of the network is prolonged. And the influence of the heartbeat network fault on the reliability of the
Oracle RAC cluster is reduced.