Re: anyone have a decent purge script for 11g diag directories
Date: Sat, 15 Nov 2008 06:38:00 -0800 (PST)
Message-ID: <0fe406f3-b953-4be8-ab74-11e9b579b37b@p35g2000prm.googlegroups.com>
On Nov 15, 5:15 am, "jan.benjam..._at_gmail.com"
<jan.benjam..._at_gmail.com> wrote:
snip
> > Not only do we have the standard .trc files there are now .trm files
> > and probably various other things.
>
> > Maybe I am missing some basic concept like some parameter to set or
> > utility to use so that 11g databases will clean out and delete stuff
> > after a certain date in the diag structure.
>
> The new adrci command line tool could do this, look at the purge
> command:
>
> $ adrci
>
> ADRCI: Release 11.1.0.7.0 - Production on Sat Nov 15 11:16:48 2008
>
> Copyright (c) 1982, 2007, Oracle. All rights reserved.
>
> ADR base = "/app/oracle"
> adrci> help purge
>
> Usage: PURGE [[-i <id1> | <id1> <id2>] |
> [-age <mins> [-type ALERT|INCIDENT|TRACE|CDUMP|HM|
> UTSCDMP]]]:
>
> Purpose: Purge the diagnostic data in the current ADR home. If no
> option is specified, the default purging policy will be
> used.
>
> Options:
> [-i id1 | id1 id2]: Users can input a single incident ID, or a
> range of incidents to purge.
>
> [-age <mins>]: Users can specify the purging policy either to all
> the diagnostic data or the specified type. The data older than
> <mins>
> ago will be purged
>
> [-type ALERT|INCIDENT|TRACE|CDUMP|HM|UTSCDMP]: Users can specify
> what type of
> data to be purged.
>
> Examples:
> purge
> purge -i 123 456
> purge -age 60 -type incident
>
> adrci>
Now that is what I was thinking about and looking for!
Thank you very much ... I will check it out and report back results here.
Maybe we will get some kind of integration eventually so that we get something that can also trim various log files ( alert, listener, em etc ) automatically along with un-needed trace files, incidents, whatever.
Thanks John Received on Sat Nov 15 2008 - 08:38:00 CST