I'm trying to recover oracle DB (v11.2) in ubuntu server using rman backup that is taken from the database in the old host but failed with error: RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece.
The RMAN backup has been taken from the database in the old host using below steps:
run
{
backup spfile include current controlfile format '/mydir/control-%U';
allocate channel d1 type disk format '/mydir/RMAN_full_%U.bkp';
backup as compressed backupset database plus archivelog;
CROSSCHECK BACKUP;
release channel d1;
}
In the new host, Oracle DB (v11.2) has been started and we need recover data of the old one using the backup files created.
The backup created in the old host has been copied to new host with suitable permission
Try to recover "controlfile" but failed.
Steps for restoring controlfile:
sqlplus / as sysdba shutdown immediate; exit; rman target / startup nomount; restore controlfile from '/home/oracle/control-ja23htj0_1_1';
restore command output:
RMAN> restore controlfile from '/home/oracle/control-ja23htj0_1_1'; restore controlfile from '/home/oracle/control-ja23htj0_1_1'; Starting restore at 14-AUG-23 using channel ORA_DISK_1 RMAN Command Id : 2023-08-14T22:16:32 RMAN Command Id : 2023-08-14T22:16:32 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of restore command at 08/14/2023 22:25:33 RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece
File permission:
bash-4.4$ ls -alrth /home/oracle/control-ja23htj0_1_1 -rwxr-xr-x 1 oracle oinstall 16M Aug 14 21:31 /home/oracle/dbdfrz1/control-ja23htj0_1_1
RMAN configuration parameters:
RMAN> show all;
show all;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name FREE are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES256'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE RMAN OUTPUT TO KEEP FOR 7 DAYS; # default