当 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 的输出以供查看。
Target | Microsoft.SQLServer.2012.DBEngine | ||
Category | EventCollection | ||
Enabled | True | ||
Event_ID | 813 | ||
Event Source | $Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$ | ||
Alert Generate | True | ||
Alert Severity | Warning | ||
Alert Priority | Normal | ||
Remotable | True | ||
Alert Message |
| ||
Event Log | Application | ||
Comment | Mom2012ID='{1DEC4754-8DE3-475E-AE58-EE2760B8F1C5}';MOM2012GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74} |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
_F6DA1507_12AF_11D3_AB21_00A0C98620CE_ | DataSource | Microsoft.Windows.EventProvider | Microsoft.SQLServer.SQLDefaultAccount |
GenerateAlert | WriteAction | System.Health.GenerateAlert | Default |
<Rule ID="Microsoft.SQLServer.2012.Logical_page_in_database_is_already_hashed_1_5_Rule" Target="SQL2012Core!Microsoft.SQLServer.2012.DBEngine" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2012ID='{1DEC4754-8DE3-475E-AE58-EE2760B8F1C5}';MOM2012GroupID={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.2012.Logical_page_in_database_is_already_hashed_1_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>