Restore and recovery with RMAN

The (DRA) Data Recovery Advisor
  • DRA is capable of generating scripts to repair damage to datafiles and (in some circumstances) the controlfile: it does not advise on problems with the spfile or with the online redo log files.
  • It is dependent on the Automatic Diagnostic Repository (the ADR) and the Health Monitor.
    • HM is not stored in the database, but in the file system.
    • ADR is located in the directory specified by the DIAGNOSTIC_DEST instance parameter.
  • HM types
    • nomount --- DB Structure Integrity --- check the integrity of the controlfile.

    • mount --- DB Structure Integrity --- check the integrity of the controlfile, and of the online redo log files and the datafile headers.

                                       --- Redo Integrity Check --- check the online and archive log files

    • open --- scan every data block for corruption, and check the integrity of the data dictionary and the undo segments.

Using the Data Recovery Advisor
  • Assess data failures --- The Health Monitor, running reactively or on demand, will write error details to the ADR.
  • List failures --- The DRA will list all failures, classified according to severity.
  • Advise on repair --- The DRA will generate RMAN scripts to repair the damage.
  • Execute repair --- Run the scripts.
Database Restore and Recovery

The critical files are

  • Any copy of the controlfile
  • A datafile that is part of the SYSTEM tablespace
  • A datafile that is part of the current undo tablespace

Noncritical files are

  • Multiplexed online log files
  • Tempfiles
  • Datafiles that are not part of the SYSTEM or current undo tablespaces

Restore database in noarchivelog mode

  • The last backup must have been a whole, offline backup

Recovery nocritical file in archivelog mode

Recovery critical datafile

Incomplete Recovery

  • An incomplete recovery means losing data
  • A special case of incomplete recovery is recovery of the controlfile
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值