MSSQL 2016: 분산 트랜잭션이 MSDTC에 의해 중단되었습니다.

Microsoft.SQLServer.2016.Distributed_transaction_aborted_by_MSDTC_1_5_Rule (Rule)

분산 트랜잭션이 MSDTC에 의해 중단되는 경우 규칙이 알림을 트리거합니다.

Knowledge Base article:

요약

MS DTC(Microsoft Distributed Transaction Coordinator)가 분산 트랜잭션에 참가하는 SQL Server 인스턴스에게 트랜잭션을 취소하도록 요청했습니다. SQL Server 인스턴스에 대해 PREPARE 문을 요청하기 전에 이 ABORT 문을 실행했습니다.

MS DTC에 대한 자세한 내용은 온라인 설명서의 "MS DTC 서비스", "분산 트랜잭션", "분산 트랜잭션 아키텍처", "연결된 서버 구성" 및 "즉시 업데이트 작동 방식"을 참조하십시오.

해결 방법

이 메시지는 정상적인 두 단계 커밋 작업을 나타냅니다. 어느 응용 프로그램이나 SQL Server 쿼리가 MS DTC를 호출하는지 잘 모르겠으면 SQL 프로파일러 추적을 사용하여 어느 명령이 중단되었는지 캡처할 수 있습니다.

재정의 가능한 매개 변수

이름

설명

기본값

사용

워크플로를 사용하거나 사용하지 않도록 설정합니다.

우선 순위

알림 우선 순위를 정의합니다.

1

심각도

알림 심각도를 정의합니다.

1

Element properties:

TargetMicrosoft.SQLServer.2016.DBEngine
CategoryEventCollection
EnabledTrue
Event_ID8522
Event Source$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ServiceName$
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
MSSQL 2016: 분산 트랜잭션이 MSDTC에 의해 중단되었습니다.
{0}
Event LogApplication
CommentMom2016ID='{CCB1984B-CE37-434C-8752-DCAE743F874E}';MOM2016GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}

Member Modules:

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

Source Code:

<Rule ID="Microsoft.SQLServer.2016.Distributed_transaction_aborted_by_MSDTC_1_5_Rule" Target="SQL2016Core!Microsoft.SQLServer.2016.DBEngine" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2016ID='{CCB1984B-CE37-434C-8752-DCAE743F874E}';MOM2016GroupID={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">
<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="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>8522</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.2016.Distributed_transaction_aborted_by_MSDTC_1_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>Event ID: $Data/EventDisplayNumber$. $Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>