Difference between revisions of "HowTo:Solve MSDTC-related problems"
m |
|||
Line 43: | Line 43: | ||
There are two strategies to open the required ports: | There are two strategies to open the required ports: | ||
* Enable the (preconfigured) firewall rules for dynamic MSDTC ports | * Enable the (preconfigured) firewall rules for dynamic MSDTC ports | ||
− | * Configure a fixed port for MSDTC and | + | * Configure a fixed port for MSDTC and customize the port range for RPC, and open those ports on the firewall |
The latter should only be necessary if the customer's IT security policy requires it (e.g., if there's an external firewall that doesn't care much about the dynamic ports in your database server). | The latter should only be necessary if the customer's IT security policy requires it (e.g., if there's an external firewall that doesn't care much about the dynamic ports in your database server). | ||
{{attention|Please make sure the firewall is configured correctly both on the client machine (e.g., the application server) and the host machine (e.g., the DB server).}} | {{attention|Please make sure the firewall is configured correctly both on the client machine (e.g., the application server) and the host machine (e.g., the DB server).}} | ||
− | {{hint| | + | {{hint|Cusotmizing the dynamic ports mostly makes sense on the DB server, but it might also be necessary on the client machine depending on the customer's IT security policy.}} |
=== Default dynamic ports === | === Default dynamic ports === | ||
Line 56: | Line 56: | ||
* Or use Windows Firewall Advanced Settings, enabling the 3 Inbound and 1 Outbound Rules | * Or use Windows Firewall Advanced Settings, enabling the 3 Inbound and 1 Outbound Rules | ||
− | === | + | === Custom dynamic ports === |
− | Here it is described how to configure a specific port for MSDTC and how to | + | Here it is described how to configure a specific port for MSDTC and how to customize the port range used by RPC: |
https://learn.microsoft.com/en-us/troubleshoot/windows-server/application-management/configure-dtc-to-work-through-firewalls | https://learn.microsoft.com/en-us/troubleshoot/windows-server/application-management/configure-dtc-to-work-through-firewalls | ||
Line 69: | Line 69: | ||
*** Add value: Name "UseInternetPorts", Type "REG_SZ", value "Y" | *** Add value: Name "UseInternetPorts", Type "REG_SZ", value "Y" | ||
− | {{attention|If you use a | + | {{attention|If you use a custom ports range, you have to create new rules to open that range specifically (inbound and outbound).}} |
= Test-Dtc and DTCPing = | = Test-Dtc and DTCPing = |
Revision as of 22:43, 16 August 2023
From version 4 on, UBIK® uses the Distributed Transaction Coordinator (MSDTC or DTC) to manage database transactions. However, there's the necessity for correct configuration on both the database server as well as the application server to make it work. This article explains how to do that.
Problem Symptoms
- UBIK® Studio or a UBIK® service can't connect to your database or fails to create a session
- Database view creation or instance data transfer doesn't work because of an exception
- There's an error/exception log entry like: "Communication with the underlying transaction manager has failed"