BeginTransaction(OracleTransactionPriority)
This method begins a local transaction with the specified transaction priority.
Declaration
// C#
public OracleTransaction BeginTransaction(OracleTransactionPriority transactionPriority);Parameters
-
transactionPriorityThe transaction's priority level.
Return Value
An OracleTransaction object representing the new transaction.
Implements
IDbConnection
Exceptions
Throws ORA-24562 when an application attempts to set transaction priority with a database version earlier than version 23.26.2.
Remarks
The transaction's priority level setting only applies for that transaction's lifetime. After the transaction commits or rolls back, the connection reverts to its previously set priority level or its default, if no value was set. For example, when a connection's transaction priority level is set to high and then you start and commit a low priority transaction, the connection returns to using the high priority transaction level.