OCP-1Z0-053-V13.02-684题(一)

2014-11-24 16:45:35 · 作者: · 浏览: 2

684. Your database is running in ARCHIVELOG mode. You have been taking backups of all the data files and control files regularly.

You are informed that some important tables in the BILLING tablespace have been dropped on February 28, 2007 at 10.30 AM and must be recovered.

You decide to perform an incomplete recovery using the following command:

SQL> RECOVER DATABASE UNTIL TIME ‘2007-02-28:10:15:00’;

Identify the files that must be restored to recover the missing tables successfully.

A.Restore the backup of all the data files.

B.Restore the backup of all the data files and the control file.

C.Restore the backup of only the data files that contain the dropped tables.

D.Restore the backup of all the data files belonging to the tablespace containing the dropped tables.

Answer: D 答案解析:你的 数据库运行在归档模式,并且定期备份了所有的数据文件和控制文件。你被通知一些在BILLING表空间的重要的表在ebruary 28, 2007 at 10.30 AM丢失,并且要求恢复。你决定使用以下命令执行不完全恢复SQL> RECOVER DATABASE UNTIL TIME ‘2007-02-28:10:15:00’;
从以下实验中看出,如果是recover database,则必须先restore databse ,则是restore所有备份的数据文件。
此题应该选A
第一步:创建测试表,并插入数据 10:43:49 scott@TESTDB>create table dept_new as select * from dept;
Table created.
10:44:05 scott@TESTDB>select * from dept_new;
DEPTNO DNAME LOC ---------- -------------- ------------- 10 ACCOUNTING NEW YORK 20 RESEARCH DALLAS 30 SALES CHICAGO 40 OPERATIONS BOSTON
10:44:15 scott@TESTDB>insert into dept_new values (50,'IT','CHINA');
1 row created.
10:45:07 scott@TESTDB>select * from dept_new;
DEPTNO DNAME LOC ---------- -------------- ------------- 10 ACCOUNTING NEW YORK 20 RESEARCH DALLAS 30 SALES CHICAGO 40 OPERATIONS BOSTON 50 IT CHINA
第二步:rman备份数据库 [oracle@rtest ~]$ rman target /
Recovery Manager: Release 11.2.0.4.0 - Production on Fri Dec 27 10:45:36 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: TESTDB (DBID=2617656787)
RMAN> backup database;
Starting backup at 27-DEC-13 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=37 device type=DISK channel ORA_DISK_1: starting full datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set input datafile file number=00001 name=/u01/app/oracle/oradata/testdb/system01.dbf input datafile file number=00002 name=/u01/app/oracle/oradata/testdb/sysaux01.dbf input datafile file number=00005 name=/u01/app/oracle/oradata/testdb/example01.dbf input datafile file number=00003 name=/u01/app/oracle/oradata/testdb/undotbs01.dbf input datafile file number=00004 name=/u01/app/oracle/oradata/testdb/users01.dbf channel ORA_DISK_1: starting piece 1 at 27-DEC-13 channel ORA_DISK_1: finished piece 1 at 27-DEC-13 piece handle=/u01/app/oracle/fast_recovery_area/TESTDB/backupset/2013_12_27/o1_mf_nnndf_TAG20131227T104552_9csth1ns_.bkp tag=TAG20131227T104552 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:02:05 Finished backup at 27-DEC-13
Starting Control File and SPFILE Autobackup at 27-DEC-13 piece handle=/u01/app/oracle/fast_recovery_area/TESTDB/autobackup/2013_12_27/o1_mf_s_835267679_9cstm02l_.bkp comment=NONE Finished Control File and SPFILE Autobackup at 27-DEC-13
第三步:drop表 10:49:05 scott@TESTDB>select * from dept_new;
DEPTNO DNAME LOC ---------- -------------- ------------- 10 ACCOUNTING NEW YORK 20 RESEARCH DALLAS 30 SALES CHICAGO 40 OPERATIONS BOSTON 50 IT CHINA
10:49:1