Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

Revovery - Instance Recovery

Back


Instance Recovery

Instance Failure

instance_failure01


Instance Recovery


Phases of Instance Recovery

diagram_instance_recovery01

  1. Startup instance (data files are out of sync)

    • The instance mounts the control files and then attempts to open the data files.
  2. Roll forward (redo):

    • For an instance to open a data file, the system change number (SCN) contained in the data file’s header must match the current SCN that is stored in the database’s control files.
    • If the numbers do not match, the instance applies redo data from the online redo logs, sequentially “redoing” transactions until the data files are up to date, to bring the database up to the state as of the time of failure.
    • includes Committed and uncommitted data in files
  3. Database opened
    • After all data files have been synchronized with the control files, the database is opened, and users can log in.
  4. Roll back (undo):

    • After the database has been opened, those uncommitted transactions are rolled back.
    • At the end of the rollback phase of instance recovery, the data files contain only committed data.

TOP