Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Rman 8i vs 9i question - delete obsolete
Rick,
I have a space problem so I manually delete the old backups and then
run the
CROSSCHECK BACKUP to clean up the catalog
===== this is done as as script that I run
TH=$PATH:$HOME/bin:/home/oracle/OraHome1/bin
export PATH
ORACLE_HOME=/home/oracle/OraHome1
export ORACLE_HOME
ORACLE_BASE=/home/oracle/OraHome1
export ORACLE_BASE
LD_LIBRARY_PATH=$ORACLE_HOME/lib
ORACLE_SID=lnxdb
export LD_LIBRARY_PATH ORACLE_SID
TNS_ADMIN=/home/oracle/OraHome1/network/admin
export TNS_ADMIN
export LD_ASSUME_KERNEL=2.2.5
echo "Start Backup:" >/xxxxxprd/rman_lev0.log
echo `date` >> /xxxxxprd/rman_del.log
/home/oracle/OraHome1/bin/rman <<EOF>> /xxxxxprd/rman_del.log
connect target "sys/xxxxx_at_xxxxxprd-tcp"
connect catalog rman817/rman817_at_xxxxxrman-tcp
allocate channel for maintenence type disk;
crosscheck backup;
release channel;
allocate channel for maintenence type disk;
delete expired backup;
release channel;
allocate channel for maintenence type disk;
list backup;
release channel;
exit
>>> RStephenson_at_Ovid.com 02/27/2004 2:09:05 PM >>>
I already read that script, but I don't understand how it knows that I
want
to keep 90 days of retention for my backups. I'm sorry if I am
missing
something.
Thanks,
Rick Stephenson
From: Bobak, Mark [mailto:Mark.Bobak_at_il.proquest.com]
Sent: Friday, February 27, 2004 11:14 AM
To: oracle-l_at_freelists.org
Subject: RE: Rman 8i vs 9i question - delete obsolete
Rick,
Check out $ORACLE_HOME/rdbms/demo/rman1.sh for an example.
-Mark
-----Original Message-----
From: Rick Stephenson [mailto:RStephenson_at_Ovid.com]
Sent: Friday, February 27, 2004 1:07 PM
To: Oracle ListServ (oracle-l_at_freelists.org)
Subject: Rman 8i vs 9i question - delete obsolete
In 9i rman I can set the retention policy to whatever I want and delete
all
obsolete backups based on that setting.
I cannot find, however, a similar feature for 8i rman. Is there a way
to
set this, and if not, how does rman determine what an obsolete backup
is?
Thanks,
Rick Stephenson
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Fri Feb 27 2004 - 14:12:55 CST