내부 MSDTC 트랜잭션 커밋에 실패했습니다.

Microsoft.SQLServer.2005.Commit_of_internal_MSDTC_transaction_failed_1_5_Rule (Rule)

Knowledge Base article:

요약

MS DTC(Microsoft Distributed Transaction Coordinator)는 두 단계 커밋(2PC) 프로토콜의 일부로서 COM+ 구성 요소 또는 하나 이상의 SQL Server 인스턴스 등의 트랜잭션 참가자에게 PREPARE를 요청합니다. SQL Server가 COMMIT할 준비가 되었다고 응답하지만 여러 가지 이유로 인해 MS DTC가 ABORT 요청을 하는 경우, COMMIT을 시도한 서버에 이 오류가 나타납니다. 마찬가지로, SQL Server가 트랜잭션 요청을 시작하고 다른 참가자에게 PREPARE를 요청했지만, 그 동안에 어떤 참가자가 ABORT를 요청하면 트랜잭션 요청을 시작했던 서버에서 이 오류를 보고합니다.

해결 방법

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

ABORT를 요청하는 이유에 대한 예는 다음과 같습니다.

메시지의 일부로 반환된 정확한 결과 코드는 다양하며 결과 코드를 검색해보면 원인에 대한 자세한 내용을 알 수 있습니다.

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

Element properties:

TargetMicrosoft.SQLServer.2005.DBEngine
CategoryEventCollection
EnabledTrue
Event_ID8520
Event Source$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
내부 MSDTC 트랜잭션 커밋에 실패했습니다.
{0}
Event LogApplication
CommentMom2005ID='{A7060C45-95ED-4D39-9E2B-1DC2866C0AC4}';MOM2005GroupID={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.2005.Commit_of_internal_MSDTC_transaction_failed_1_5_Rule" Target="SQL2005Core!Microsoft.SQLServer.2005.DBEngine" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2005ID='{A7060C45-95ED-4D39-9E2B-1DC2866C0AC4}';MOM2005GroupID={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>8520</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.2005.Commit_of_internal_MSDTC_transaction_failed_1_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>