[英]Msg 7391 The operation could not be performed because OLE DB provider for linked server was unable to begin a distributed transaction
There is 3 Sql Server. 有3个Sql Server。 Example Server A, Server B and Server C.
示例服务器A,服务器B和服务器C。
-DTC is running in all the machine. -DTC在所有机器上运行。
-Local DTC Properties in all three machine: -所有三台机器中的本地DTC属性:
-Network DTC Access
-Allow Inbound
-Allow Outboud
-No Authentication Required
-Enable XA Transaction
-Enable SNA LU 6.2 Transaction
-Account: NT AUTHORITY\NetworkService
RPC and RPC OUT is true for link server RPC和RPC OUT对于链接服务器为true
Server A: Windows 8, Server B: Windows 7 and Server C: Windows 7 服务器A:Windows 8,服务器B:Windows 7和服务器C:Windows 7
Firewall is off in all three servers 三台服务器中的防火墙均关闭
Servers are not in Domain. 服务器不在域中。
Added "set xact_abort on" in the query. 在查询中添加了“ set xact_abort on”。
Now, From server A Distributed transaction work fine in both machine. 现在,来自服务器A的分布式事务在两台计算机上都可以正常工作。
From server B Distributed transaction work in Server A only.
From server c Distributed transaction work in Server A only.
Problem: Distributed Transaction does not work between server B and C. 问题:服务器B和C之间的分布式事务不起作用。
This issue was due to same unique identity in MSDTC of server B and server C. This means that the two MS DTC will not be able to communicate with each other. 此问题是由于服务器B和服务器C的MSDTC中具有相同的唯一标识所致。这意味着两个MS DTC将无法相互通信。 This problem typically occurs if one of the systems were cloned using unsupported cloning tools.
如果使用不受支持的克隆工具克隆了其中一个系统,则通常会发生此问题。 MS DTC requires that the systems be cloned using supported cloning tools such as SYSPREP.
MS DTC要求使用受支持的克隆工具(例如SYSPREP)来克隆系统。 Running 'msdtc -uninstall' and then 'msdtc -install' from the command prompt will fix the problem.
从命令提示符运行“ msdtc -uninstall”然后运行“ msdtc -install”将解决此问题。 Note: Running 'msdtc -uninstall' will result in the system losing all MS DTC configuration information.
注意:运行'msdtc -uninstall'将导致系统丢失所有MS DTC配置信息。 Note: In Windows 2008 use Administrator command prompt, service must be stopped and you must reboot the server.
注意:在Windows 2008中,使用Administrator命令提示符,必须停止服务,并且必须重新引导服务器。
http://www.sqlwebpedia.com/content/msdtc-troubleshooting http://www.sqlwebpedia.com/content/msdtc-troubleshooting
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.