Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RMAN Strategy - Need some input

RMAN Strategy - Need some input

From: Taylor, Chris David <Chris.Taylor_at_ingrambarge.com>
Date: Mon, 12 Nov 2007 07:49:09 -0600
Message-ID: <17E4CDE8F84DC44A992E8C00767402E0860C63@spobmexc02.adprod.directory>


Ok guys & gals, I need some input/thoughts/suggestions etc.  

Lets say we have approximately 10 databases across multiple servers.

We have a catalog database on a central server on local storage.

The other 10 databases use a SAN for their storage.

In the other 10 databases we write the archivelogs to the C:\ drive (along with a controlfile and members of redo logs)

We take full RMAN backups nightly and write them to the SAN and delete the backed up archivelogs.  

So this is what happened. Thursday evening I take an RMAN backup and write it to the SAN and delete the archive logs from the C\ drive. Thursday evening before those backups are written to tape we lost our SAN. Had to reinitialize the whole SAN. So now, I have Wednesday nights full backup with no archivelogs since I deleted them when Thursday nights backup ran.  

We have used Grid Control to create the RMAN jobs. (Script is below). My question are these:  

Can we tell RMAN to delete archivelogs that are older than 'x' date? Instead of deleting all the archivelogs when the backups run? Or do we have to that with a script? We are using 10.2 RMAN and some 9.2.

I don't want to leave a bunch of archivelogs on the c:\ drive due to the space usage.  

Here's the script: (replaced database name with ORCL)  

run {

allocate channel oem_backup_disk1 type disk format
'F:\DBABACKUP\CURRENT\ORCL\%U';
allocate channel oem_backup_disk2 type disk format
'F:\DBABACKUP\CURRENT\ORCL\%U';
backup force noexclude as COMPRESSED BACKUPSET tag '%TAG' database include current controlfile;

backup as COMPRESSED BACKUPSET tag '%TAG' archivelog all not backed up delete all input;

release channel oem_backup_disk1;

release channel oem_backup_disk2;

}

allocate channel for maintenance type disk;

delete noprompt obsolete device type disk;

release channel;        

Chris Taylor

Sr. Oracle DBA

Ingram Barge Company

Nashville, TN 37205

Office: 615-517-3355

Cell: 615-354-4799

Email: chris.taylor_at_ingrambarge.com  

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Nov 12 2007 - 07:49:09 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US