Skip to content

Commit 351f029

Browse files
Merge pull request #246 from oracle-devrel/Ulrike-23c-assets
Ulrike 23c assets
2 parents 89571b1 + eb47f13 commit 351f029

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Automatic Transaction Rollback Feature
2+
3+
In Oracle Database 23c, apps can assign priorities (LOW, MEDIUM, HIGH) to transactions and configure how long a higher priority transaction should wait for row locks on a lower priority one. After the timeout,
4+
the blocking transaction is automatically rolled back and row locks released so that the higher priority transaction can proceed.
5+
6+
7+
## Useful Links
8+
9+
### Documentation
10+
11+
- [23c Database Administrator's Guide](https://docs.oracle.com/en/database/oracle/oracle-database/23/admin/managing-transactions.html#GUID-14B028D0-48EA-4675-A113-48286AFCD8AB)
12+
- [23c Database Reference](https://docs.oracle.com/en/database/oracle/oracle-database/23/refrn/TXN_PRIORITY.html#GUID-9E60833D-8B58-4E71-9CAF-60EB4C5648C7)
13+
- [23c Database Reference](https://docs.oracle.com/en/database/oracle/oracle-database/23/refrn/TXN_AUTO_ROLLBACK_HIGH_PRIORITY_WAIT_TARGET.html#GUID-B835CD39-221B-40CF-8F59-098101FD2D74)
14+
- [23c Database Reference](https://docs.oracle.com/en/database/oracle/oracle-database/23/refrn/TXN_AUTO_ROLLBACK_MODE.html#GUID-454171AA-19AA-44FC-A18D-0DE7C4676190)
15+
16+
17+
### Team Publications
18+
19+
- [Automatic transaction rollback in 23c with high, medium and low priority transactions](https://blogs.oracle.com/coretec/post/automatic-transaction-rollback-in-23c)
20+
21+
### Blogs
22+
23+
- [Automatic transaction rollback in 23c with high, medium and low priority transactions](https://blogs.oracle.com/coretec/post/automatic-transaction-rollback-in-23c)
24+
25+
26+
# License
27+
28+
Copyright (c) 2023 Oracle and/or its affiliates.
29+
30+
Licensed under the Universal Permissive License (UPL), Version 1.0.
31+
32+
See LICENSE for more details.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
REM Script in 23c: automatic-transaction-rollback-v$parameter.sql
2+
REM Check the settings in V$PARAMETER for automatic transaction rollback
3+
4+
-- run in 23c in your PDB session as user with DB_DEVELOPER_ROLE
5+
col name format a50
6+
col value format a10
7+
select name, value from v$parameter where name like 'tx%';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
REM Script for 23c: automatic-transaction-rollback-v$session.sql
2+
REM Check transactions in V$SESSION with columns EVENT, SECONDS_IN_WAIT and BLOCKING_SESSION to analyze the locking situation.
3+
4+
col event format a35
5+
select sid, event, seconds_in_wait, blocking_session      
6+
from v$session where  event like '%enq%';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
REM Script for 23c: automatic-transaction-rollback-v$transaction.sql
2+
REM Check V$TRANSACTION with new columns TXN_PRIORITY and TXN_PRIORITY_WAIT_TARGET to mointor session settings for automatic rollback transaction
3+
4+
select txn_priority, txn_priority_wait_target from v$transaction;

0 commit comments

Comments
 (0)