QUESTION 66 To recover from the loss of the entire database, including all current control files, al

本文介绍了一种在数据库完全丢失情况下的恢复流程,包括控制文件、在线重做日志文件及参数文件等关键组件的恢复步骤。通过使用备份的归档日志、控制文件和数据文件等资源,成功地重建了整个数据库。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

QUESTION 66
To recover from the loss of the entire database, including all current control files, all online redo log files,
and all parameter files, what backups are required, at a minimum, to restore the database successfully?
(Choose all that apply.)
A. Archived redo logs generated after the last datafile backups
B. One autobackup of the control file
C. One autobackup of the SPFILE
D. A backup of all datafiles i E The password file
Correct Answer: ABD
Section: (none)
Explanation
Explanation/Reference:
/* simulate loss of everything */
SQL> shutdown abort;
ASMCMD [+data/oel5_1] > rm CONTROLFILE/*
You may delete multiple files and/or directories.
Are you sure? (y/n) y
ASMCMD [+data/oel5_1] > rm DATAFILE/*
You may delete multiple files and/or directories.
Are you sure? (y/n) y
ASMCMD [+data/oel5_1] > rm ONLINELOG/*
You may delete multiple files and/or directories.
Are you sure? (y/n) y
ASMCMD [+data/oel5_1] > rm PARAMETERFILE/*
You may delete multiple files and/or directories.
Are you sure? (y/n) y
ASMCMD [+data/oel5_1] > rm TEMPFILE/*
You may delete multiple files and/or directories.
Are you sure? (y/n) y
RMAN> startup nomount;
startup failed: ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file '+DATA/oel5_1/spfileoel5_1.ora'
ORA-17503: ksfdopn:2 Failed to open file +DATA/oel5_1/spfileoel5_1.ora ORA-
15056: additional error message
ORA-17503: ksfdopn:2 Failed to open file +DATA/oel5_1/spfileoel5_1.ora ORA-
15173: entry 'spfileoel5_1.ora' does not exist in directory 'oel5_1' ORA-06512: at
line 4
starting Oracle instance without parameter file for retrieval of spfile Oracle
instance started
in rman logs dbid saved
[oracle@oel5-1 ~]$ rman target / catalog rcat/passwd@oel5_2
Recovery Manager: Release 11.2.0.3.0 - Production on Mon Mar 25 10:20:30 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. connected to
target database (not started)
connected to recovery catalog database
RMAN> startup nomount;
startup failed: ORA-01078: failure in processing system parameters ORA-
01565: error in identifying file '+DATA/oel5_1/spfileoel5_1.ora'
ORA-17503: ksfdopn:2 Failed to open file +DATA/oel5_1/spfileoel5_1.ora ORA-15056:
additional error message
ORA-17503: ksfdopn:2 Failed to open file +DATA/oel5_1/spfileoel5_1.ora ORA-15173:
entry 'spfileoel5_1.ora' does not exist in directory 'oel5_1'
ORA-06512: at line 4
starting Oracle instance without parameter file for retrieval of spfile Oracle
instance started
RMAN> set DBID=2197396657
RMAN> list backup of spfile;
List of Backup Sets
===================
................................................................
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
1486 Full 9.67M DISK 00:00:00 25-MAR-13
BP Key: 1488 Status: AVAILABLE Compressed: NO Tag: TAG20130325T095514
Piece Name: +FRA/oel5_1/autobackup/2013_03_25/s_810986114.296.810986115
SPFILE Included: Modification time: 24-MAR-13
SPFILE db_unique_name: OEL5_1
RMAN> restore spfile from '+FRA/oel5_1/autobackup/2013_03_25/s_810986114.296.810986115';
.....................
RMAN> set DBID=2197396657
executing command: SET DBID
database name is "OEL5_1" and DBID is 2197396657
RMAN> unregister database;
database name is "OEL5_1" and DBID is 2197396657
Do you really want to unregister the database (enter YES or NO)? yes database
unregistered from the recovery catalog
RMAN> shutdown abort; Oracle
instance shut down
SQL> startup mount; ORACLE
instance started.
Total System Global Area 1369579520 bytes Fixed
Size 2228224 bytes
Variable Size 469762048 bytes
Database Buffers 889192448 bytes Redo
Buffers 8396800 bytes
ORA-00205: error in identifying control file, check alert log for more info
RMAN> restore controlfile from autobackup;
Starting restore at 25-MAR-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=134 device type=DISK
recovery area destination: +FRA
database name (or database unique name) used for search: OEL5_1
channel ORA_DISK_1: AUTOBACKUP +fra/OEL5_1/AUTOBACKUP/2013_03_25/
s_810986114.296.810986115 found in the recovery area
AUTOBACKUP search with format "%F" not attempted because DBID was not set
channel ORA_DISK_1: restoring control file from AUTOBACKUP +fra/OEL5_1/
AUTOBACKUP/2013_03_25/s_810986114.296.810986115
channel ORA_DISK_1: control file restore from AUTOBACKUP
complete output file
name=+DATA/oel5_1/controlfile/current.275.810988179 output file
name=+FRA/oel5_1/controlfile/current.278.810671217 Finished restore
at 25-MAR-13
RMAN> alter database mount;
RMAN> restore database; RMAN>
recover database;
SQL> alter database open resetlogs;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值