Questions tagged «distributed-transactions»

9
无法开始分布式交易
我正在尝试对链接的服务器运行SQL,但是出现以下错误: BEGIN DISTRIBUTED TRANSACTION SELECT TOP 1 * FROM Sessions OLE DB provider "SQLNCLI" for linked server "ASILIVE" returned message "No transaction is active.". Msg 7391, Level 16, State 2, Line 3 The operation could not be performed because OLE DB provider "SQLNCLI" for linked server "ASILIVE" was unable to …

5
两阶段提交如何防止最后一秒失败?
我正在研究两阶段提交如何在分布式事务中工作。据我了解,在该阶段的最后部分,事务协调器会询问每个节点是否准备好提交。如果每个人都同意,那么它会告诉他们继续努力。 是什么防止以下故障? 所有节点均响应已准备好提交 事务协调器告诉他们“继续并提交”,但是其中一个节点崩溃,然后收到此消息 所有其他节点均成功提交,但现在分布式事务已损坏 据我了解,当崩溃的节点返回时,其事务将被回滚(因为它从未收到提交消息) 我假设每个节点都在运行一个普通的数据库,该数据库对分布式事务一无所知。我错过了什么?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.