OCP-1Z0-053-V12.02-218题

本文探讨了在数据库备份过程中遇到异常重启时的数据恢复策略,具体介绍了如何通过命令调整表空间状态以确保数据库正常运行。实验验证了在不同情况下重启数据库后,表空间能否自动恢复正常状态。

218.Your database is running in ARCHIVELOG mode. You are performing a user-managed backup of the

DATA1 tablespace. You place the DATA1 tablespace in backup mode by issuing the following statement:

ALTER TABLESPACE data1 BEGIN BACKUP;

While you are performing the backup, an error occurs that causes the instance to terminate abnormally.

Which statement about the DATA1 tablespace is true?

A. The DATA1 tablespace is automatically taken out of backup mode when the instance aborts.

B. If you restart the database, the DATA1 tablespace will be automatically taken out of backup mode when

the database is opened.

C. If you restart the database, the DATA1 tablespace will be automatically taken out of backup mode when

the database is mounted.

D. If you restart the database, the database will not be opened.

Answer: D

答案解析:

验证测试:

1、测试users表空间

sys@TEST0924> alter tablespace users begin backup;


Tablespace altered.

2、模拟断电

sys@TEST0924> shutdown abort;

ORACLE instance shut down.

3、尝试启动,不能打开

sys@TEST0924> startup

ORACLE instance started.


Total System Global Area 3340451840 bytes

Fixed Size                  2232960 bytes

Variable Size            3204451712 bytes

Database Buffers          117440512 bytes

Redo Buffers               16326656 bytes

Database mounted.

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

ORA-01110: data file 4: '+DATA/test0924/datafile/users.260.829650045'


4、在mount状态让其结束备份模式

sys@TEST0924> alter tablespace users end backup;


Tablespace altered.

5、打开数据库

sys@TEST0924> alter database open;


Database altered.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值