Skip to content

Commit 8f3fab5

Browse files
authored
Merge branch 'main' into NicolaCimitile-patch-5
2 parents 6a59839 + dcf62ab commit 8f3fab5

File tree

1 file changed

+31
-0
lines changed
  • data-platform/core-converged-db/database-23ai/priority-transactions

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Priority Transactions
2+
3+
A transaction acquires a row lock for each row modified by one of the following statements: INSERT, UPDATE, DELETE, MERGE, and SELECT ... FOR UPDATE. The row lock exists until the transaction commits or rolls back.
4+
Transactions can hold row locks for a long duration in certain cases. Traditionally, when a transaction is blocked on a row lock by another transaction for a long time, the database administrator manually terminates the blocking transaction by using the ALTER SYSTEM KILL SESSION command.
5+
6+
Starting with Oracle Database release 23, applications can assign priorities (LOW, MEDIUM, HIGH) to transactions. If a low-priority transaction blocks a high-priority transaction on row locks, Oracle database will automatically roll back the low-priority transaction to let the high-priority transaction(s) progress. The database administrator needs to configure the time after which the low-priority transaction is rolled back.
7+
8+
Reviewed: 08.05.2024
9+
10+
# Useful Links
11+
12+
## Documentation
13+
14+
- [Database Administrator’s Guide](https://docs.oracle.com/en/database/oracle/oracle-database/23/admin/managing-transactions.html#GUID-8B71D725-24E9-4AE1-B9FA-BAC291923EAC)
15+
- [Database Reference TXN_PRIORTY](https://docs.oracle.com/en/database/oracle/oracle-database/23/refrn/TXN_PRIORITY.html)
16+
- [Database Reference PRIORITY_TXNS_HIGH_WAIT_TARGET](https://docs.oracle.com/en/database/oracle/oracle-database/23/refrn/PRIORITY_TXNS_HIGH_WAIT_TARGET.html#GUID-B835CD39-221B-40CF-8F59-098101FD2D74)
17+
- [Database Reference PRIORITY_TXNS_MEDIUM_WAIT_TARGET](https://docs.oracle.com/en/database/oracle/oracle-database/23/refrn/PRIORITY_TXNS_MEDIUM_WAIT_TARGET.html#GUID-7FC69016-983B-460E-A296-0B41247F1A52)
18+
- [Database Reference PRIORITY_TXNS_MODE](https://docs.oracle.com/en/database/oracle/oracle-database/23/refrn/PRIORITY_TXNS_MODE.html#GUID-454171AA-19AA-44FC-A18D-0DE7C4676190)
19+
20+
21+
# Team Publications
22+
23+
- [Priority Transactions with high, medium and low priority](https://blogs.oracle.com/coretec/post/automatic-transaction-rollback-in-23c)
24+
25+
# License
26+
27+
Copyright (c) 2024 Oracle and/or its affiliates.
28+
29+
Licensed under the Universal Permissive License (UPL), Version 1.0.
30+
31+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.

0 commit comments

Comments
 (0)