2. Understanding Ingres Components : Logging and Locking Systems : Transactions Recovery : Types of Transaction Recovery
 
Share this page                  
Types of Transaction Recovery
Recovery information is divided into two types:
Undo (or Rollback) Operations
Redo (or Cache Restore) Operations
Ingres performs both online and offline recovery, as described in Recovery Modes.
Undo Operation
Undo or transaction backout recovery is performed by the DBMS Server. For example, when a transaction is aborted, transaction log file information is used to roll back all related updates. The DBMS Server writes the Compensation Log Records (CLRs) to record a history of the actions taken during undo operations.
Redo Operation
A Redo recovery operation is database-oriented. Redo recovery is performed after a server or an installation fails. Its main purpose is to recover the contents of the DMF cached data pages that are lost when a fast-commit server fails. Redo recovery is performed by the recovery process. Redo recovery precedes undo recovery.
Redo Operation in a Cluster Environment
In an Ingres cluster environment where all nodes are active, the local recovery server performs transaction redo/undo for a failed DBMS server on its node, just like in the non-cluster case. The difference in a cluster installation is that if the recovery process (RCP) dies on one node, either because of an Ingres failure, or a general failure of the hardware, an RCP on another node will take responsibility for cleaning up transactions for the failed nodes.