当 SQL Server 无法登记新的分布式事务或现有的分布式事务时,规则将触发警报。
当 SQL Server 无法登记新的或现有的 Microsoft 分布式事务处理协调器(MSDTC)事务时,出现此消息。
此类错误可能会有各种根本原因。错误状态、随错误返回的具体结果代码以及几乎同时发生的任何其他错误都可以帮助确定登记失败的原因。登记失败通常表示存在通信问题,如名称解析失败。该问题也可能是调用应用程序的设计方式或 SQL Server 端的阻塞或性能问题导致的。
检查 MS DTC 事务中涉及的两台计算机是否都已启动 MS DTC。如果 MS DTC 服务属于群集,则在群集管理器中验证该服务是否已联机。
在事件日志中查看 MS DTC 事务中涉及的服务器,以查看生成此消息的同时是否还有其他错误。如果有其他错误,则首先解决这些错误,因为此错误通常是其他错误的副产品。
默认情况下,在 Windows Server 2003 上禁用网络 MS DTC 访问。如果涉及的任何计算机正在运行 Windows 2003,则验证是否启用了 MS DTC。
验证涉及的服务器之间的 RPC 通信是否工作正常。
重新启动 MS DTC 事务中涉及的服务器以刷新所有的 IP 地址信息。
验证调用 COM+ 组件的事务超时设置的时间足够长,以避免出现超时而导致另一组件尝试登记已超时的事务
如果已启用 SQL Server 配置选项“轻型池”(也称为“纤程模式”),则关闭它。测试该错误是否仍然出现。
如果已启用 SQL Server 配置选项“优先级提升”,则关闭它。测试该错误是否仍然出现。
查阅 Microsoft 知识库文章 307802,以了解您的环境是否完全符合项目中的环境。如果完全符合,则试着更改其中一个环境因素,看看该消息是否会停止出现。如果一旦环境不再符合项目,该消息就停止出现,那么您可以安全地忽略该消息。
名称 | 说明 | 默认值 |
已启用 | 启用或禁用工作流。 | 是 |
间隔(秒) | 运行工作流的重复间隔时间(秒)。 | 300 |
优先级 | 定义警报优先级。 | 1 |
严重性 | 定义警报严重性。 | 1 |
同步时间 | 同步时间 |
|
超时(秒) | 指定工作流在关闭之前允许运行的时间,并标记为失败。 | 200 |
数据库连接超时(秒) | 如果在指定期间无法访问数据库,工作流将失败并注册一个事件。 | 15 |
Target | Microsoft.SQLServer.Windows.DBEngine | ||
Category | EventCollection | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Warning | ||
Alert Priority | Normal | ||
Remotable | True | ||
Alert Message |
| ||
Comment | Mom2017ID='{7F714A4C-B7CF-4665-B1B5-4D7A3E0613D0}';MOM2017GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74} |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
_F6DA1507_12AF_11D3_AB21_00A0C98620CE_ | DataSource | Microsoft.SQLServer.Windows.DataSource.EventCollectionFiltered | Default |
GenerateAlert | WriteAction | System.Health.GenerateAlert | Default |
<Rule ID="Microsoft.SQLServer.Windows.EventRule.DBEngine.Enlist_of_MSDTC_transaction_failed_1_5_Rule" Target="SqlDiscW!Microsoft.SQLServer.Windows.DBEngine" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2017ID='{7F714A4C-B7CF-4665-B1B5-4D7A3E0613D0}';MOM2017GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="_F6DA1507_12AF_11D3_AB21_00A0C98620CE_" Comment="{F6DA1507-12AF-11D3-AB21-00A0C98620CE}" TypeID="Microsoft.SQLServer.Windows.DataSource.EventCollectionFiltered">
<MachineName>$Target/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/MachineName$</MachineName>
<NetbiosComputerName>$Target/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/NetbiosComputerName$</NetbiosComputerName>
<InstanceName>$Target/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/InstanceName$</InstanceName>
<ConnectionString>$Target/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/ConnectionString$</ConnectionString>
<InstanceVersion>$Target/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/Version$</InstanceVersion>
<InstanceEdition>$Target/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/Edition$</InstanceEdition>
<MonitoringType>$Target/Property[Type="SqlDiscW!Microsoft.SQLServer.Windows.DBEngine"]/MonitoringType$</MonitoringType>
<SqlExecTimeoutSeconds>60</SqlExecTimeoutSeconds>
<SqlTimeoutSeconds>15</SqlTimeoutSeconds>
<TimeoutSeconds>200</TimeoutSeconds>
<IntervalSeconds>300</IntervalSeconds>
<SyncTime/>
<EventDisplayNumber>8510</EventDisplayNumber>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="Health!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.Windows.EventRule.DBEngine.Enlist_of_MSDTC_transaction_failed_1_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/MachineName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/InstanceName$</AlertParameter2>
<AlertParameter3>Event ID: $Data/Property[@Name='EventID']$. $Data/Property[@Name='Message']$</AlertParameter3>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>