My Oracle Support Banner

ExecuteNonQuery Commits Work Immediately Despite .NET Transaction Is In Aborted State (Doc ID 1634046.1)

Last updated on MARCH 10, 2014

Applies to:

Oracle Data Provider for .NET - Version and later
Generic Windows


Executing a call to ExecuteNonQuery to submit DML inside a .NET TransactionScope (distributed transaction) that is in an aborted state results in ODP.NET committing data when an exception should be raised.

For Example, the following simple test case demonstrates the issue:

1. DDL to create the table and populate.


3. Observations.

The data is committed but should not be.

SQL> select * from test;

       ID      VALUE
---------- ----------
        1        100


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.