Method and device for synchronizing log files between main database and standby database
A log file and primary database technology, applied in the database field, can solve problems such as standby database failures
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] The present invention provides a method of synchronizing a log file between a primary database and a database, such as figure 1 As shown, the method can include:
[0025] Step S11, the primary database generates a log file that the data modification is generated in the case where data modification is detected.
[0026] Specifically, in this scenario, the main database can be a Mater database, and the database can be a SLAVE database. The above two databases can be a multi-dimensional database. In daily work, the main data can be responsible for processing network requests, and accordingly Transaction processing, such as data processing requests (such as INSERT or DELETE) that handles data changes sent by the client, and the database can be responsible for processing the data processing request (such as SELECT, etc.) of the client data. When the client finds the request to modify the data of the primary database, the primary database will generate a log file according to the...
Embodiment 2
[0052] like Figure 4 As shown, the present application also provides a device for synchronizing a log file between the primary database backup and the database, which can be used to perform the method of the above embodiment, including: first generating unit 40 for detection In the case of data modification, the log file modified; the transaction unit 42 is used to modify the data to transaction; the synchronization unit 44 is used to synchronize the log file to the preparation database when transaction is successful; The first retransmission unit 46 is used to play according to the log file.
[0053] Specifically, the scheme is provided by the prior art by the above apparatus, and the reproduction library is transmitted immediately after the primary database generates the log file, but the log file is synchronized without successfully transaction. The secondary database is not synchronized to the preparation database in the case of transaction failure. The transaction is successf...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


