The Microsoft Distributed Transaction Coordinator (MS DTC) has cancelled the distributed transaction.

同事反馈一个系统在运行一个存储过程时遇到了下面错误:

Msg 1206, Level 18, State 169, Procedure xxxxxx, Line 118
The Microsoft Distributed Transaction Coordinator (MS DTC) has cancelled the distributed transaction.

费了九牛二虎之力才定位到是我们一个作业把对应的会话给Kill掉了(此作业按条件Kill掉那些阻塞其它会话的会话)。今天在测试服务器特意重现、测试、验证了这个问题。特此记录一下!因为这种分布式事务的问题确实不好定位,记录此案例,只是为遇到这种问题时提供一个思路!

时间: 2024-07-28 14:10:29

The Microsoft Distributed Transaction Coordinator (MS DTC) has cancelled the distributed transaction.的相关文章

Distributed Transaction Coordinator(DTC)一些问题的解决方法

有时运行某个程序或者安装SQL Server时报错. 错误信息: 事务管理器不可用.(从 HRESULT 异常: 0x8004D01B) 启动服务Distributed Transaction Coordinator后正常. 执行: C:\net start msdtc 但有时启动Distributed Transaction Coordinator时报错. 错误信息:在本地计算机上,Windows 无法启动分布式事务处理协调器.更多的信息,请查看系统事件日志中.如果这是一种非 Microsof

Distributed Transaction Coordinator 服务无法启动解决方案

在使用TransactionScope 类时遇到的问题.“服务器****上的MSDTC不可用.” 在命令行下输入net start msdtc,启动失败. 到“服务”中启动,提示“windows 不能在 本地计算机启动 Distributed Transaction Coordinator .有关更多信息,查阅系统事件日志.如果这是非 Microsoft 服务,请与厂商联系,并参考特定服务错误代码 -**********” 查看所依赖的服务Remote Procedure Call(RPC)和

[BTS] SQL Adapter. New transaction cannot enlist in the specified transaction coordinator

The adapter "SQL" raised an error message. Details "New transaction cannot enlist in the specified transaction coordinator. ".

群集中的MS DTC分布式事务协调器

MS DTC在大多数SQL 服务器下都需要安装,若只是安装数据库引擎或Analysis 服务可不安装DTC.如果后需要使用分布式事务,则可在SQL Server群集安装完成后再安装DTC. 一.群集MS DTC安装 与正常添加群集服务类似在故障转移管理器,右击服务和应用程序à配置服务和应用程序. 需要为DTC分配IP.如下图所示,此为跨子网群集,因此要在配置两个虚拟IP. 在安装DTC的时候最好的做法是使用独立的共享磁盘,以免DTC数据影响数据库存储磁盘数据的使用.如下图所示 二.MS DTC故

org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.JDBCConnectionException: Cannot open con

org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.JDBCConnectionException: Cannot open connection org.springframework.orm.hibernate3.Hiberna

Transaction not successfully started&&Could not commit Hibernate transaction;

记录一下这个问题,解决方法是分两种情况, 一种是getCurrentSession();这种情况加入配置:<property name="hibernate.current_session_context_class">thread</property> 一种是:getSession的 在修改操作后加上 finally   {       session.close();      }

SQL Server on Linux: How? Introduction: SQL Server Blog

SQL Server Blog Official News from Microsoft's Information Platform https://blogs.technet.microsoft.com/dataplatforminsider/2016/12/16/sql-server-on-linux-how-introduction/ This post was authored by Scott Konersmann, Partner Engineering Manager, SQL

word20161214

MAC, Message Authentication Code / 消息验证代码 MAC address / MAC 地址 machine-centric / 机器中心的 Macintosh-accessible volume / Macintosh 可访问卷 Macintosh-style permissions / Macintosh 风格的权限 MADCAP, Multicast Address Dynamic Client Allocation Protocol / 多播地址动态客户端

跨库事务

Unless MS DTC is currently installed on the computer running the instance of the Database Engine, this example produces an error message. For more information about installing MS DTC, see the Microsoft Distributed Transaction Coordinator documentatio