Database system and data synchronization method thereof
A database and data technology, applied in the database field, can solve the problems of prolonged delay, affecting the performance of the host, and unavailability of the replication source, so as to overcome the single source of replication and improve data consistency and performance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] figure 2 is a schematic diagram of the database system in Embodiment 1 of the present invention, such as figure 2 As shown, the database system includes: a main machine 100 and multiple standby machines 200 connected to the main machine 100 .
[0055] Wherein, the backup machine 200 is used to copy data from the host machine 100, and when the backup machine 200 cannot copy data from the host machine 100, the backup machine 200 is also used to select and connect to other backup machines according to a predetermined strategy. machine 200, and copy data from the connected standby machine 200.
[0056] A main routing table 101 is maintained on the main machine 100, and the main routing table 101 records an entry corresponding to each of the standby machines. The table entry records the standby machine address of the current standby machine 200, the minimum DCN (Database Change Number, the unique identifier of the database change), and the maximum DCN; in addition, the t...
Embodiment 2
[0089] Figure 4 is a flow chart of the data synchronization method described in Embodiment 2 of the present invention, such as figure 2 As shown, the method comprises the steps of:
[0090] S100: The standby machine establishes a communication connection with the host computer in the database system where it is located.
[0091] S200: When the standby machine cannot copy data from the master machine, the standby machine selects another standby machine connected to the database system according to a predetermined strategy, and copies data from the connected standby machine.
[0092] Wherein, when the following conditions occur in the standby machine, the standby machine determines that it cannot copy data from the main machine itself: the standby machine cannot connect to the main machine; or, the standby machine finds that there is no The data to be replicated; or, the standby machine finds that the load of the main machine has reached a predetermined upper limit.
[0093...
PUM

Abstract
Description
Claims
Application Information

- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com