How Oracle Handles Commit & Rollback
Learn how Oracle handles Commit and Rollback internally using undo, redo, SCN, and LGWR. A complete DBA guide to Oracle transaction control.
oracle configurationintermediate
by OracleDba
25 views
Learn how Oracle handles Commit and Rollback internally using undo, redo, SCN, and LGWR. A complete DBA guide to Oracle transaction control.
1234567891011121314151617181920212223242526
UPDATE
accounts
SET
balance
=
balance
-
1000
WHERE
acc_id
=
101
;
UPDATE
accounts
SET
balance
=
balance
+
1000
WHERE
acc_id
=
202
;123456789101112131415161718192021222324
SAVEPOINT
sp1;
UPDATE
emp
SET
salary
=
salary
+
1000
;
SAVEPOINT
sp2;
DELETE
FROM
emp
WHERE
empno
=
200
;
ROLLBACK
TO
sp2;Please to add comments
No comments yet. Be the first to comment!