Database Reference
In-Depth Information
Here is an example of backing up all archived redo logs, still on disk, that were generated
in the last 24 hours:
RMAN> backup archivelog time between "sysdate-1" and "sysdate";
Starting backup at 05-SEP-13
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=46 RECID=45 STAMP=664657241
channel ORA_DISK_1: starting piece 1 at 05-SEP-13
channel ORA_DISK_1: finished piece 1 at 05-SEP-13
piece handle=C:\ORACLE\FAST_RECOVERY_AREA\ORCL\BACKUP SET\2013_09_05\
O1_MF_ANNNN_TAG20080905T190103_4D3OLO2G_.BKP tag=TAG20080905T190103
comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 05-SEP-13.
RMAN Backup of the Spfile and Control Files
We have already discussed control-file autobackups in this chapter. You may find that on
occasion you want to do an individual backup of the control file or the spfile.
You have two options in RMAN for control-file backups, using the BACKUP CURRENT
CONTROLFILE command or the BACKUP CONTROLFILECOPY command.
The BACKUP AS COPY command will cause the current control file to be backed up. This
is a copy of the control file, so it's like a backup control file. Thus, you could just copy the
file into place and treat it as a backup control file. By default, the backup will be created in
the FRA, as would happen in this example:
RMAN> backup as copy current controlfile;
Or you can choose to define the location of the output control file, as shown in
this example:
RMAN>backup as copy current controlfile format
'c:\oracle\controlfilebackup\contrf_backup.ctl';
The BACKUP CONTROLFILE COPY command will back up a control-file copy (created with
the ALTER DATABASE BACKUP CONTROLFILE TO command or the BACKUP AS COPY CURRENT
CONTROLFILE command). Here is an example of the use of the BACKUP CONTROLFILECOPY
command:
SQL>Alter database backup controlfile to
'c:\oracle\controlfilebackup\contrf_backup.ctl';
RMAN>backup controlfilecopy 'c:\oracle\controlfilebackup\contrf_backup.ctl';
Search WWH ::




Custom Search