DATABASE RECOVERY METHOD AND APPARATUS

The present application relates to the technical field of databases, and discloses a database recovery method and apparatus. After receiving a recovery instruction for a database, a computer device queries, from an LSN and time association log and according to a recovery moment indicated by the reco...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: ZHANG, Jiwei, WU, Lengdong, NIU, Chenyang, WANG, Meng, ZHAO, Cheng
Format: Patent
Sprache:chi ; eng ; fre
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The present application relates to the technical field of databases, and discloses a database recovery method and apparatus. After receiving a recovery instruction for a database, a computer device queries, from an LSN and time association log and according to a recovery moment indicated by the recovery instruction, an LSN corresponding to the recovery moment, acquires recovered data of the database according to the LSN corresponding to the recovery moment, and performs data recovery on the database by using the recovered data. Then, a starting LSN used for the database corresponding to the recovery moment is greater than an LSN corresponding to the current moment. After the database rolls back to a historical moment from the current moment, by taking the LSN corresponding to the current moment as a starting point, an LSN greater than the LSN corresponding to the current moment is applied in the database, and it is ensured by means of an LSN jump mechanism that the LSN used after database recovery does not co