sql server 2000 torn_page_detection error (error 823)

來源:互聯網
上載者:User

 

2010-08-05 09:21:51.31 spid11    錯誤: 823,嚴重度: 24,狀態: 2
2010-08-05 09:21:51.31 spid11    I/O error (torn page) detected during read at offset 0x0000116496a000 in file 'd:/Microsoft SQL Server/MSSQL/data/xxxxxxx_Data.MDF'.

======================================================

Description&Solution:

 

Torn_page_detection:
This recovery option allows SQL Server to detect incomplete I/O operations caused by power failures or other system outages.

When set to ON, this option causes a bit to be reversed for each
512-byte sector in an 8-kilobyte (KB) database page when the page is
written to disk. If a bit is in the wrong state when the page is later
read by SQL Server, the page was written incorrectly; a torn page is
detected. Torn pages are usually detected during recovery because any
page that was written incorrectly is likely to be read by recovery.

Although SQL Server database pages are 8 KB, disks perform I/O
operations using a 512-byte sector. Therefore, 16 sectors are written
per database page. A torn page can occur if the system fails (for
example, due to power failure) between the time the operating system
writes the first 512-byte sector to disk and the completion of the 8-KB
I/O operation. If the first sector of a database page is successfully
written before the failure, the database page on disk will appear as
updated, although it may not have succeeded.

Note Using battery-backed disk caches can ensure that data is successfully written to disk or not written at all.

If a torn page is detected, an I/O error is raised and the connection is
killed. If the torn page is detected during recovery, the database is
also marked suspect. The database backup should be restored, and any
transaction log backups applied, because it is physically inconsistent.

By default, TORN_PAGE_DETECTION is ON.


相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.