分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
92. You executed the following commands in an RMAN session for your database instance that has
failures:
RMAN> LIST FAILURE;
After some time, you executed the following command in the same session:
RMAN> ADVISE FAILURE;
But there are new failures recorded in the Automatic Diagnostic Repository (ADR) after the execution of
the last LIST FAILURE command. Which statement is true for the above ADVISE FAILURE command in
this scenario?
A.It produces a warning for new failures before advising for CRITICAL and HIGH failures.
B.It ignores new failures and considers the failures listed in the last LIST FAILURE command only.
C.It produces advice only for new failures and the failures listed in the last LIST FAILURE command are
ignored
D.It produces an error with recommendation to run the LIST FAILURE command before the ADVISE
FAILURE command.
答案解析:
1、2窗口,首先里看一下文件的位置
sys@TESTDB> select file#,name from v$datafile; FILE# NAME---------- -------------------------------------------------- 1 /u01/app/oracle/oradata/testdb/system01.dbf 2 /u01/app/oracle/oradata/testdb/sysaux01.dbf 3 /u01/app/oracle/oradata/testdb/undotbs01.dbf 4 /u01/app/oracle/oradata/testdb/users01.dbf 5 /u01/app/oracle/oradata/testdb/example01.dbf 6 /u01/app/oracle/oradata/testdb/test1.dbf 7 /u01/app/oracle/oradata/testdb/test2.dbf7 rows selected.
2、 1窗口,做实验前先备份一下backup database,或backup tablespace test1和backup tablespace users,这里实验先会删除test1.dbf,后删除user01.dbf
全备份数据库
RMAN> backup database;Starting backup at 02-SEP-13using target database control file instead of recovery catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: SID=129 device type=DISKchannel ORA_DISK_1: starting full datafile backup setchannel ORA_DISK_1: specifying datafile(s) in backup setinput datafile file number=00001 name=/u01/app/oracle/oradata/testdb/system01.dbfinput datafile file number=00002 name=/u01/app/oracle/oradata/testdb/sysaux01.dbfinput datafile file number=00005 name=/u01/app/oracle/oradata/testdb/example01.dbfinput datafile file number=00003 name=/u01/app/oracle/oradata/testdb/undotbs01.dbfinput datafile file number=00006 name=/u01/app/oracle/oradata/testdb/test1.dbfinput datafile file number=00007 name=/u01/app/oracle/oradata/testdb/test2.dbfinput datafile file number=00004 name=/u01/app/oracle/oradata/testdb/users01.dbfchannel ORA_DISK_1: starting piece 1 at 02-SEP-13channel ORA_DISK_1: finished piece 1 at 02-SEP-13piece handle=/u01/app/oracle/fast_recovery_area/TESTDB/backupset/2013_09_02/o1_mf_nnndf_TAG20130902T130124_929k37g6_.bkp tag=TAG20130902T130124 comment=NONEchannel ORA_DISK_1: backup set complete, elapsed time: 00:08:28channel ORA_DISK_1: starting full datafile backup setchannel ORA_DISK_1: specifying datafile(s) in backup setincluding current control file in backup setincluding current SPFILE in backup setchannel ORA_DISK_1: starting piece 1 at 02-SEP-13channel ORA_DISK_1: finished piece 1 at 02-SEP-13piece handle=/u01/app/oracle/fast_recovery_area/TESTDB/backupset/2013_09_02/o1_mf_ncsnf_TAG20130902T130124_929km1ll_.bkp tag=TAG20130902T130124 comment=NONEchannel ORA_DISK_1: backup set complete, elapsed time: 00:00:03Finished backup at 02-SEP-13
或者备份test1表空间,users表空间已经在91题备份过
RMAN> backup tablespace test1;Starting backup at 02-SEP-13using target database control