Scenario: Oracle database storage is broken, data files and control files are all lost, only backup sets of data files are available, and no control files are available in the backup set. (Of course, oracle10
Scenario: Oracle database storage is broken, data files and control files are all lost, only backup sets of data files are available, and no control files are available in the backup set. (Of course, oracle10
Test environment: OEL + 11.2.0.1
Instance name: orcl2
DBID: 1336959433.
Scenario: Oracle database storage is broken, data files and control files are all lost, only backup sets of data files are available, and no control files are available in the backup set. (Of course, oracle10g and 11g automatically back up data files)
Back up database
First, perform full backup for the database
[Oracle @ DBA2 backup] $ rman target/
Recovery Manager: Release 11.2.0.1.0-Production on Sun Sep 22 00:05:52 2013
Copyright (c) 1982,200 9, Oracle and/or its affiliates. All rights reserved.
Connected to target database: ORCL2 (DBID = 1336959433)
RMAN> backup database format'/backup/orcl _ % U' plus archivelog;
Starting backup at 22-SEP-13
Current log archived
Using target database control file instead of recovery catalog
Allocated channel: ORA_DISK_1
Channel ORA_DISK_1: SID = 38 device type = DISK
Channel ORA_DISK_1: starting archived log backup set
Channel ORA_DISK_1: specifying archived log (s) in backup set
Input archived log thread = 1 sequence = 1 RECID = 16 STAMP = 826760691
Input archived log thread = 1 sequence = 2 RECID = 9 STAMP = 826760691
Input archived log thread = 1 sequence = 3 RECID = 8 STAMP = 826760691
Input archived log thread = 1 sequence = 4 RECID = 10 STAMP = 826760691
Input archived log thread = 1 sequence = 5 RECID = 11 STAMP = 826760691
Input archived log thread = 1 sequence = 6 RECID = 17 STAMP = 826760691
Input archived log thread = 1 sequence = 7 RECID = 19 STAMP = 826760691
Input archived log thread = 1 sequence = 8 RECID = 18 STAMP = 826760691
Input archived log thread = 1 sequence = 9 RECID = 13 STAMP = 826760691
Input archived log thread = 1 sequence = 10 RECID = 12 STAMP = 826760691
Input archived log thread = 1 sequence = 11 RECID = 15 STAMP = 826760691
Input archived log thread = 1 sequence = 12 RECID = 14 STAMP = 826760691
Input archived log thread = 1 sequence = 13 RECID = 21 STAMP = 826760691
Input archived log thread = 1 sequence = 14 RECID = 22 STAMP = 826760691
Input archived log thread = 1 sequence = 15 RECID = 20 STAMP = 826760691
Input archived log thread = 1 sequence = 16 RECID = 7 STAMP = 826760691
Input archived log thread = 1 sequence = 17 RECID = 4 STAMP = 826760691
Input archived log thread = 1 sequence = 18 RECID = 5 STAMP = 826760691
Input archived log thread = 1 sequence = 19 RECID = 1 STAMP = 826760691
Input archived log thread = 1 sequence = 20 RECID = 2 STAMP = 826760691
Channel ORA_DISK_1: starting piece 1 at 22-SEP-13
Channel ORA_DISK_1: finished piece 1 at 22-SEP-13
Piece handle =/u/oracle/flash_recovery_area/ORCL2/backupset/2013_09_22/blank _. bkp tag = TAG20130922T000600 comment = NONE
Channel ORA_DISK_1: backup set complete, elapsed time: 00:01:35
Channel ORA_DISK_1: starting archived log backup set
Channel ORA_DISK_1: specifying archived log (s) in backup set
Input archived log thread = 1 sequence = 1 RECID = 6 STAMP = 826760691
Input archived log thread = 1 sequence = 2 RECID = 3 STAMP = 826760691
Channel ORA_DISK_1: starting piece 1 at 22-SEP-13
Channel ORA_DISK_1: finished piece 1 at 22-SEP-13
Piece handle =/u/oracle/flash_recovery_area/ORCL2/backupset/2013_09_22/blank _. bkp tag = TAG20130922T000600 comment = NONE
Channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Channel ORA_DISK_1: starting archived log backup set
Channel ORA_DISK_1: specifying archived log (s) in backup set
Input archived log thread = 1 sequence = 1 RECID = 23 STAMP = 826761959
Channel ORA_DISK_1: starting piece 1 at 22-SEP-13
Channel ORA_DISK_1: finished piece 1 at 22-SEP-13
Piece handle =/u/oracle/flash_recovery_area/ORCL2/backupset/2013_09_22/o1_mf_annnn_TAG20130922T000600_93vk29cw _. bkp tag = TAG20130922T000600 comment
Channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 22-SEP-13
Starting backup at 22-SEP-13
Using channel ORA_DISK_1
Channel ORA_DISK_1: starting full datafile backup set
Channel ORA_DISK_1: specifying datafile (s) in backup set
Input datafile file number = 00001 name =/oradata/orcl2/system01.dbf
Input datafile file number = 00002 name =/oradata/orcl2/undotbs01.dbf
Input datafile file number = 00003 name =/oradata/orcl2/sysaux01.dbf
Input datafile file number = 00005 name =/oradata/orcl2/seven. dbf
Input datafile file number = 00004 name =/oradata/orcl2/users01.dbf
Channel ORA_DISK_1: starting piece 1 at 22-SEP-13
Channel ORA_DISK_1: finished piece 1 at 22-SEP-13
Piece handle =/backup/orcl_04okeoqa_1_1 tag = TAG20130922T000738 comment = NONE
Channel ORA_DISK_1: backup set complete, elapsed time: 00:02:05
Channel ORA_DISK_1: starting full datafile backup set
Channel ORA_DISK_1: specifying datafile (s) in backup set
Including current control file in backup set
Including current SPFILE in backup set
Channel ORA_DISK_1: starting piece 1 at 22-SEP-13
Channel ORA_DISK_1: finished piece 1 at 22-SEP-13
Piece handle =/backup/orcl_05okeou7_1_1 tag = TAG20130922T000738 comment = NONE
Channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 22-SEP-13
Starting backup at 22-SEP-13
Current log archived
Using channel ORA_DISK_1
Channel ORA_DISK_1: starting archived log backup set
Channel ORA_DISK_1: specifying archived log (s) in backup set
Input archived log thread = 1 sequence = 2 RECID = 24 STAMP = 826762186
Channel ORA_DISK_1: starting piece 1 at 22-SEP-13
Channel ORA_DISK_1: finished piece 1 at 22-SEP-13
Piece handle =/u/oracle/flash_recovery_area/ORCL2/backupset/2013_09_22/blank _. bkp tag = TAG20130922T000946 comment = NONE
Channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 22-SEP-13
RMAN>
View the backup file:
[Oracle @ DBA2 backup] $ ls
-Rw-r ----- 1 oracle oinstall 1182695424 Sep 22 orcl_04okeoqa_1_1
-Rw-r ----- 1 oracle oinstall 10158080 Sep 22 orcl_05okeou7_1_1
Orcl_04okeoqa_1_1 is the backup set of the data file, and orcl_05okeou7_1_1 is the backup set of the control file and parameter file.