SQL Server uses the boot page to crash Recovery
Looked at the cover of a general article
Http://www.eygle.com/archives/2008/11/oracle_internals_preface.html
The first block of the data file records important checkpoints, SCN, and other information that is to be read at startup, and this is the embodiment.
Let's take a look at the SQL Server case, use the DBCC FILEHEADER command, 10 for one of my user libraries SSS database ID
Environment: SQL Server2012 64-bit
SELECT db_id ('sss') DBCC Fileheader (ten)
(Figure I)
(Figure II)
(Figure III)
(Figure IV)
From the above figure, you should find some rules.
Recoveryforklsn:cash recovery need to invoke the LSN, is also redostartlsn:27000000027100001
READONLYLSN: Read-only mode database
READWRITELSN: Read-write mode database
Because Bootpage is the first page to start each database, the most important and time-consuming process is the database redo and undo processes.
So it is reasonable to put redo start LSN in Bootpage, and the database starts to read the LSN information immediately, then reads the log in the LDF file.
If there is a wrong place, welcome everyone to shoot brick O (∩_∩) o
SQL Server uses the boot page to crash Recovery