View the Exhibit to examine the error that occurred during the database startup.
You opened an RMAN session for the database. To repair the failure, you executed the following command as the first RMAN command:
RMAN> REPAIR FAILURE;
Which statement describes the consequence of this command?
A.
The command performs the recovery and closes the failure
B.
The command only displays the advice and the RMAN script required for recovery
C.
The command executes the RMAN script to repair the failure and remove the entry from the Automatic Diagnostic Repository (ADR)
D.
The command produces an error because the ADVISE FAILURE command was not executed before the REPAIR FAILURE command
according to oracle doc:
If you execute REPAIR FAILURE … The command performs an implicit ADVISE FAILURE if this command has not yet been executed in the current session.
the correct answer is A.
yes, it is true. However Oracle advised:
The recommended workflow is to run LIST FAILURE to display failures, ADVISE FAILURE to display repair options, and REPAIR FAILURE to fix the failures.
And from the same text what you quoted:
If you execute REPAIR FAILURE with no other command options, then RMAN uses the first repair option of the most recent ADVISE FAILURE command in the current session. The command performs an implicit ADVISE FAILURE if this command has NOT YET BEEN EXECUTED IN THE CURRENT SESSION.
http://docs.oracle.com/cd/B28359_01/backup.111/b28273/rcmsynta033.htm
I agree with both of you, your informations are correct one, according to oracle “D” is the best answer. I also found the below illustartion from internet, it might be helpful in justfying the answer.
1.
SQL>select FILE_ID,FILE_NAME,TABLESPACE_NAME from dba_data_files;
FILE_ID FILE_NAME TABLESPACE_NAME
———- ———————————————- ———————-
4 /u01/app/oracle/oradata/test0910/users01.dbf USERS
3 /u01/app/oracle/oradata/test0910/undotbs01.dbf UNDOTBS1
2 /u01/app/oracle/oradata/test0910/sysaux01.dbf SYSAUX
1 /u01/app/oracle/oradata/test0910/system01.dbf SYSTEM
5 /u01/app/oracle/oradata/test0910/example01.dbf EXAMPLE
2.backup datafile users01.dbf
RMAN> backup tablespace users;
Starting backup at 13-SEP-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=67 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=00004 name=/u01/app/oracle/oradata/test0910/users01.dbf
channel ORA_DISK_1: starting piece 1 at 13-SEP-13
channel ORA_DISK_1: finished piece 1 at 13-SEP-13
piece handle=/u01/app/oracle/fast_recovery_area/TEST0910/backupset/2013_09_13/o1_mf_nnndf_TAG20130913T111426_936byprm_.bkp tag=TAG20130913T111426 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
Finished backup at 13-SEP-13
3. delete datafile users01.dbf
[oracle@rtest ~]$ rm -rf /u01/app/oracle/oradata/test0910/users01.dbf
[oracle@rtest ~]$ ls /u01/app/oracle/oradata/test0910/users01.dbf
ls: /u01/app/oracle/oradata/test0910/users01.dbf: No such file or directory
4. shutdown abort and startup the instance
SQL> shutdown abort;
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 2505338880 bytes
Fixed Size 2230952 bytes
Variable Size 553649496 bytes
Database Buffers 1929379840 bytes
Redo Buffers 20078592 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 4 – see DBWR trace file
ORA-01110: data file 4: ‘/u01/app/oracle/oradata/test0910/users01.dbf’
5. running repair failure will return error
RMAN> repair failure ;
using target database control file instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of repair command at 09/13/2013 11:20:04
RMAN-06954: REPAIR command must be preceded by ADVISE command in same session
6. run advice failure will return error as well
RMAN> advise failure;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of advise command at 09/13/2013 11:20:59
RMAN-07211: failure option not specified
—Correct sequence
7. Run LIST–>ADVISE–>REPAIR
RMAN> list failure;
List of Database Failures
=========================
Failure ID Priority Status Time Detected Summary
———- ——– ——— ————- ——-
122 HIGH OPEN 13-SEP-13 One or more non-system datafiles are missing
RMAN> advise failure;
List of Database Failures
=========================
Failure ID Priority Status Time Detected Summary
———- ——– ——— ————- ——-
122 HIGH OPEN 13-SEP-13 One or more non-system datafiles are missing
analyzing automatic repair options; this may take some time
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=189 device type=DISK
analyzing automatic repair options complete
Mandatory Manual Actions
====================================
no manual actions available
Optional Manual Actions
=======================
1. If file /u01/app/oracle/oradata/test0910/users01.dbf was unintentionally renamed or moved, restore it
Automated Repair Options
========================
Option Repair Description
—— ——————
1 Restore and recover datafile 4
Strategy: The repair includes complete media recovery with no data loss
Repair script: /u01/app/oracle/diag/rdbms/test0910/test0910/hm/reco_3910127882.hm
RMAN> repair failure;
Strategy: The repair includes complete media recovery with no data loss
Repair script: /u01/app/oracle/diag/rdbms/test0910/test0910/hm/reco_3910127882.hm
contents of repair script:
# restore and recover datafile
restore datafile 4;
recover datafile 4;
sql ‘alter database datafile 4 online’;
Do you really want to execute the above repair (enter YES or NO)? Y
executing repair script
Starting restore at 13-SEP-13
using channel ORA_DISK_1
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 00004 to /u01/app/oracle/oradata/test0910/users01.dbf
channel ORA_DISK_1: reading from backup piece /u01/app/oracle/fast_recovery_area/TEST0910/backupset/2013_09_13/o1_mf_nnndf_TAG20130913T111426_936byprm_.bkp
channel ORA_DISK_1: piece handle=/u01/app/oracle/fast_recovery_area/TEST0910/backupset/2013_09_13/o1_mf_nnndf_TAG20130913T111426_936byprm_.bkp tag=TAG20130913T111426
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:15
Finished restore at 13-SEP-13
Starting recover at 13-SEP-13
using channel ORA_DISK_1
starting media recovery
media recovery complete, elapsed time: 00:00:09
Finished recover at 13-SEP-13
sql statement: alter database datafile 4 online
repair failure complete
Do you want to open the database (enter YES or NO)? YES
database opened
I believe everything published made a lot of sense. However, what about this? suppose you were to create a awesome headline? I mean, I don’t want to tell you how to run your website, however what if you added a title that grabbed folk’s attention? I mean %BLOG_TITLE% is a little plain. You could peek at Yahoo’s home page and note how they create post titles to grab people to click. You might add a related video or a pic or two to get readers interested about everything’ve got to say. Just my opinion, it might make your website a little livelier.|
my kids really like to play with those assorted pool toys, they specially like pokemon pool toys and stuff like that..
https://diigo.com/098zr7