Recovery for Oracle instances, media Recovery (Crash recovery) (Media recovery)

Source: Internet
Author: User

Instance recovery ( crash recovery)

      1. When did it happen? Oracle instance recovery?
        1. Shutdown abort;
        2. Database Exceptions Down drop (machine crashes, power-down ...)
        3. The reason for instance recovery is that the data has been discarded and used Redo Data Recovery

        1. Instance recovery is an automated process that does not require manual intervention.
          1. < Span style= "font-family: ' Microsoft Yahei '; font-size:16.0pt; Font-weight:normal; Font-style:normal; " > control file is to check consistency, and if inconsistent, the instance recovers

      1. How does instance recovery occur at that stage?
        1. Sql>startup Nomount(Readspfle),launch the instance,Oraclegive yourself a bit of memory,Oraclethe memory up, this timeno instance recovery.

Sql> startup Nomount;

ORACLE instance started.

      1. sql> ALTER DATABASE Mount ( Read the control file, put the database on Mount ), no instance recovery.

      1. sql>alter Database Open(Check the control file, the data file header, check the integrity of the database), and if inconsistent, an instance recovery occurs. OracleWhen you open the database (ALTER DATABASE Open), the information on each file header is checked (SCN)and the corresponding information in the control file (SCN)Compare, if not consistent, perform instance recovery.

      1. The process of instance recovery
        1. – Roll Forward rolling forward
          1. Read status is Currentand theActiveLog of status (redo Log), will occurCrashwhen there is no time to write to the data block on the disk, usingRedoinformation to recover.
        2. – Open the database ( ALTER DATABASE Open)
        3. – rolling back Rolling back
            1. Rollback of a transaction that is not committed.

      1. Instance Recovery
          1. Sql>shutdown abort;
          2. View Alert file

Medium Recovery ( Media recovery)

The instance recovery is not valid when the following conditions occur and media recovery is required:

  1. – The data file is missing and corrupted.
  2. – Online log Files (online Redo) lost, damaged.
  3. – data file is too old ( For example, files recovered from a backup set.) )
  4. – file newness (for example, all other files are recovered from the backup)

Recovery for Oracle instances, media Recovery (Crash recovery) (Media recovery)

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.