OCP题库解析-1z0-053-QUESTION-NO.611

【关键词】:OCP,053,归档模式,备份状态,实例异常,非一致性关闭

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

【题目示意】

本题目主要考查归档模式的相关知识

【解析】

在归档模式,开始备份,发生了非一致性关闭数据库,再次启动数据库会导致导致数据库实例异常。

这个异常的现象在之后的选项哪一个是正确的

【实验】:

clip_image001[4]

28行可以看到我执行了非一致性关闭,这样造成的效果和断电是一样的,数据库直接关闭,导致数据库实例异常。

从38行,我们可以看见数据库时可以mount的

从39行,我们可以看到数据库必须关闭备份模式

【解决方案】

遇到这样的问题有一个处理过程,oracle报错,ORA-10873,file 4 needs tobe either taken out of backup mode or media recovered。这里很明确的告诉我们关闭file 4,的备份模式就可以正常启动数据库。

对于这样的情况,在生产机上,我们更应该谨慎的操作,所以我们最好还是查看一下官方日志,起码清楚是什么原因导致的这样的情况,既非一致性关闭数据库。

查询ORA-10873错误:

ORA-10873: file string needs to be either taken out of backup mode or media recovered

Cause: An attempt was made to open a database after an instance failure or SHUTDOWN ABORT interrupted an online backup.

Action: If the indicated file is not a restored backup, then issue the ALTER DATABASE END BACKUP command and open the database. If the file is a restored online backup, then apply media recovery to it and open the database.

原因:是试图在实例出现故障或关机导致中断联机备份后打开数据库

操作:如果这个文件(图41行文件)不是恢复备份文件,那么使用ALTER DATABASE END BACKUP命令。如果该文件为恢复备份文件,那么使用相应介质恢复,然后打开数据库

看如下操作进行恢复

clip_image002[4]

【小结】

生产机的备份恢复要确定环境可以在可控制的状态进行,将突发事件控制在最小影响状态。

【答案】C

相关文档:http://docs.oracle.com/cd/E24693_01/server.11203/e17766/e9858.htm

 

                                                                                                               DB_Loki

                                                                                                             2014-01-22

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26751012/viewspace-1074304/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26751012/viewspace-1074304/

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值