SQL Server uses the boot page to crash Recovery

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.