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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: catalog maintenance

RE: catalog maintenance

From: Mercadante, Thomas F <NDATFM_at_labor.state.ny.us>
Date: Tue, 07 May 2002 11:08:38 -0800
Message-ID: <F001.0045A36A.20020507110838@fatcity.com>


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



Information in this email is confidential and may be privileged. It is intended for the addressee only. If you have received it in error, please notify the sender immediately and delete it from your system. You should not otherwise copy it, retransmit it or use or disclose its contents to anyone.
Thank you for your co-operation.

--

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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Mercadante, Thomas F
  INET: NDATFM_at_labor.state.ny.us
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

Original text of this message

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