Data recovery method, device and equipment and storage medium
A recovery method and data technology, applied in the database field, can solve the performance bottleneck, can not guarantee the continuous increase of LSN and other problems, and achieve the effect of improving system performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] figure 1 It is a flow chart of a data recovery method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of data recovery. The method can be executed by the data recovery device in the embodiment of the present invention. The device can use software and / or or hardware implementation, such as figure 1 As shown, the method specifically includes the following steps:
[0052] S110, when the database restarts after troubleshooting, read the parallel log packets from the online log file.
[0053]Wherein, the online log file is generally created and recycled when the database is initialized, and the online log file is used to store log packets generated during normal operation of the system.
[0054] Wherein, at least two parallel logs are stored in the parallel log package, and the parallel log package is a complete parallel log package. It should be noted that due to a failure, the last parallel log package may not be complete...
Embodiment 2
[0077] Figure 2A It is a flowchart of a data recovery method in Embodiment 2 of the present invention. This embodiment is optimized based on the above embodiments. In this embodiment, obtaining the self-description information of the parallel log package includes: obtaining the self-description information stored in The self-describing information of the header of the parallel log packet. When the database is restarted after troubleshooting, before reading the parallel log package from the online log file, it also includes: when any log package buffer is full, create a parallel log package, and allocate for the parallel log package Parallel log package sequence number; copy the database log in the log package buffer area to the parallel log package in turn; count and record the self-description information of the parallel log package; write the self-description information into the parallel log package header and write parallel log packets to the online log file.
[0078] S...
Embodiment 3
[0098] image 3 It is a schematic structural diagram of a data recovery device provided in Embodiment 3 of the present invention. This embodiment is applicable to the situation of data recovery, and the device can be implemented in the form of software and / or hardware, and the device can be integrated in any device that provides the function of data recovery, such as image 3 As shown, the data recovery device specifically includes: a reading module 310 , an acquisition module 320 and a recovery module 330 .
[0099] Wherein, the reading module 310 is used to read the parallel log package from the online log file when the database is restarted after troubleshooting;
[0100] The acquisition module 320 is configured to acquire the self-description information of the parallel log package, wherein the self-description information includes: the writing start position of each parallel log in the parallel log package, the parallel log stored in the parallel log package number, the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


