資料庫中的邏輯頁已雜湊

Microsoft.SQLServer.2008.Logical_page_in_database_is_already_hashed_1_5_Rule (Rule)

Knowledge Base article:

摘要

當 Microsoft® SQL Server™ 嘗試雜湊資料庫 ID%d 的邏輯頁 %S_PGID,而此分頁已在 SQL Server 雜湊表中存在時,即會發生此錯誤。

此錯誤通常是其他資料錯誤的副效應,通常執行不含修復子句的 DBCC CHECKDB 可偵測到此錯誤。

解決方式

檢閱 SQL Server 錯誤記錄檔,然後在資料庫中執行含有適當修復子句的 DBCC CHECKDB。如果錯誤涉及索引頁,請使用 REPAIR_REBUILD 子句。如果錯誤涉及資料頁,可能需要使用 REPAIR_ALLOW_DATA_LOSS 子句。如果您不允許資料遺失,則需從已知完好備份進行還原。如果問題仍然存在,請連絡您的主要支援提供者。請備妥 DBCC CHECKDB 的輸出結果以供檢閱。

重要事項:如果執行含有其中一種修復子句的 DBCC CHECKDB 無法改正索引問題,或是不確定含有修復子句的 DBCC CHECKDB 會對資料產生何種影響,請連絡您的主要支援提供者。

向硬體廠商確認 SQL Server 所用的磁碟子系統正處於目前支援及建議的韌體與硬體等級。

如果 DBCC CHECKDB 找不到錯誤;或如果找到錯誤並修正了錯誤,而且後續 DBCC 陳述式未顯示錯誤,但此錯誤又重新出現,請連絡您的主要支援提供者。請提供 SQL Server 錯誤記錄檔以及 DBCC CHECKDB 與 sp_configure 的輸出結果以便檢閱。

Element properties:

TargetMicrosoft.SQLServer.2008.DBEngine
CategoryEventCollection
EnabledTrue
Event_ID813
Event Source$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
資料庫中的邏輯頁已雜湊
{0}
Event LogApplication
CommentMom2008ID='{1DEC4754-8DE3-475E-AE58-EE2760B8F1C5}';MOM2008GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}

Member Modules:

ID Module Type TypeId RunAs 
_F6DA1507_12AF_11D3_AB21_00A0C98620CE_ DataSource Microsoft.Windows.EventProvider Microsoft.SQLServer.SQLDefaultAccount
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.SQLServer.2008.Logical_page_in_database_is_already_hashed_1_5_Rule" Target="SQL2008Core!Microsoft.SQLServer.2008.DBEngine" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2008ID='{1DEC4754-8DE3-475E-AE58-EE2760B8F1C5}';MOM2008GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="_F6DA1507_12AF_11D3_AB21_00A0C98620CE_" Comment="{F6DA1507-12AF-11D3-AB21-00A0C98620CE}" TypeID="Windows!Microsoft.Windows.EventProvider" RunAs="SQL!Microsoft.SQLServer.SQLDefaultAccount">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>813</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2008.Logical_page_in_database_is_already_hashed_1_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>