TXN_PRIORITY

TXN_PRIORITY specifies the priority for all user transactions in a session.

Property Description
Parameter type String
Syntax TXN_PRIORITY = { HIGH | MEDIUM | LOW }
Default value HIGH
Modifiable ALTER SESSION
Modifiable in a PDB No
Basic No

The Priority Transactions feature automatically rolls back low-priority transactions that are blocking higher priority transactions from obtaining row locks.

You can use the TXN_PRIORITY parameter to assign a priority (HIGH, MEDIUM, or LOW) to all transactions in a particular user session. Priority Transactions then operates as follows for the three priorities:

You can view the priority and maximum wait time for a transaction by querying the TXN_PRIORITY and PRIORITY_TXNS_WAIT_TARGET columns in the V$TRANSACTION view.

Note: This parameter is available starting with Oracle AI Database 26ai.

See Also: