Re: anyone have a decent purge script for 11g diag directories
Date: Sat, 15 Nov 2008 06:38:00 -0800 (PST)
On Nov 15, 5:15 am, "jan.benjam..._at_gmail.com" <jan.benjam..._at_gmail.com> wrote:
> > 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
> $ adrci
> ADRCI: Release 220.127.116.11.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|
> Purpose: Purge the diagnostic data in the current ADR home. If no
> option is specified, the default purging policy will be
> [-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
> ago will be purged
> [-type ALERT|INCIDENT|TRACE|CDUMP|HM|UTSCDMP]: Users can specify
> what type of
> data to be purged.
> purge -i 123 456
> purge -age 60 -type incident
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