Difference between crash recovery and media recovery

Source: Internet
Author: User

The most important document is the concept and principle ..

 

Backup and recovery basis

1.4.3 automatic recovery after instance failure: crash recovery

The crash recovery process is a special form of recovery, which happens the first time an Oracle database instance is started after a crash (orSHUTDOWN ABORT). In crash recovery, the goal is to bring the datafiles to a transaction-consistent state, preserving all committed changes up to the point when the instance failed.

Like crash recovery, datafile media recovery is intended to restore database integrity. However, there are a number of important differences between the two:

  • Media recovery must be explicitly invoked by a user. The database will not run media recovery on its own.

  • Media recovery applies needed changes to datafiles that have been restored from backup, not to online datafiles left over after a crash.

  • Media recovery must use archived logs as well as the online logs, to find changes reaching back to the time of the datafile backup.

Unlike the forms of recovery saved med manually after a data loss, crash recovery uses only the online redo log files and current online datafiles, as left on disk after the instance failure. archived logs are never used during crash recovery, and datafiles are never restored from backup.

The database applies any pending updates in the online redo logs to the online datafiles of your database. the result is that, whenever the database is restarted after a crash, the datafiles reflect all committed changes up to the moment when the haven't said failure occurred. (After the database opens, any changes that were part of uncommitted transactions at the time of the crash are rolled back .)

The duration of crash recovery is a function of the number of instances needing recovery, amount of redo generated in the redo threads of crashed instances since the last checkpoint, and user-retriable factors such as the number and size of redo log files, checkpoint frequency, and the parallel recovery setting. you can set parameters in the database server that can tune the duration of crash recovery. you can also tune Checkpointing to optimize recovery time.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.