Algorithm for Recovery and Isolation Exploiting Semantics (ARIES) Last Updated : 13 Aug, 2025 Comments Improve Suggest changes 19 Likes Like Report ARIES is a robust recovery algorithm based on the Write-Ahead Logging (WAL) protocol, widely used in modern DBMS to ensure durability and consistency after system failures.Types of Log Records in ARIESEvery update operation creates a log record, which can be of the following types:Undo-only Log Record: Stores only the before image (original data). Used to undo changes.Redo-only Log Record: Stores only the after image (new data). Used to redo changes.Undo-Redo Log Record: Stores both before and after images. Used for both undo and redo operations.Log Sequence Numbers (LSN)Every log record is assigned a unique, monotonically increasing LSN.Every data page has a pageLSN indicating the LSN of the last update applied to it.Write-Ahead Logging (WAL) RulesA log record must reach stable storage before the corresponding data page is written to disk.Log writes are buffered in a memory area called the log tail.The log tail is flushed to disk when full.A transaction is not considered committed until its commit record is flushed to disk.CheckpointsPeriodically, the system writes a checkpoint record to the log.A checkpoint contains:Transaction TableDirty Page TableA master log record, stored in stable storage, holds the LSN of the most recent checkpoint.Recovery Phases in ARIESWhen the system restarts after a crash, ARIES performs three recovery phases:1. Analysis PhaseStarts from the latest checkpoint.Reconstructs the state of active transactions and dirty pages at the time of the crash.2. Redo PhaseReplays operations forward from the smallest LSN of dirty pages.Reapplies necessary changes to bring the database to the state before crash.3. Undo PhaseScans the log backward.Rolls back the effects of uncommitted (loser) transactions. Create Quiz Comment L lemilxavier Follow 19 Improve L lemilxavier Follow 19 Improve Article Tags : DBMS DBMS-Transactions and Concurrency Control Explore Basics of DBMSIntroduction of DBMS6 min readHistory of DBMS7 min readDBMS Architecture 1-level, 2-Level, 3-Level6 min readDifference between File System and DBMS6 min readER & Relational ModelIntroduction of ER Model9 min readStructural Constraints of Relationships in ER Model5 min readGeneralization, Specialization and Aggregation in ER Model4 min readIntroduction of Relational Model and Codd Rules in DBMS14 min readKeys in Relational Model6 min readMapping from ER Model to Relational Model5 min readStrategies for Schema design in DBMS6 min readRelational AlgebraIntroduction of Relational Algebra in DBMS8 min readSQL Joins (Inner, Left, Right and Full Join)4 min readJoin operation Vs Nested query in DBMS3 min readTuple Relational Calculus (TRC) in DBMS4 min readDomain Relational Calculus in DBMS4 min readFunctional Dependencies & NormalisationAttribute Closure in DBMS4 min readArmstrong's Axioms in Functional Dependency in DBMS4 min readCanonical Cover of Functional Dependencies in DBMS7 min readNormal Forms in DBMS5 min readThe Problem of Redundancy in Database3 min readLossless Join and Dependency Preserving Decomposition4 min readDenormalization in Databases4 min readTransactions & Concurrency ControlACID Properties in DBMS5 min readTypes of Schedules in DBMS5 min readConcurrency Control in DBMS3 min readGraph Based Concurrency Control Protocol in DBMS3 min readMultiple Granularity Locking in DBMS3 min readDatabase Recovery Techniques in DBMS4 min readDeadlock in DBMS4 min readAdvanced DBMSIndexing in Databases6 min readIntroduction of B Tree8 min readIntroduction of B+ Tree5 min readBitmap Indexing in DBMS3 min readInverted Index7 min readSQL Queries on Clustered and Non-Clustered Indexes6 min readFile Organization in DBMS4 min readPractice QuestionsLast Minute Notes - DBMS15+ min readDBMS Interview Questions with Answers15+ min readCommonly asked DBMS Interview Questions | Set 25 min readDatabase Management System - GATE CSE Previous Year Questions2 min read Like