Autobackup not found by RMAN 2005-11-01 - By Mark Moynahan
OS: RH 3.5 DB: 10.1.0.3 Media software: Veritas Netbackup 5.1
I'm in the process of documenting our DR procedure. Our testing includes recovering from disk and tape. So far recovering from disk has been relatively painless. In contrast, recovering from tape has proven to be less successful. Right now I can't get past the steps to restore the spfile to pfile from autobackup. Has anyone run across this same problem when restoring the spfile to pfile from autobackup from tape? Listed below is the backup and restore commands.
Backup:
CONFIGURE DEVICE TYPE sbt BACKUP TYPE TO BACKUPSET; CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE sbt_tape TO 'cf_%F'; CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS; run { allocate channel t1 type 'SBT_TAPE' parms 'SBT_LIBRARY=/usr/openv/netbackup/bin/libobk.so,ENV=(NB_ORA_SCHED=ORACLE _DB,NB_ORA_CLIENT=jivrac1,NB_ORA_CLASS=OLS3_WIU_ORACLE)'; allocate channel t2 type 'SBT_TAPE' parms 'SBT_LIBRARY=/usr/openv/netbackup/bin/libobk.so,ENV=(NB_ORA_SCHED=ORACLE _DB,NB_ORA_CLIENT=jivrac1,NB_ORA_CLASS=OLS3_WIU_ORACLE)'; allocate channel t3 type 'SBT_TAPE' parms 'SBT_LIBRARY=/usr/openv/netbackup/bin/libobk.so,ENV=(NB_ORA_SCHED=ORACLE _DB,NB_ORA_CLIENT=jivrac1,NB_ORA_CLASS=OLS3_WIU_ORACLE)'; allocate channel t4 type 'SBT_TAPE' parms 'SBT_LIBRARY=/usr/openv/netbackup/bin/libobk.so,ENV=(NB_ORA_SCHED=ORACLE _DB,NB_ORA_CLIENT=jivrac1,NB_ORA_CLASS=OLS3_WIU_ORACLE)'; backup database PLUS ARCHIVELOG; release channel t1; release channel t2; release channel t3; release channel t4; }
Restore:
[oracle@(protected) dbs]$ export ORACLE_SID=WIUQD3 [oracle@(protected) dbs]$ rman nocatalog target /
Recovery Manager: Release 10.1.0.3.0 - Production
Copyright (c) 1995, 2004, Oracle. All rights reserved.
connected to target database (not started)
RMAN> set dbid 123456789
executing command: SET DBID
RMAN> startup nomount; startup failed: ORA-01078 (See ORA-01078.ora-code.com): failure in processing system parameters LRM-00109: could not open parameter file '/u01/app/oracle/product/10.1.0/db_1/dbs/initWIUQD3.ora'
trying to start the Oracle instance without parameter files ... Oracle instance started
Total System Global Area 79691776 bytes
Fixed Size 777792 bytes Variable Size 70001088 bytes Database Buffers 8388608 bytes Redo Buffers 524288 bytes
RMAN>run {allocate channel t1 type 'SBT_TAPE' parms 'SBT_LIBRARY=/usr/openv/netbackup/bin/libobk.so,ENV=(NB_ORA_SCHED=ORACLE _DB,NB_ORA_CLIENT=jivrac1,NB_ORA_CLASS=QAOLS_ORACLE)'; restore spfile to pfile '/u01/app/oracle/product/10.1.0/db_1/dbs/initWIUQD3.ora' from autobackup maxdays=2; } allocated channel: t1 channel t1: sid=26 devtype=SBT_TAPE channel t1: VERITAS NetBackup for Oracle - Release 5.1 (2004043014)
Starting restore at 01-NOV-05
channel t1: looking for autobackup on day: 20051101 channel t1: looking for autobackup on day: 20051031 channel t1: no autobackup in 2 days found
Thanks,
Mark Moynahan
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0"> <TITLE>Autobackup not found by RMAN</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">OS: RH 3.5</FONT>
<BR><FONT SIZE=2 FACE="Arial">DB: 10.1.0.3</FONT>
<BR><FONT SIZE=2 FACE="Arial">Media software: Veritas Netbackup 5.1</FONT> </P>
<P><FONT SIZE=2 FACE="Arial">I'm in the process of documenting our DR procedure . Our testing includes recovering from disk and tape. So far recovering from disk has been relatively painless. In contrast, recovering from tape has proven to be less successful. Right now I can't get past the steps to restore the spfile to pfile from autobackup. Has anyone run across this same problem when restoring the spfile to pfile from autobackup from tape? Listed below is the backup and restore commands.</FONT></P>
<P><FONT SIZE=2 FACE="Terminal">Backup:</FONT> </P>
<P><FONT SIZE=2 FACE="Terminal"> CONFIGURE DEVICE TYPE sbt BACKUP TYPE TO BACKUPSET;</FONT>
<BR><FONT SIZE=2 FACE="Terminal"> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE sbt_tape TO 'cf_%F';</FONT>
<BR><FONT SIZE=2 FACE="Terminal"> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS;</FONT>
<BR><FONT SIZE=2 FACE="Terminal"> run {</FONT>
<BR><FONT SIZE=2 FACE="Terminal"> allocate channel t1 type 'SBT_TAPE' parms 'SBT_LIBRARY=/usr/openv/netbackup/bin /libobk.so,ENV=(NB_ORA_SCHED=ORACLE_DB,NB_ORA_CLIENT=jivrac1,NB_ORA_CLASS=OLS3 _WIU_ORACLE)';</FONT></P>
<P><FONT SIZE=2 FACE="Terminal"> allocate channel t2 type 'SBT_TAPE' parms 'SBT_LIBRARY=/usr/openv/netbackup/bin /libobk.so,ENV=(NB_ORA_SCHED=ORACLE_DB,NB_ORA_CLIENT=jivrac1,NB_ORA_CLASS=OLS3 _WIU_ORACLE)';</FONT></P>
<P><FONT SIZE=2 FACE="Terminal"> allocate channel t3 type 'SBT_TAPE' parms 'SBT_LIBRARY=/usr/openv/netbackup/bin /libobk.so,ENV=(NB_ORA_SCHED=ORACLE_DB,NB_ORA_CLIENT=jivrac1,NB_ORA_CLASS=OLS3 _WIU_ORACLE)';</FONT></P>
<P><FONT SIZE=2 FACE="Terminal"> allocate channel t4 type 'SBT_TAPE' parms 'SBT_LIBRARY=/usr/openv/netbackup/bin /libobk.so,ENV=(NB_ORA_SCHED=ORACLE_DB,NB_ORA_CLIENT=jivrac1,NB_ORA_CLASS=OLS3 _WIU_ORACLE)';</FONT></P>
<P><FONT SIZE=2 FACE="Terminal"> backup database PLUS ARCHIVELOG;</FONT>
<BR><FONT SIZE=2 FACE="Terminal"> release channel t1;</FONT>
<BR><FONT SIZE=2 FACE="Terminal"> release channel t2;</FONT>
<BR><FONT SIZE=2 FACE="Terminal"> release channel t3;</FONT>
<BR><FONT SIZE=2 FACE="Terminal"> release channel t4;</FONT>
<BR><FONT SIZE=2 FACE="Terminal"> }</FONT> </P>
<P><FONT SIZE=2 FACE="Terminal">Restore:</FONT> </P>
<P><FONT SIZE=2 FACE="Terminal">[oracle@(protected) dbs]$ export ORACLE_SID =WIUQD3</FONT>
<BR><FONT SIZE=2 FACE="Terminal">[oracle@(protected) dbs]$ rman nocatalog target /</FONT> </P>
<P><FONT SIZE=2 FACE="Terminal">Recovery Manager: Release 10.1.0.3.0 - Production</FONT> </P>
<P><FONT SIZE=2 FACE="Terminal">Copyright (c) 1995, 2004, Oracle. All rights reserved.</FONT> </P>
<P><FONT SIZE=2 FACE="Terminal">connected to target database (not started)< /FONT> </P>
<P><FONT SIZE=2 FACE="Terminal">RMAN> set dbid 123456789</FONT> </P>
<P><FONT SIZE=2 FACE="Terminal">executing command: SET DBID</FONT> </P>
<P><FONT SIZE=2 FACE="Terminal">RMAN> startup nomount;</FONT> <UL><UL> <P><FONT SIZE=2 FACE="Terminal">startup failed: ORA-01078 (See ORA-01078.ora-code.com): failure in processing system parameters</FONT>
<BR><FONT SIZE=2 FACE="Terminal">LRM-00109: could not open parameter file '/u01 /app/oracle/product/10.1.0/db_1/dbs/initWIUQD3.ora'</FONT> </P>
<P><FONT SIZE=2 FACE="Terminal">trying to start the Oracle instance without parameter files ...</FONT>
<BR><FONT SIZE=2 FACE="Terminal">Oracle instance started</FONT> </P>
<P><FONT SIZE=2 FACE="Terminal">Total System Global Area   ; 79691776 bytes</FONT> </P>
<P><FONT SIZE=2 FACE="Terminal">Fixed Size 777792 bytes</FONT>
<BR><FONT SIZE=2 FACE="Terminal">Variable Size 70001088 bytes</FONT>
<BR><FONT SIZE=2 FACE="Terminal">Database Buffers 8388608 bytes</FONT>
<BR><FONT SIZE=2 FACE="Terminal">Redo Buffers 524288 bytes</FONT> </P> </UL></UL> <P><FONT SIZE=2 FACE="Terminal">RMAN>run</FONT> <UL><UL> <P><FONT SIZE=2 FACE="Terminal">{allocate channel t1 type 'SBT_TAPE' parms 'SBT _LIBRARY=/usr/openv/netbackup/bin/libobk.so,ENV=(NB_ORA_SCHED=ORACLE_DB,NB_ORA _CLIENT=jivrac1,NB_ORA_CLASS=QAOLS_ORACLE)';</FONT></P>
<P><FONT SIZE=2 FACE="Terminal">restore spfile to pfile '/u01/app/oracle /product/10.1.0/db_1/dbs/initWIUQD3.ora' from autobackup maxdays=2;</FONT>
<BR><FONT SIZE=2 FACE="Terminal">}</FONT>
<BR><FONT SIZE=2 FACE="Terminal">allocated channel: t1</FONT>
<BR><FONT SIZE=2 FACE="Terminal">channel t1: sid=26 devtype=SBT_TAPE</FONT>
<BR><FONT SIZE=2 FACE="Terminal">channel t1: VERITAS NetBackup for Oracle - Release 5.1 (2004043014)</FONT> </P>
<P><FONT SIZE=2 FACE="Terminal">Starting restore at 01-NOV-05</FONT> </P>
<P><FONT SIZE=2 FACE="Terminal">channel t1: looking for autobackup on day: 20051101</FONT>
<BR><FONT SIZE=2 FACE="Terminal">channel t1: looking for autobackup on day: 20051031</FONT>
<BR><FONT SIZE=2 FACE="Terminal">channel t1: no autobackup in 2 days found< /FONT> </P> </UL></UL> <P><FONT SIZE=2 FACE="Arial">Thanks,</FONT> </P>
<P><FONT COLOR="#800000" SIZE=2 FACE="Times New Roman">Mark Moynahan</FONT> </P>
</BODY> </HTML>
|
|