Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distributed transactions on .NET 7 on Windows #267

Open
K-Wojciechowski opened this issue Nov 15, 2022 · 4 comments
Open

Distributed transactions on .NET 7 on Windows #267

K-Wojciechowski opened this issue Nov 15, 2022 · 4 comments

Comments

@K-Wojciechowski
Copy link

.NET 7 (which was recently released) has added support for distributed transactions on Windows using MSDTC (dotnet/runtime#715). Is support for this feature planned in ODP.NET Core? This would help resolve issues with opening multiple connections to a server (eg. #198).

@hiou1210
Copy link

hiou1210 commented Feb 9, 2024

We really need that feature.

@mihaimyh
Copy link

mihaimyh commented Nov 6, 2024

What about linux, is it supported?

@alexkeh
Copy link
Member

alexkeh commented Nov 6, 2024

.NET distributed transactions on Linux is not yet supported.

dotnet/runtime#71769

@alexkeh alexkeh added this to the ODP.NET 23.8 milestone Jan 23, 2025
@alexkeh
Copy link
Member

alexkeh commented Jan 23, 2025

There's a new feature in managed ODP.NET and ODP.NET Core 23.7 called session transactions that can address some distributed transaction use cases. This feature allows one session to suspend a transaction in one session, then resume the same transaction in a new session, continue DML work, and commit.

If you have a distributed transaction that spans two or more sessions connecting with the same user to the same DB, you can use a sessionless transaction to replace it. The sessionless transaction will be lighter weight than the distributed transaction, and it's possible to use it in .NET Core on any platform.

You will need Oracle Database 23.6 and higher as well.

@alexkeh alexkeh modified the milestones: ODP.NET 23.8, ODP.NET 23.9 Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants