Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: catalog maintenance
Fwzia,
I use the following to generate commands to delete old backups (more than 90 days old)from the Rman Catalog. The output from the script (rman_delete.rcv) is fed into Rman to clean up the catalog. I run this job once a month.
Hope this helps
set heading off
set feedback off
set newpage 1
set pagesize 999
set linesize 60
spool rman_delete.rcv
select 'allocate channel for maintenance type ' || ''''
|| 'SBT_TAPE' || '''' || ';' from dual;
select 'change backuppiece '||bp.bp_key||' delete;'
from rc_backup_piece bp,rc_database db
where db.name = upper('%1')
and bp.db_id = db.dbid
and bp.start_time < sysdate-90
/
select 'exit;' from dual;
spool off
exit
Tom Mercadante
Oracle Certified Professional
-----Original Message-----
Sent: Tuesday, May 07, 2002 11:29 AM
To: Multiple recipients of list ORACLE-L
Hi,
Does anyone know of any usefule scripts/tips to effectively maintain the rman catalog?? Most notably to delete very old entries???
Thanks in advance
Fwzia
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Malik, Fawzia
INET: Fawzia.Malik_at_bskyb.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue May 07 2002 - 14:08:38 CDT