DBAsupport.com Forums - Powered by vBulletin
Results 1 to 10 of 15

Thread: RMAN - removing old catalog entries

Threaded View

  1. #4
    Join Date
    Jan 2001
    Posts
    2,828
    Hi

    Does this work

    CHANGE BACKUPSETS COMPLETED BEFORE 'SYSDATE-30' UNCATALOG;

    if that doesnt work one other way of doing that would be

    http://www.orafaq.com/scripts/unix/purgecat.txt

    Just change the line
    echo "CHANGE BACKUPSET $key DELETE;" >>$CMDFILE

    in that script to
    echo "CHANGE BACKUPSET $key UNCATALOG;" >>$CMDFILE

    and also this line
    list backupset of database
    from time 'SYSDATE-3000' until time 'SYSDATE-$DAYSTOKEEP'

    Hmm Frank Nuade has done some smart MetaProgramming i beleive ;-)

    regards
    Hrishy
    Last edited by hrishy; 07-02-2008 at 05:03 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width