Difference Between Redo and Undo in Oracle Database

 



Difference Between Redo and Undo in Oracle Database

In Oracle Database, redo and undo are two critical components that help maintain data integrity and support recovery and transaction control.
Redo

Redo refers to a set of logs that record all changes made to the database, including inserts, updates, and deletes. These changes are written to the redo log buffer and then to the redo log files, ensuring that Oracle can recover committed transactions in the event of a system failure.

Undo

On the other hand, undo is used to reverse the effects of uncommitted transactions. When a transaction is rolled back, the undo data allows Oracle to restore the original data values. Undo is also essential for providing consistent reads to other users by preserving a snapshot of the data before changes were made.

Comments

Popular posts from this blog

Azure Data Architecture Patterns for Scalable Data Solutions

VACUUM, ANALYZE, and VACUUM FULL command in PostgreSQL DBA

REINDEX and REINDEX CONCURRENTLY in PostgrSQL DBA