已对数据库中的逻辑页进行了哈希运算

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 的输出以供查看。

可替代参数

名称

说明

默认值

已启用

启用或禁用工作流。

优先级

定义警报优先级。

1

严重性

定义警报严重性。

1

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>Event ID: $Data/EventDisplayNumber$. $Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>