Experienced the following errors when running RMAN backup of the archivelogs:
RMAN-06059: expected archived log not found
RMAN-06059: expected archived log not found
ORA-19625: error identifying file /zklpdata/archive/zkpd/arch_1_44543_466886099.arc
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 3
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directory
Additional information: 3
CAUSE
RMAN is attempting to backup this archivelog file but is not able to access the physical file on disk, because either the archivelog file is manually moved or deleted at the operating system level, and RMAN metadata is not updated.
SOLUTION
The steps required depends on if the archivelog file exists based on the name and location returned by the error. Thus the first step is to check for the existence of the archivelog file.
1. If the archivelog files have been moved to a different directory, then they can be moved back to their original directory.
Otherwise, starting in Oracle9i, you can make RMAN aware of their new location using the following RMAN "catalog" command for each archivelog:
RMAN> catalog archivelog '/temp/archive/zkpd/arch_1_44543_466886099.arc';
Starting in Oracle10g, if several archivelog files are effected, you may issue the RMAN command "catalog start with" as follows:
RMAN> catalog start with '<new_directory_of_archivelogs>';
RMAN> catalog archivelog '/temp/archive/zkpd/arch_1_44543_466886099.arc';
Starting in Oracle10g, if several archivelog files are effected, you may issue the RMAN command "catalog start with" as follows:
RMAN> catalog start with '<new_directory_of_archivelogs>';
2. If the archivelogs are no longer physically available, then you can issue the RMAN command "crosscheck copy of archivelog all". This command checks for the physical existence of the archivelog file and will change the V$ARCHIVED_LOG.STATUS of the affected archivelog from "A" for AVAILABLE to "X" for EXPIRED. Once the archivelog file has a status of X, RMAN will no longer attempt to backup this archivelog file.
RMAN> crosscheck copy of archivelog all;
IMPORTANT NOTE: If there is no RMAN backup of the missing archivelog file, it is essential to perform a full-database backup. Otherwise, you may not be able to recover the database beyond missing log sequence number.
Commands:
catalog start with '/home/oracle/DataBaseBackups/ArchiveDest/';
catalog start with '/home/oracle/DataBaseBackups/ArchiveDest/' NOPROMPT;
CATALOG DATAFILECOPY '/stage/users01.dbf';
CATALOG DATAFILECOPY '/u02/backup/users01.bak' LEVEL 0;
LIST COPY;
CATALOG BACKUPPIECE '/u01/c-874220581-20080315-01';
CATALOG CONTROLFILECOPY '/stage/control01.ctl'
CATALOG ARCHIVELOG '?/oradata/archive1_30.dbf','?/oradata/archive1_31.dbf','?/oradata/archive1_32.dbf';
Commands:
catalog start with '/home/oracle/DataBaseBackups/ArchiveDest/';
catalog start with '/home/oracle/DataBaseBackups/ArchiveDest/' NOPROMPT;
CATALOG DATAFILECOPY '/stage/users01.dbf';
CATALOG DATAFILECOPY '/u02/backup/users01.bak' LEVEL 0;
LIST COPY;
CATALOG BACKUPPIECE '/u01/c-874220581-20080315-01';
CATALOG CONTROLFILECOPY '/stage/control01.ctl'
CATALOG ARCHIVELOG '?/oradata/archive1_30.dbf','?/oradata/archive1_31.dbf','?/oradata/archive1_32.dbf';