您的位置:首页 > 其它

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

2013-11-07 22:48 323 查看
293.Observe the following warning in an RMAN session of your database instance:

WARNING: new failures were found since last LIST FAILURE command

Which statement describes the scenario that must have produced this warning?

A. The CHANGE FAILURE command has detected new failures recorded in the Automatic Diagnostic

Repository(ADR).

B. The VALIDATE DATABASE command has detected new failures recorded in the Automatic Diagnostic

Repository (ADR).

C. The ADVISE FAILURE command has detected new failures recorded in the Automatic Diagnostic

Repository (ADR) since the last LIST FAILURE.

D. The RECOVER command has detected new failures recorded in the Automatic Diagnostic Repository

(ADR) since the last LIST FAILURE command was executed.

Answer: C

答案解析:

实验一把:验证repair failure脚本是存在ADR中

[oracle@rtest ~]$ rman target /

Recovery Manager: Release 11.2.0.3.0 - Production on Thu Nov 7 21:27:51 2013

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

connected to target database: TEST1107 (DBID=2336818266, not open)

RMAN> list failure;

using target database control file instead of recovery catalog
List of Database Failures
=========================

Failure ID Priority Status Time Detected Summary
---------- -------- --------- ------------- -------
662 HIGH OPEN 07-NOV-13 One or more non-system datafiles are missing

RMAN> advise failure;

List of Database Failures
=========================

Failure ID Priority Status Time Detected Summary
---------- -------- --------- ------------- -------
662 HIGH OPEN 07-NOV-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=3 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=33 device type=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: SID=65 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/test1107/test01.dbf was unintentionally renamed or moved, restore it

Automated Repair Options
========================
Option Repair Description
------ ------------------
1 Restore and recover datafile 6
Strategy: The repair includes complete media recovery with no data loss
Repair script: /u01/app/oracle/diag/rdbms/test1107/test1107/hm/reco_1906746863.hm

RMAN> repair failure;

Strategy: The repair includes complete media recovery with no data loss
Repair script: /u01/app/oracle/diag/rdbms/test1107/test1107/hm/reco_1906746863.hm

contents of repair script:
# restore and recover datafile
restore datafile 6;
recover datafile 6;
sql 'alter database datafile 6 online';

Do you really want to execute the above repair (enter YES or NO)? y
executing repair script

Starting restore at 07-NOV-13
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3

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_07/o1_mf_nnndf_TAG20131107T210734_97rkv8s7_.bkp
channel ORA_DISK_1: piece handle=/u01/app/oracle/fast_recovery_area/TEST1107/backupset/2013_11_07/o1_mf_nnndf_TAG20131107T210734_97rkv8s7_.bkp tag=TAG20131107T210734
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:07
Finished restore at 07-NOV-13

Starting recover at 07-NOV-13
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3

starting media recovery
media recovery complete, elapsed time: 00:00:02

Finished recover at 07-NOV-13

sql statement: alter database datafile 6 online
repair failure complete

Do you want to open the database (enter YES or NO)? y
database opened

sys@TEST1107> select * from v$diag_info;

INST_ID NAME VALUE
---------- ------------------------------ -------------------------------------------------------
1 Diag Enabled TRUE
1 ADR Base /u01/app/oracle
1 ADR Home /u01/app/oracle/diag/rdbms/test1107/test1107
1 Diag Trace /u01/app/oracle/diag/rdbms/test1107/test1107/trace
1 Diag Alert /u01/app/oracle/diag/rdbms/test1107/test1107/alert
1 Diag Incident /u01/app/oracle/diag/rdbms/test1107/test1107/incident
1 Diag Cdump /u01/app/oracle/diag/rdbms/test1107/test1107/cdump
1 Health Monitor /u01/app/oracle/diag/rdbms/test1107/test1107/hm
1 Default Trace File /u01/app/oracle/diag/rdbms/test1107/test1107/trace/test1107_ora_15549.trc
1 Active Problem Count 0
1 Active Incident Count 0

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