Site icon IT Tutorial

RMAN-06563: control file or SPFILE must be restored using FROM AUTOBACKUP

Hi,

Sometimes You can get ” RMAN-06563: control file or SPFILE must be restored using FROM AUTOBACKUP ” error.

 

Details of error are as follows.

RMAN-06563: control file or SPFILE must be restored using FROM AUTOBACKUP

Cause: RESTORE CONTROLFILE or RESTORE SPFILE was specified without the FROM AUTOBACKUP option when RMAN is not connected to the recovery catalog.

Action: If the recovery catalog is available, connect to the recovery catalog and retry the restore. If the recovery catalog in not available, following is the procedure to restore control file or SPFILE:

1. Specify the DBID of the database with the SET DBID command.

2. If the AUTOBACKUP was created with non-default AUTOBACKUP format, then specify the AUTOBACKUP format using the SET CONTROLFILE AUTOBACKUP FORMAT command.

3. If the backup was created with SBT device, then allocate an SBT channel using the ALLOCATE CHANNEL command.

4. Restore control file or SPFILE by starting the RESTORE ... FROM AUTOBACKUP command.


restore controlfile from autobackup;



RMAN-03002: failure of restore command at 04/22/2014 16:08:25 
RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece


To solve this error, Use the Controlfile Piece handle and restore it as follows.
restore controlfile from '68p62u7q_2_3';
RMAN> run {
allocate channel c1 type sbt_tape PARMS 'BLKSIZE=1048576,SBT_LIBRARY=/oracle/app/lib/libddobk.so,ENV=(STORAGE_UNIT=192.168.63.21,BACKUP_HOST=192.168.63.34,ORACLE_HOME=/oracle/app/product/dbhome1)';
set dbid = 683024484
restore controlfile from '68p62u7q_2_3';
release channel c1;
}

allocated channel: c1
channel c1: SID=1045 device type=SBT_TAPE
channel c1: Data Domain Boost API

sent command to channel: c1
executing command: SET DBID
Starting restore at 22-APR-14

channel c1: restoring control file
channel c1: restore complete, elapsed time: 00:01:25
output file name=+DATA/msdb/control01.ctl

Finished restore at 22-APR-20
released channel: c1


 

 

 

Do you want to learn more details about RMAN, then read the following articles.

https://ittutorial.org/rman-backup-restore-and-recovery-tutorials-for-beginners-in-the-oracle-database/

 

Exit mobile version