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

Home -> Community -> Usenet -> c.d.o.server -> Re: How to clear archived logfiles correctly?

Re: How to clear archived logfiles correctly?

From: Bob Rahe <bob_at_hobbes.dtcc.edu>
Date: 16 Jul 2001 19:52:35 GMT
Message-ID: <9ivgm3$ss8$1@apache.dtcc.edu>

In article <vuu4ltocf4t4pvtolj97m8rjrb586ks3vl_at_4ax.com>, Violin <violin.hsiao_at_mail.pouchen.com.tw> wrote:
>Dear All,
 

>I have a database version 8.1.6 on HP-UX 11.0.
>We have to backup database every day.
 

>I want to backup with alter tablespace begin/end backup scripts.
>But after backup completed,I need to clear some aged out archived
>logfiles for enough storage.
 

>Assuming I want to keep only one weeks archived logfiles.
 

>My scenario is:
>/u01/hotbackup is the directory name for daily hot backup tablespaces.
>/u02/archive is the directory name for log_archive_dest
>
>I need some scripts for rm aged out archived logfiles every day.
>(older than one week)
>
>Maybe some body has good samples for this.
>Appreciate for any suggestions.

  We use the following at the end of our dumps. It assumes you have archivelogs named ending in .arc and they are duplexed onto two file systems /u05 and /u06:

    # Remove old archive log files (> 7 days)

       find /u05 -atime +7 -name "*.arc" -exec rm {} \;
       find /u06 -atime +7 -name "*.arc" -exec rm {} \;

  Hope that helps,

   Bob

-- 
----------------------------------------------------------------------------
|Bob Rahe, Delaware Tech&Comm Coll. /                                      |
|Computer Center, Dover, Delaware /                                        |
|Internet: bob_at_dtcc.edu  (RWR50) /                                         |
----------------------------------------------------------------------------
Received on Mon Jul 16 2001 - 14:52:35 CDT

Original text of this message

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