您的位置:首页 > 其它

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

2013-11-11 11:49 363 查看
581.You have lost datafile 4 from your database.
Which is typically the fastest way to restore your database?
A. Restore and recover the datafile.
B. Restore and recover the tablespace.
C. Restore and recover the database.
D. Restore and recover the control file.
E. Restore and recover the parameter file.
Answer: A
答案解析:
实验如下:
OS删除数据文件6--这里用数据文件6做测试
[oracle@rtest ~]$ rm -f /u01/app/oracle/oradata/test1107/test01.dbf

强制重新重启,或者关闭再重启,使报错。强制重启仅做测试用

sys@TEST1107> startup force;

ORACLE instance started.

Total System Global Area 1252663296 bytes

Fixed Size 2227944 bytes

Variable Size 973078808 bytes

Database Buffers 268435456 bytes

Redo Buffers 8921088 bytes

Database mounted.

ORA-01157: cannot identify/lock data file 6 - see DBWR trace file

ORA-01110: data file 6: '/u01/app/oracle/oradata/test1107/test01.dbf'

使用rman进行恢复

RMAN> run{

2> restore datafile 6;

3> recover datafile 6;

4> alter database open;

5> }

Starting restore at 09-NOV-13

using target database control file instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=189 device type=DISK

allocated channel: ORA_DISK_2

channel ORA_DISK_2: SID=221 device type=DISK

allocated channel: ORA_DISK_3

channel ORA_DISK_3: SID=33 device type=DISK

channel ORA_DISK_1: starting datafile backup set restore

channel ORA_DISK_1: specifying datafile(s) to restore from backup set

channel ORA_DISK_1: restoring datafile 00006 to /u01/app/oracle/oradata/test1107/test01.dbf

channel ORA_DISK_1: reading from backup piece /u01/app/oracle/fast_recovery_area/TEST1107/backupset/2013_11_08/o1_mf_nnndf_TAG20131108T141313_97tfycqs_.bkp

channel ORA_DISK_1: piece handle=/u01/app/oracle/fast_recovery_area/TEST1107/backupset/2013_11_08/o1_mf_nnndf_TAG20131108T141313_97tfycqs_.bkp tag=TAG20131108T141313

channel ORA_DISK_1: restored backup piece 1

channel ORA_DISK_1: restore complete, elapsed time: 00:00:03

Finished restore at 09-NOV-13

Starting recover at 09-NOV-13

using channel ORA_DISK_1

using channel ORA_DISK_2

using channel ORA_DISK_3

starting media recovery

archived log for thread 1 with sequence 37 is already on disk as file /u01/app/oracle/fast_recovery_area/TEST1107/archivelog/2013_11_08/o1_mf_1_37_97tjg872_.arc

archived log for thread 1 with sequence 38 is already on disk as file /u01/app/oracle/fast_recovery_area/TEST1107/archivelog/2013_11_08/o1_mf_1_38_97v4fyny_.arc

archived log for thread 1 with sequence 39 is already on disk as file /u01/app/oracle/fast_recovery_area/TEST1107/archivelog/2013_11_08/o1_mf_1_39_97v9k5xk_.arc

archived log for thread 1 with sequence 40 is already on disk as file /u01/app/oracle/fast_recovery_area/TEST1107/archivelog/2013_11_09/o1_mf_1_40_97vvng6b_.arc

archived log for thread 1 with sequence 41 is already on disk as file /u01/app/oracle/fast_recovery_area/TEST1107/archivelog/2013_11_09/o1_mf_1_41_97w5hrkx_.arc

archived log for thread 1 with sequence 42 is already on disk as file /u01/app/oracle/fast_recovery_area/TEST1107/archivelog/2013_11_09/o1_mf_1_42_97wmt8cd_.arc

archived log for thread 1 with sequence 43 is already on disk as file /u01/app/oracle/fast_recovery_area/TEST1107/archivelog/2013_11_09/o1_mf_1_43_97x1vo0f_.arc

archived log file name=/u01/app/oracle/fast_recovery_area/TEST1107/archivelog/2013_11_08/o1_mf_1_37_97tjg872_.arc thread=1 sequence=37

archived log file name=/u01/app/oracle/fast_recovery_area/TEST1107/archivelog/2013_11_08/o1_mf_1_38_97v4fyny_.arc thread=1 sequence=38

archived log file name=/u01/app/oracle/fast_recovery_area/TEST1107/archivelog/2013_11_08/o1_mf_1_39_97v9k5xk_.arc thread=1 sequence=39

archived log file name=/u01/app/oracle/fast_recovery_area/TEST1107/archivelog/2013_11_09/o1_mf_1_40_97vvng6b_.arc thread=1 sequence=40

archived log file name=/u01/app/oracle/fast_recovery_area/TEST1107/archivelog/2013_11_09/o1_mf_1_41_97w5hrkx_.arc thread=1 sequence=41

media recovery complete, elapsed time: 00:00:05

Finished recover at 09-NOV-13

database opened
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: