What are the differences between these 2 RMAN syntaxes?
1.backup current controlfile;
2.copy current controlfile to '.......';
Printable View
What are the differences between these 2 RMAN syntaxes?
1.backup current controlfile;
2.copy current controlfile to '.......';
Quote:
Originally posted by oracleman
What are the differences between these 2 RMAN syntaxes?
1.backup current controlfile;
>>>> Here you are saving the current control file which is currently open by an instance and you don't have to specify the file name and destination.
2.copy current controlfile to '.......';
>>>> Here you are saving the control file from control file to a destination file which is realy not the current control file.
The commands are different. The 1st makes a backup of the controlfile in an RMAN backupset. It will use the default %U format.
backup current controlfile;
The next is making a binary backup copy of the controlfile to disk.
backup current controlfile to '/path/filename.cf';
This copy can be used without restore to mount and restore an Oracle database from an RMAN backupset. If in nocatalog mode it essential to make this copy last after the backup of the database and the archived logs. Oracle9i handles this with the autobackup controlfile feature.
just a suggestion - use:
RMAN> configure controlfile autobackup on;
that is if you are on 9i ...