INDEX
Summary.......................................................................................................................................................................2 Lab Preparation.............................................................................................................................................................2 Backup and Restore of ASM Metadata.........................................................................................................................3 Backup ASM metadata..................................................................................................................................................3 Restore ASM metadata.................................................................................................................................................3 Restore the 11g Database............................................................................................................................................6 Startup nomount the database......................................................................................................................................7 Restore the Spfile to ASM.............................................................................................................................................8 Restart the Instance with the Restored Spfile ..............................................................................................................9 Restore the Controlfile ..................................................................................................................................................9 Mount the Database....................................................................................................................................................10 Restore the Database.................................................................................................................................................10 Open the Database.....................................................................................................................................................11
1/13
Lab Preparation
To prepare the diskgroup DATADGNR AND FRADG for this lab we will remove all data from them [oracle@asmxpt ~]$ asmcmd ASMCMD> ls ARCHDG/ DATADG/ DATADGNR/ DATAONFS/ FRADG/ ASMCMD> rm -rf DATADGNR/* ASMCMD> rm -rf fradg/* 2/13
[oracle@asmxpt sati11]$ asmcmd md_restore -b /u01/app/oracle/BACKUP/sati11/asm_md_backup t nodg Current Diskgroup being restored: DATADGNR System template TEMPFILE modified! System template DUMPSET modified! System template XTRANSPORT modified! System template DATAFILE modified! System template ARCHIVELOG modified! 4/13
Sys N N N N N Sys N
Setup the DBID on Rman ORACLE_SID=sati11 [oracle@asmxpt sati11]$ rman target / Recovery Manager: Release 11.1.0.7.0 - Production on Fri Feb 13 08:58:21 2009 Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database (not started) RMAN> set dbid=124143874 executing command: SET DBID
7/13
Starting restore at 13-FEB-09 using channel ORA_DISK_1 channel ORA_DISK_1: restoring spfile from AUTOBACKUP /u01/app/oracle/BACKUP/sati11/02k76mst_1_1 channel ORA_DISK_1: SPFILE restore from AUTOBACKUP complete 8/13
channel ORA_DISK_1: restored backup piece 1 channel ORA_DISK_1: restore complete, elapsed time: 00:03:46 Finished restore at 13-FEB-09
------------[oracle@asmxpt sati11]$ sql SQL*Plus: Release 11.1.0.7.0 - Production on Fri Feb 13 09:46:35 2009 Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> select file_name from dba_data_files; FILE_NAME -------------------------------------------------------------------------------+DATADGNR/sati11/datafile/system.259.678706167 +DATADGNR/sati11/datafile/sysaux.261.678706169 +DATADGNR/sati11/datafile/undotbs1.260.678706169 +DATADGNR/sati11/datafile/users.268.678706171 12/13
13/13