OCP-1Z0-053-200题-32题-611

本文探讨了在进行用户管理的热备份过程中遇到实例异常终止的情况,特别是由于电力中断导致的问题。文章详细解释了如何判断哪些文件仍处于备份模式,并提供了将表空间从备份模式中移除的具体步骤。

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

QUESTION 32

To accomplish user-managed backup for the USERS tablespace, you issued the following command to put the

database in backup mode:

SQL> ALTER TABLESPACE users BEGIN BACKUP;

While copying the file to the backup destination a power outage caused the instance to terminate abnormally.

Which statement is true about the next database startup and the USERS tablespace?

A. The database will open, and the tablespace automatically comes out of the backup mode.

B. The database will be mounted, and recovery must be performed on the USERS tablespace.

C. The database will be mounted, and data files in the USERS tablespace must be taken out of the backup mode.

D. The database will not be mounted, and you must restore all the data files for the USERS tablespace from the backup, and perform recovery.

Answer: C

同611题:http://blog.youkuaiyun.com/rlhua/article/details/18821889


Explanation/Reference:

Section: Backup, Recovery & Recovery Manager (RMAN)

http://www.informit.com/articles/article.aspx?p=30348

Database Crashes During Hot Backup

There can be many reasons for the database to crash during a hot backup-a power outage or rebooting of the

server, for example. If these were to happen during a hot backup, chances are that tablespace would be left in

backup mode. In that case you must manually recover the files involved, and the recovery operation would end

the backup of tablespace. It's important to check the status of the files as soon as you restart the instance and

end the backup for the tablespace if it's in backup mode.

select a.name,b.status from v$datafile a, v$backup b where a.file#=b.file# and b.status='ACTIVE';

or

select a.tablespace_name,a.file_name,b.status from dba_data_files a,v$backup b where a.file_id=b.file# and b.status='ACTIVE';

This statement lists files with ACTIVE status. If the file is in ACTIVE state, the corresponding tablespace is in

backup mode. The second statement gives the tablespace name also, but this can't be used unless the

database is open. You need to end the backup mode ofthe tablespace with the following command:

alter tablespace tablespace_name end backup;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值