Re: My RMAN script of full backup

From: joel garry <>
Date: Fri, 27 Apr 2012 14:23:27 -0700 (PDT)
Message-ID: <>

On Apr 27, 12:30 pm, Big George <> wrote:
> Hello,
> I have a doubt about my RMAN script of full backup, which run every
> Sunday.
> run  {
>         allocate channel c1 type disk maxpiecesize=4G;
>         CROSSCHECK archivelog all;
>         backup
>          incremental level 0
>          format '\\\g$\SRV4-arclogs\MTDPROD\RMAN\FULL
> \FULL_%d_%T_%s_%p.bak'
>          filesperset 8
>          spfile format '\\\g$\SRV4-arclogs\MTDPROD\RMAN
> \FULL\spfile_%d_%s_%T_%p.ora'
>          database ;
>         backup
>           current controlfile format '\\\g$\SRV4-arclogs
> \MTDPROD\RMAN\FULL\ctl_%d_%s_%T_%p.ctl' ;
>         SQL 'alter system archive log current';
>         backup
>          format '\\\g$\SRV4-arclogs\MTDPROD\RMAN\FULL\ARC_
> %d_%T_%s_%p.bak'
>          archivelog all delete all input;
>         restore spfile to pfile '\\\g$\SRV4-arclogs
> \MTDPROD\RMAN\FULL\pfile_mtdprod.ora';
>        }
> As you see, I backup my level 0 backuppieces and my controlfile
> separately.
> I backup controlfile separately because it would be easier to identify
> it and move it to a new host, in case we have to restore database from
> a disaster recovery.
> Is that correct? Or could I have problems with that controlfile when
> restoring my full backup?

Not entirely, see

A manually backed up controlfile does not get automatically restored. Note that the controlfile gets backed up automatically when you backup file 1, but that is considered a manual backup. You should set CONFIGURE CONTROLFILE AUTOBACKUP ON One viewpoint is you can't have too many controlfile backups, another is you can get confused and shoot yourself in the foot.

It ain't a backup procedure unless it has successfully restored. You need to test various scenarios, and understand enough to deal with anything reality throws at you. You need to understand when to back off and let Oracle do the right thing automatically.


-- is bogus.
Redwood City, huh?
Received on Fri Apr 27 2012 - 16:23:27 CDT

Original text of this message