Commit Method
Collapse the table of content
Expand the table of content

OracleTransaction.Commit Method

Commits the SQL database transaction.

Namespace: System.Data.OracleClient
Assembly: System.Data.OracleClient (in

virtual void Commit () override
public void Commit ()
public override function Commit ()
Not applicable.

Exception typeCondition


An error occurred while trying to commit the transaction.


The transaction has already been committed or rolled back.


The connection is broken.

The following example creates an OracleConnection and an OracleTransaction. It also demonstrates how to use the BeginTransaction, Commit, and Rollback methods.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1

Community Additions

© 2015 Microsoft