053-49

Which statement about recovering from the loss of a redo log group is true?
A. If the lost redo log group is ACTIVE, you should first attempt to clear the log file.
B. If the lost redo log group is CURRENT, you must clear the log file.
C. If the lost redo log group is ACTIVE, you must restore, perform cancel-based incomplete recovery, and open the database using the RESETLOGS option.
D. If the lost redo log group is CURRENT, you must restore, perform cancel-based incomplete recovery, and open the database using the RESETLOGS option.

  如 果 丢 失 的 是 active 日 志 组 , 数 据 库 是 open 的 , 那 么 首 先 可 以 尝 试 执行 the ALTER SYSTEM CHECKPOINT,如果这个命令成功执行,那么 active 的日志组会变成 inactive。如果操作不成功或者数据库挂掉了,后续的操作依赖于归档模式。
  如果是非归档模式,那么只能进行非完全恢复(RECOVER DATABASE UNTIL CANCEL),然后使用 resetlogs 方式打开数据库。如果是归档模式,确保当前丢失的日志组可以被重新创建。执行不完全恢复,直到损坏日志组之前,然后使用 resetlogs 打开数据库。
  如果是丢失的 current 日志,由于是 LGWR 正在写的,那么会导致 LGWR I/O 错误,实例会挂掉。在这种情况下,你必须从备份重建,执行不完全恢复,用resetlogs 选项打开数据库。

转载于:https://www.cnblogs.com/Babylon/p/7845006.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值