053-268

本文详细解析了一次使用RMAN进行不完全恢复的真实案例。情境设定为2007年11月15日上午,因误操作导致USER_DATA表空间丢失,在确认重要交易后发生此事故。通过精确的时间点恢复策略,文章展示了如何恢复至11:00AM的数据库状态,包括控制文件的恢复、数据库的还原与恢复过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

You are using Recovery Manager (RMAN) for backup and recovery operations with a recovery
catalog. You have been taken database backups every evening. On November 15, 2007, at 11:30 AM,you were informed that the USER_DATA tablespace was accidentally dropped.
On investigation, you found that the tablespace existed until 11:00 AM, and important transactions were done after that.
So you decided to perform incomplete recovery until 11:00 AM. All the archive logs needed to perform recovery are intact. In NOMOUNT state you restored the control file that has information about the USER_DATA tablespace from the latest backup. Then you mounted the database.
Identify the next set of commands that are required to accomplish the task?
A.RMAN> run
{
SET UNTIL TIME 'Nov 15 2007 11:00:00';
RESTORE DATABASE;
RECOVER DATABASE;
}
B.RMAN> run
{
SET UNTIL TIME 'Nov 15 2007 11:00:00';
RESTORE DATABASE;
RECOVER DATABASE USING BACKUP CONTROLFILE;
}
C.RMAN> run
{
RESTORE DATABASE;
RECOVER DATABASE UNTIL TIME 'Nov 15 2007 11:00:00';
}
D.RMAN> run
{
RESTORE TABLESPACE user_data;
RECOVER TABLESPACE user_data UNTIL TIME 'Nov 15 2007 11:00:00';
}

  此题考点是不完全恢复。由于进行了大量的事务,显然是要进行数据库级别的不完全的恢复,将所有相关的事务均回滚。
  在数据库 mount 之后,指定时间点或 SCN 或 log 号,就可以进行恢复了。 A 正确。 BCD 的语法错误恢复完成后以 resetlogs 方式打开数据库

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值