OCP-1Z0-053-200题-112题-268

本文介绍了一种使用RMAN进行数据库恢复的方法,特别是在需要进行不完全恢复以找回丢失的USER_DATA表空间的情况下。通过具体步骤说明如何恢复到指定的时间点,并提供了一个实际的例子。

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

QUESTION 112

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 weredone

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 requiredto 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';

}

Answer: A

同268题:http://blog.youkuaiyun.com/rlhua/article/details/12363359


Explanation/Reference:

Section: Backup, Recovery & Recovery Manager (RMAN)

Perform the following operations within a RUN block:

1.

Use SET UNTIL to specify the target time, restore point, SCN, or log sequence number for DBPITR. If

specifying a time, then use the date format specified in the NLS_LANG and NLS_DATE_FORMAT

environment

variables.

2.

If automatic channels are not configured, then manually allocate disk and tape channels as needed.

3.

Restore and recover the database.

The following example performs DBPITR on the target database until SCN 1000:

RUN

{

SET UNTIL SCN 1000;

RESTORE DATABASE;

RECOVER DATABASE;

}

As shown in the following examples, you can also usetime expressions, restore points, or log sequence

numbers to specify the SET UNTIL time:

SET UNTIL TIME 'Nov 15 2004 09:00:00';

SET UNTIL SEQUENCE 9923;

SET UNTIL RESTORE POINT before_update;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值