RMAN-03002: RMAN-06053: RMAN-06025:
RMAN-03002:
RMAN-06053: unable to perform media recovery because of missing log, RMAN-06025: no backup of archived log for thread 1 with sequence 47129 and starting SCN of 67173220496 found to restore
Today I will show you a common problem when restoring oracle database the RMAN-06025 Error, happens when RMAN can’t recover the database because some archive log files are missing. Firstly, it is important to note that RMAN requires all archive log files to restore a database.
If you’re experiencing the RMAN-06025 error, you can following steps:
RMAN-03002: failure of recover command at 21/12/2023 08:47:20
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of archived log for thread 1 with sequence 47129 and starting SCN of 67173220496 found to restore
You can fix the problem by transferring the latest archive log files from the production machine to the test machine using Scp command or Nfs (Network File System).
production machine:
RMAN> backup archivelog all format '/backups/PROD/PROD_dbarch_20231221_%U.bks';
scp -r /backups/PROD/PROD_dbarch_20231221* oracle@192.168.66.4:/backup/oracle/
test machine:
RMAN> catalog backuppiece '/backup/oracle/';
RMAN>recover database;
If we want zero data loss, it is important to keep and use archive logs during recovery. If you do not have any more archive files, you can perform the recovery with the lowest available sequence number. This allows you to perform the recovery
RMAN> recover database until sequence [lowest_sequence];
RMAN> recover database until sequence 47129;
If we’re restoring from an offline backup and we don’t have archive log files, we can choose the noredo option.
RMAN> recover database noredo;
SQL> alter database open resetlogs;
Verify the Database:
SQL> select name,database_role,open_mode,protection_mode from v$database;
I hope it helped you! linkedin to contact me.
Best regards!