Log replay method and device, server and storage medium
A server and log technology, applied in the database field, can solve the problems that the replay performance cannot be guaranteed, the processing efficiency cannot meet the demand, and the merge sort cannot be completed, and achieves the effect of improving the replay efficiency and performance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] figure 1 It is a flow chart of the log replay method in Embodiment 1 of the present invention. This embodiment is applicable to the case of performing log replay on redo logs in the database. This method can be executed by a log replay device configured in the master database. The device may be implemented in software and / or hardware, for example, the device may be configured in a server.
[0047] figure 2It is a schematic diagram of the data guard system in Embodiment 1 of the present invention, and the data guard system is only an example, and there may be multiple standby databases. The data guardian system in the figure includes a primary database 101 and a standby database 102, wherein the primary database 101 is a shared storage database cluster including two database instances, the primary database 101 includes database instance 1 and database instance 2, each database Instances generate and manage their own redo logs independently. The primary database 101 c...
Embodiment 2
[0070] Figure 4 It is a flow chart of the log playback method in Embodiment 2 of the present invention. This embodiment is applicable to the case of performing log replay on the redo logs in the database. The method can be executed by a log replay device configured in the standby database, and the device can be realized by software and / or hardware. For example, the The device can be configured in a server. Such as Figure 4 As shown, the method of this embodiment specifically includes:
[0071] S210. Obtain redo logs sent by the primary database.
[0072] Wherein, redo logs may include page synchronization redo logs and regular redo logs.
[0073] S220. Whether the redo log is a page synchronization redo log.
[0074] According to the log type of the redo log, perform log replay on the redo log, first determine the log type of the redo log, that is, determine whether the redo log is a page synchronization redo log according to the log content, if the redo log is a page s...
Embodiment 3
[0084] Figure 5 It is a schematic structural diagram of the log replay device in Embodiment 3 of the present invention. The log replay device can be set in the master database. This embodiment is applicable to the case of log replay for redo logs in the database. The log replaying device provided in the embodiment of the present invention can execute the log replaying method provided in the first embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
[0085] The device specifically includes a log generating module 310 and a log sending module 320, wherein:
[0086] The log generating module 310 is configured to generate a redo log when it is determined that the current database instance modifies the target data page for the first time, wherein the redo log includes page synchronization redo logs and conventional redo logs;
[0087] The log sending module 320 is configured to send the redo log to the sta...
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