---
title: "INSTANCE and CRASH  RECOVERY"
author: "edwards0307"
date: "2012-01-12T10:12:49Z"
tags: []
categories: ["数据库"]
slug: "instance-and-crash-recovery"
draft: false
lastmod: "2012-02-10T16:22:00Z"
id: 1343162
url: "https://killdbs.iteye.com/blog/1343162"
---

1.type of checkpoint

   full checkpoint     alter system checkpoint

   incrimental checkpoint(logfile switch) alter system switch logfile.

   partial  checkpoint    alter tablespace backup/online/offline

 

2.phases of instance recovery 

   1.chek asydatafiles.

   2.cache rocovery(roll forward withredo),open database. 

   3.transaction recovery(roll back uncommited).

   4.commited datas in the datafiles.

 

3.RBA:every three second, checks record the RBA from the oldest entry in the checkopint quene in the control file.only in the event of a log switch,check wirte this formation to the headers of the datafiles.

logfile switch does not force all dirty buffers to be written to disk.

 

4.Crash recovery is used to recover from a failure either when a single-instance  
database crashes or all instances of an Oracle Real Application Clusters database  
crashes. Instance recovery refers to the case where a surviving instance recovers a  
failed instance in an Oracle Real Application Clusters database.

 

5.tunning the duration of instance recovery, control the check redo blocks

   fast\_start\_mttr\_target

   log\_checkpoint\_timeout

   log\_checkpoint\_interval

   fast\_start\_io\_target

   v$instance\_recovery

   v$fast\_start\_servers

   v$fast\_start\_transactions

6.tunning the phases of the roll forward and roll back

   1.recovery\_parallelism

   2.fast\_start\_parallel\_rollback (false,lo,hi)

   3.v$fast\_start\_servers; v$fast\_start\_transactions

 

  

6.MTTR:mean time to recovery

   MTBF:mean time between failures

 

7\.