Extract Controlfile from a backupset using RMAN
In my previous post, I had talked about extracting controlfiles, datafiles and archivelogs from RMAN backupsets using the package dbms_backup_restore. In this post, I would like to throw light upon using RMAN as an alternate method that could be employed to extract controlfiles from RMAN backupsets. This method uses the RMAN command "restore controlfile from '<FULL_PATH_TO_CONTROLFILE_BACKUP>'". The RMAN method can be used in 3 scenarios. So, make sure that at least any one of the backups is indeed available. Else, you are DOOMED! I. the controlfile autobackup is turned on in RMAN. In this case the file format would be "c<DBID>-<DATE>-<COUNT>". It is turned on using the command: configure controlfile autobackup on; configure controlfile autobackup format for device type disk to '/opt/apps/vision/backup/%F'; II. the controlfile snapshot backup is configured in RMAN. It is turned on using the command: configure snapshot control