如果我设置了两台 windows server 2008 r2 机器,我可以让分布式事务只在一个方向上工作。当我可以让 DTCPing 成功工作时,DTC 正在工作。但是,DTCPing 仅在我从一台机器开始测试到另一台机器时才有效,反之则不行。
让我们称我的机器应用程序和数据库。
如果我在两者上开始 DTCPing 并将应用程序键入数据库上的实例并按 Enter,则 DTCPing 反映成功。
如果我在应用程序上的实例和密钥数据库上都开始 DTCPing,我没有得到任何说有故障的信息,它只是没有运行完成。看起来它完成了 rpc 测试,但没有进行绑定测试。日志确实反映了一个错误,但我的理解是它与集群检查有关,并且这些机器不在集群中并且没关系。如果这不正确,请通知我,但是当我在成功的方向上进行 DTCPing 时,我确实在日志中看到了同样的错误。
应用程序的 DTCPing 窗口中的输出显示如下:
DTCping log file: C:\DTCPing\APP1840.log
RPC server is ready
Please Start Partner DTCping before pinging
++++++++++++Validating Remote Computer Name++++++++++++
Please refer to following log file for details:
C:\DTCPing\APP1840.log
Invoking RPC method on database
RPC test is successful
++++++++++++RPC test completed+++++++++++++++
Please start PING from database to complete the test
数据库窗口中的输出显示:
DTCping log file: C:\DTCPing\DATABASE1612.log
RPC server is ready
Please Start Partner DTCping before pinging
Please send following LOG to Microsoft for analysis:
Partner LOG: APP1840.log
My LOG: DATABASE1612.log
登录应用程序是这样的:
IP Configure Information
Host Name . . . . . . . . . : app
DNS Servers . . . . . . . . : 10.40.100.2
10.60.100.2
Node Type . . . . . . . . . : Hybrid
NetBIOS Scope ID. . . . . . :
IP Routing Enabled. . . . . : no
WINS Proxy Enabled. . . . . : no
NetBIOS Resolution Uses DNS : no
Ethernet adapter {870B0C62-7C24-482A-ACCD-61B112ED77EB}:
Description . . . . . . . . : vmxnet3 Ethernet Adapter #5
Physical Address. . . . . . : 00-50-56-01-01-9B
DHCP Enabled. . . . . . . . : no
IP Address. . . . . . . . . : 10.45.20.50
Subnet Mask . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . : 10.45.20.1
DHCP Server . . . . . . . . :
Primary WINS Server . . . . :
Secondary WINS Server . . . :
Lease Obtained. . . . . . . : Thu Jan 01 00:00:00 1970
Lease Expires . . . . . . . : Thu Jan 01 00:00:00 1970
++++++++++++lmhosts.sam++++++++++++
++++++++++++hosts ++++++++++++
02-08, 12:49:53.496-->Error(0x424) at clutil.cpp @256
02-08, 12:49:53.496-->-->OpenCluster
02-08, 12:49:53.496-->-->1060(The specified service does not exist as an installed service.)
++++++++++++++++++++++++++++++++++++++++++++++
DTCping 1.9 Report for APP
++++++++++++++++++++++++++++++++++++++++++++++
RPC server is ready
++++++++++++Validating Remote Computer Name++++++++++++
02-08, 12:50:03.589-->Start DTC connection test
Name Resolution:
database-->10.45.20.48-->database
02-08, 12:50:03.667-->Start RPC test (APP-->database)
RPC test is successful
Partner's CID:FF897F99-E4A4-47EE-9FD2-6B09BED00B86
++++++++++++RPC test completed+++++++++++++++
登录数据库是这样的:
IP Configure Information
Host Name . . . . . . . . . : database
DNS Servers . . . . . . . . : 10.40.100.2
10.60.100.2
Node Type . . . . . . . . . : Hybrid
NetBIOS Scope ID. . . . . . :
IP Routing Enabled. . . . . : no
WINS Proxy Enabled. . . . . : no
NetBIOS Resolution Uses DNS : no
Ethernet adapter {FCCFD12A-F8C1-4EB8-87D1-E2C2CFC07AB9}:
Description . . . . . . . . : vmxnet3 Ethernet Adapter #6
Physical Address. . . . . . : 00-50-56-01-01-99
DHCP Enabled. . . . . . . . : no
IP Address. . . . . . . . . : 10.45.20.48
Subnet Mask . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . : 10.45.20.1
DHCP Server . . . . . . . . :
Primary WINS Server . . . . :
Secondary WINS Server . . . :
Lease Obtained. . . . . . . : Thu Jan 01 00:00:00 1970
Lease Expires . . . . . . . : Thu Jan 01 00:00:00 1970
++++++++++++lmhosts.sam++++++++++++
++++++++++++hosts ++++++++++++
02-08, 12:49:47.953-->Error(0x424) at clutil.cpp @256
02-08, 12:49:47.953-->-->OpenCluster
02-08, 12:49:47.953-->-->1060(The specified service does not exist as an installed service.)
++++++++++++++++++++++++++++++++++++++++++++++
DTCping 1.9 Report for DATABASE
++++++++++++++++++++++++++++++++++++++++++++++
RPC server is ready
02-08, 12:50:02.822-->RPC server:DATABASE received following information:
Network Name: database
Source Port: 49198
Partner LOG: APP1840.log
Partner CID: C94B257A-E177-4DFE-BC29-A33740ED59D9
我应该期望 MSDTC 通常会双向工作吗?我有理由看到这种行为吗?