Unlock instant, AI-driven research and patent intelligence for your innovation.

Database hot standby data synchronization method, system and device and medium

A dual-machine hot backup and data synchronization technology, which is applied in database update, database distribution/replication, redundant data error detection in computing, etc., can solve the inconsistency of master and backup data, violation of the basic principles of dual-machine hot backup, etc. problems, to achieve the effect of ensuring high availability, solving synchronization exceptions, and improving service processing performance

Pending Publication Date: 2022-04-12
GUANGDONG VTRON TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Based on the system background service of SQLite database, the synchronization of SQLite data needs to be considered in the implementation of the dual-machine hot backup solution. Since the SQLite database only supports local databases accessed by API, the master and backup services can be written in the normal operation of the business logic network communication to achieve data Real-time synchronization, but when the network is abnormal, the real-time synchronization abnormality of the main and standby services will lead to the inconsistency of the main and standby data, thus violating the basic principle of dual-machine hot standby

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Database hot standby data synchronization method, system and device and medium
  • Database hot standby data synchronization method, system and device and medium
  • Database hot standby data synchronization method, system and device and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] Such as figure 1 As shown, a dual-machine hot standby data synchronization method for a database is used to synchronize the main service and the standby service, and perform data synchronization from the perspective of the main service, including the following steps:

[0049] S101. Obtain an SQL statement for operating the primary service, and determine whether the working status of the standby service is normal;

[0050] In step S101, after the main service receives the business request from the client, it operates the database, and the process of obtaining the SQL statement for operating the main service is as follows:

[0051] receiving a business request, and generating an SQL statement according to the business request;

[0052] Operating the database corresponding to the main service according to the SQL statement;

[0053] When the operation is successful, the SQL statement is obtained from the database corresponding to the main service.

[0054] It should be ...

Embodiment 2

[0089] Such as image 3 As shown, in the embodiment of the present invention, a method for synchronizing data in dual-machine hot backup of a database of a database is used to synchronize the main service and the backup service, and perform data synchronization from the perspective of the backup service, including the following steps:

[0090] S301. Determine whether the working state of the standby service is normal;

[0091]It should be noted that whether the working status of the standby service mentioned in this embodiment is normal refers to whether the TCP network communication connection between the standby service and the main service is normal. When communicating normally, it means that the working status of the standby service is normal. If it is judged that the TCP network communication connection between the standby service and the main service is abnormal or the standby service itself is abnormal, it means that the working status of the standby service is abnormal...

Embodiment 3

[0110] The embodiment of the present invention also provides an electronic device, including: a processor (processor), a communication interface (Communication Interface), a memory (memory) and a communication bus, wherein the processor, the communication interface, and the memory complete the mutual communication through the communication bus communication. The processor can execute the computer program in the memory, so as to realize the steps of a method for synchronizing data in dual-machine hot standby of the database.

[0111] In addition, the above logic instructions in the memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the field of dual-computer hot standby, in particular to a dual-computer hot standby data synchronization method, system and device of a database and a medium, and aims to solve the problem of master and standby data synchronization under abnormal conditions. A dual-computer hot standby data synchronization method of a database is used for synchronizing a main service and a standby service and comprises the steps that an SQL statement for operating the main service is obtained, and whether the working state of the standby service is normal or not is judged; if yes, sending the SQL statement to the standby service in real time; and if not, storing the SQL statement to a local data file of the main service, analyzing the local data file to obtain the SQL statement after the working state of the standby service returns to normal, and sending the analyzed SQL statement to the standby service.

Description

technical field [0001] The present invention relates to the field of dual-machine hot backup, and more specifically, to a data synchronization method, system, device and medium for dual-machine hot backup of a database. Background technique [0002] Based on the system background service of SQLite database, the synchronization of SQLite data needs to be considered in the implementation of the dual-machine hot backup solution. Since the SQLite database only supports local databases accessed by API, the master and backup services can be written in the normal operation of the business logic network communication to achieve data However, when the network is abnormal, the abnormal real-time synchronization of the active and standby services will lead to the inconsistency of the active and standby data, thus violating the basic principle of dual-machine hot standby. Contents of the invention [0003] The present invention aims to overcome at least one defect of the above-mention...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/23G06F16/242G06F16/27G06F11/14
Inventor 胡月明
Owner GUANGDONG VTRON TECH CO LTD