Scenario:
While doing RMAN Duplicating database we missed some archivelog backup from backup mountpoint, so it gives error like
executing Memory Script
executing command: SET until clause
Starting recover at 18-SEP-10
starting media recovery
channel C1: starting archive log restore to default destination
channel C2: starting archive log restore to default destination
channel C3: starting archive log restore to default destination
channel C1: restoring archive log
archive log thread=2 sequence=80918
channel C2: restoring archive log
archive log thread=2 sequence=80917
channel C2: reading from backup piece /rmanback/arch_52886.arc
channel C3: restoring archive log
archive log thread=1 sequence=71380
channel C1: restoring archive log
archive log thread=2 sequence=80919
ORA-19870: error reading backup piece /rmanback/arch_52886.arc
ORA-19505: failed to identify file "/rmanback/arch_52886.arc"
ORA-27041: unable to open file
SVR4 Error: 13: Permission denied
Additional information: 2
failover to previous backup
Oracle Error:
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/oracle/devdata/system01'
released channel: C1
released channel: C2
released channel: C3
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/18/2010 15:48:07
RMAN-03015: error occurred in stored script Memory Script
RMAN-20506: no backup of archivelog found
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of log thread 2 seq 80917 lowscn 6573367815 found to restore
Actually the issue was permission related issue, so it gives the above error and quit from RMAN prompt.
I tried to do cancel based recovery, if doesn’t work, steps I followed to do the cancel based recovery
My test database in mount stage,
In command prompt, gave sqlplus “/as sysdba”
SQL> RECOVER DATABASE USING BACKUP CONTROLFILE;
ORA-00279: change 6573474410 generated at 09/12/2010 11:42:22 needed for thread
2
ORA-00289: suggestion : /oracle/10.2.0/dbs/arch2_80917_603256642.dbf
ORA-00280: change 6573474410 for thread 2 is in sequence #80917
Specify log: {=suggested | filename | AUTO | CANCEL}
/oracle/10.2.0/dbs/arch2_80917_603256642.dbf
ORA-00317: file type 512 in header is not log file
ORA-00334: archived log: '/oracle/10.2.0/dbs/arch2_80917_603256642.dbf'
I changed the permission of archivelog backup, then I executed the below script in the RMAN prompt
RMAN> run
2> {
3> set until time "to_date('Sep 13 2010 15:56:00','Mon DD YYYY HH24:MI:SS')";
4> recover
5> clone database
6> delete archivelog
7> ;
It started the media recovery and finished recovery, the start database in resetlogs mode
Sql> alter database open resetlogs;
While doing RMAN Duplicating database we missed some archivelog backup from backup mountpoint, so it gives error like
executing Memory Script
executing command: SET until clause
Starting recover at 18-SEP-10
starting media recovery
channel C1: starting archive log restore to default destination
channel C2: starting archive log restore to default destination
channel C3: starting archive log restore to default destination
channel C1: restoring archive log
archive log thread=2 sequence=80918
channel C2: restoring archive log
archive log thread=2 sequence=80917
channel C2: reading from backup piece /rmanback/arch_52886.arc
channel C3: restoring archive log
archive log thread=1 sequence=71380
channel C1: restoring archive log
archive log thread=2 sequence=80919
ORA-19870: error reading backup piece /rmanback/arch_52886.arc
ORA-19505: failed to identify file "/rmanback/arch_52886.arc"
ORA-27041: unable to open file
SVR4 Error: 13: Permission denied
Additional information: 2
failover to previous backup
Oracle Error:
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/oracle/devdata/system01'
released channel: C1
released channel: C2
released channel: C3
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/18/2010 15:48:07
RMAN-03015: error occurred in stored script Memory Script
RMAN-20506: no backup of archivelog found
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of log thread 2 seq 80917 lowscn 6573367815 found to restore
Actually the issue was permission related issue, so it gives the above error and quit from RMAN prompt.
I tried to do cancel based recovery, if doesn’t work, steps I followed to do the cancel based recovery
My test database in mount stage,
In command prompt, gave sqlplus “/as sysdba”
SQL> RECOVER DATABASE USING BACKUP CONTROLFILE;
ORA-00279: change 6573474410 generated at 09/12/2010 11:42:22 needed for thread
2
ORA-00289: suggestion : /oracle/10.2.0/dbs/arch2_80917_603256642.dbf
ORA-00280: change 6573474410 for thread 2 is in sequence #80917
Specify log: {
/oracle/10.2.0/dbs/arch2_80917_603256642.dbf
ORA-00317: file type 512 in header is not log file
ORA-00334: archived log: '/oracle/10.2.0/dbs/arch2_80917_603256642.dbf'
I changed the permission of archivelog backup, then I executed the below script in the RMAN prompt
RMAN> run
2> {
3> set until time "to_date('Sep 13 2010 15:56:00','Mon DD YYYY HH24:MI:SS')";
4> recover
5> clone database
6> delete archivelog
7> ;
It started the media recovery and finished recovery, the start database in resetlogs mode
Sql> alter database open resetlogs;
Comments
sap testing tools