工作记录。
另:备份脚本参见我的下载。
bash-3.00$ rman target / catalog rman/rman@inst1002 Recovery Manager: Release 9.2.0.8.0 - 64bit ProductionCopyright (c) 1995, 2002, Oracle Corporation. All rights reserved.connected to target database (not started)connected to recovery catalog databaseRMAN> set dbid=3157572766executing command: SET DBIDRMAN> startup nomount;Oracle instance startedTotal System Global Area 1880589944 bytesFixed Size 743032 bytesVariable Size 1828716544 bytesDatabase Buffers 50331648 bytesRedo Buffers 798720 bytesRMAN> run{allocate channel t1 type 'sbt_tape';send 'nb_ora_serv=szcnbu1,nb_ora_client=ssuzmesvs01'; set until time 'SYSDATE-1/12';restore controlfile;alter database mount; restore database;recover database;}2> 3> 4> 5> 6> 7> 8> allocated channel: t1channel t1: sid=13 devtype=SBT_TAPEchannel t1: VERITAS NetBackup for Oracle - Release 6.0 (2006110304)sent command to channel: t1executing command: SET until clauseStarting restore at 02-SEP-08channel t1: starting datafile backupset restorechannel t1: restoring controlfileoutput filename=/oracle/304/oradata/inst933/control01.ctlchannel t1: restored backup piece 1piece handle=c-3157572766-20080902-04 tag=null params=NULLchannel t1: restore completereplicating controlfileinput filename=/oracle/304/oradata/inst933/control01.ctloutput filename=/oracle/304/oradata/inst933/control02.ctlFinished restore at 02-SEP-08database mountedStarting restore at 02-SEP-08channel t1: starting datafile backupset restorechannel t1: specifying datafile(s) to restore from backup setrestoring datafile 00001 to /oracle/304/oradata/inst933/system01.dbfrestoring datafile 00002 to /oracle/304/oradata/inst933/undotbs01.dbfrestoring datafile 00003 to /oracle/304/oradata/inst933/users01.dbfrestoring datafile 00004 to /oracle/304/oradata/inst933/perfstat01.dbfrestoring datafile 00005 to /oracle/304/oradata/inst933/insite_suz.dbfrestoring datafile 00006 to /oracle/304/oradata/inst933/insiteint01.dbfrestoring datafile 00007 to /oracle/304/oradata/inst933/insiteque.dbfrestoring datafile 00008 to /oracle/304/oradata/inst933/undotbs02.dbfrestoring datafile 00009 to /oracle/304/oradata/inst933/aud_data01.dbfrestoring datafile 00010 to /oracle/304/oradata/inst933/perfstat02.dbfrestoring datafile 00011 to /oracle/304/oradata/inst933/insite_suz01.dbfrestoring datafile 00012 to /oracle/304/oradata/inst933/undotbs03.dbfrestoring datafile 00013 to /oracle/304/oradata/inst933/undotbs04.dbfchannel t1: restored backup piece 1piece handle=bk_6231_1_664203616 tag=FULL_ORACLE_BACKUP params=NULLchannel t1: restore completeFinished restore at 02-SEP-08Starting recover at 02-SEP-08channel t1: starting incremental datafile backupset restorechannel t1: specifying datafile(s) to restore from backup setdestination for restore of datafile 00001: /oracle/304/oradata/inst933/system01.dbfdestination for restore of datafile 00002: /oracle/304/oradata/inst933/undotbs01.dbfdestination for restore of datafile 00003: /oracle/304/oradata/inst933/users01.dbfdestination for restore of datafile 00004: /oracle/304/oradata/inst933/perfstat01.dbfdestination for restore of datafile 00005: /oracle/304/oradata/inst933/insite_suz.dbfdestination for restore of datafile 00006: /oracle/304/oradata/inst933/insiteint01.dbfdestination for restore of datafile 00007: /oracle/304/oradata/inst933/insiteque.dbfdestination for restore of datafile 00008: /oracle/304/oradata/inst933/undotbs02.dbfdestination for restore of datafile 00009: /oracle/304/oradata/inst933/aud_data01.dbfdestination for restore of datafile 00010: /oracle/304/oradata/inst933/perfstat02.dbfdestination for restore of datafile 00011: /oracle/304/oradata/inst933/insite_suz01.dbfdestination for restore of datafile 00012: /oracle/304/oradata/inst933/undotbs03.dbfdestination for restore of datafile 00013: /oracle/304/oradata/inst933/undotbs04.dbfchannel t1: restored backup piece 1piece handle=bk_6256_1_664286419 tag=INCREMENTAL_ORACLE_BACKUP params=NULLchannel t1: restore completestarting media recoverychannel t1: starting archive log restore to default destinationchannel t1: restoring archive logarchive log thread=1 sequence=7951channel t1: restoring archive logarchive log thread=1 sequence=7952channel t1: restored backup piece 1piece handle=arch_664293621_6259.arc tag=TAG20080901T140021 params=NULLchannel t1: restore complete...archive log filename=/oracle/304/arch/inst933/arch_1_7973.arc thread=1 sequence=7973archive log filename=/oracle/304/arch/inst933/arch_1_7974.arc thread=1 sequence=7974unable to find archive logarchive log thread=1 sequence=7975released channel: t1RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of recover command at 09/02/2008 13:18:30RMAN-06054: media recovery requesting unknown log: thread 1 scn 1850630169899RMAN> RMAN> RUN{ SET UNTIL SEQUENCE 7974 THREAD 1; RECOVER DATABASE;}2> 3> 4> executing command: SET until clauseStarting recover at 02-SEP-08using channel ORA_SBT_TAPE_1using channel ORA_DISK_1starting media recoverymedia recovery completeFinished recover at 02-SEP-08RMAN> RMAN> exitRecovery Manager complete.bash-3.00$ sqlplus '/ as sysdba'SQL*Plus: Release 9.2.0.8.0 - Production on Tue Sep 2 13:35:04 2008Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.Connected to:Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit ProductionWith the Partitioning, OLAP and Oracle Data Mining optionsJServer Release 9.2.0.8.0 - ProductionSQL> alter database open resetlogs;Database altered.SQL> select open_mode from v$database; OPEN_MODE----------READ WRITESQL> quitDisconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit ProductionWith the Partitioning, OLAP and Oracle Data Mining optionsJServer Release 9.2.0.8.0 - Productionbash-3.00$
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/58054/viewspace-626001/
,如需转载,请注明出处,否则将追究法律责任。