Dear Experts,
Please bear with me for this simple question.
I am regularly taking backup's to tape using Tivoli MML. My backup's are all successful. We do not have recovery catalog database configured. Below is my full database backup script:
OS: Windows 2008 R2 64-bit
DB: Oracle 11g R2 (11.2.0.2)
run
{
allocate channel c1 type SBT_TAPE parms 'ENV=(TDPO_OPTFILE=C:\Program Files\Tivoli\TSM\AgentOBA64\tdpo.opt)';
allocate channel c2 type SBT_TAPE parms 'ENV=(TDPO_OPTFILE=C:\Program Files\Tivoli\TSM\AgentOBA64\tdpo.opt)';
backup as compressed backupset format '%d_%u.bkp' database ;
sql "alter system switch logfile";
backup as compressed backupset format '%d_%u.alg' archivelog all delete input;
release channel c1 ;
release channel c2 ;
}
and below is the log of the full database bakcup:
allocated channel: c1
channel c1: sid=58 devtype=SBT_TAPE
channel c1: Data Protection for Oracle: version 5.5.2.0
allocated channel: c2
channel c2: sid=57 devtype=SBT_TAPE
channel c2: Data Protection for Oracle: version 5.5.2.0
sql statement: alter system switch logfile
Starting backup at 26-OCT-11
channel c1: starting compressed full datafile backupset
channel c1: specifying datafile(s) in backupset
input datafile fno=00001 name=D:\ORACLE\ORADATA\ABCDB\SYSTEM01.DBF
input datafile fno=00004 name=D:\ORACLE\ORADATA\ABCDB\USERS01.DBF
input datafile fno=00008 name=D:\ORACLE\ORADATA\ABCDB\HR_DATA
input datafile fno=00009 name=D:\ORACLE\ORADATA\ABCDB\PROC_DATA
channel c1: starting piece 1 at 26-OCT-11
channel c2: starting compressed full datafile backupset
channel c2: specifying datafile(s) in backupset
input datafile fno=00003 name=D:\ORACLE\ORADATA\ABCDB\SYSAUX01.DBF
input datafile fno=00005 name=D:\ORACLE\ORADATA\ABCDB\SYS_DATA
input datafile fno=00002 name=D:\ORACLE\ORADATA\ABCDB\UNDOTBS01.DBF
input datafile fno=00007 name=D:\ORACLE\ORADATA\ABCDB\GL_DATA
input datafile fno=00006 name=D:\ORACLE\ORADATA\ABCDB\AUD_DATA
channel c2: starting piece 1 at 26-OCT-11
channel c2: finished piece 1 at 26-OCT-11
piece handle=ABCDB_4mmq31ib.bkp tag=FULLDB_26OCT2011_2 comment=API Version 2.0,MMS Version 5.5.2.0
channel c2: backup set complete, elapsed time: 00:00:15
channel c2: starting compressed full datafile backupset
channel c2: specifying datafile(s) in backupset
including current control file in backupset
channel c2: starting piece 1 at 26-OCT-11
channel c1: finished piece 1 at 26-OCT-11
piece handle=ABCDB_4lmq31ib.bkp tag=FULLDB_26OCT2011_2 comment=API Version 2.0,MMS Version 5.5.2.0
channel c1: backup set complete, elapsed time: 00:00:19
channel c2: finished piece 1 at 26-OCT-11
piece handle=ABCDB_4nmq31ir.bkp tag=FULLDB_26OCT2011_2 comment=API Version 2.0,MMS Version 5.5.2.0
channel c2: backup set complete, elapsed time: 00:00:10
Finished backup at 26-OCT-11
Starting Control File and SPFILE Autobackup at 26-OCT-11
piece handle=c-2814270906-20111026-00 comment=API Version 2.0,MMS Version 5.5.2.0
Finished Control File and SPFILE Autobackup at 26-OCT-11
sql statement: alter system switch logfile
Starting backup at 26-OCT-11
current log archived
channel c1: starting compressed archive log backupset
channel c1: specifying archive log(s) in backup set
input archive log thread=1 sequence=267 recid=160 stamp=765559302
channel c1: starting piece 1 at 26-OCT-11
channel c2: starting compressed archive log backupset
channel c2: specifying archive log(s) in backup set
input archive log thread=1 sequence=268 recid=161 stamp=765559508
input archive log thread=1 sequence=269 recid=162 stamp=765559508
input archive log thread=1 sequence=270 recid=163 stamp=765560395
channel c2: starting piece 1 at 26-OCT-11
channel c1: finished piece 1 at 26-OCT-11
piece handle=ABCDB_4pmq31jj.alg tag=ARCHIVE_26OCT2011_@ comment=API Version 2.0,MMS Version 5.5.2.0
channel c1: backup set complete, elapsed time: 00:00:08
channel c2: finished piece 1 at 26-OCT-11
piece handle=ABCDB_4qmq31jj.alg tag=ARCHIVE_26OCT2011_@ comment=API Version 2.0,MMS Version 5.5.2.0
channel c2: backup set complete, elapsed time: 00:00:08
channel c1: starting compressed archive log backupset
channel c1: specifying archive log(s) in backup set
input archive log thread=1 sequence=271 recid=164 stamp=765560433
input archive log thread=1 sequence=272 recid=165 stamp=765560434
channel c1: starting piece 1 at 26-OCT-11
channel c1: finished piece 1 at 26-OCT-11
piece handle=ABCDB_4rmq31jr.alg tag=ARCHIVE_26OCT2011_@ comment=API Version 2.0,MMS Version 5.5.2.0
channel c1: backup set complete, elapsed time: 00:00:04
Finished backup at 26-OCT-11
Starting Control File and SPFILE Autobackup at 26-OCT-11
piece handle=c-2814270906-20111026-01 comment=API Version 2.0,MMS Version 5.5.2.0
Finished Control File and SPFILE Autobackup at 26-OCT-11
released channel: c1
released channel: c2
RMAN>
I want to restore SPFILE and controlfile on a new host. I did the following to restore:
1) started database instance in nomount mode from RMAN (it started db with dummy parameter file)
2) Set the dbid
3) restore SPFILE/controlfile
But the command says, I have to restore from autobackup. There is no autobackup controlfile available on this server. How do i tell the restore command to restore SPFILE & Controlfile from the tape library?
Appreciate your help in this regard.
Thanks
Prem