You can use the following script to purge your Automatic Diagnostic Repository. The script provided will delete everything older than 1 day (1440 minutes). If you would like to maintain a week worth of information, set the -age option to be 10080.

 $ cat adr.ksh export CTL=adrci.ctl echo "show homes" |adrci |grep ^diag> $CTL 

The algorithm is simple. You determine what all your ADR homes are and loop through each one of them and purge log and trace files.


cat $CTL |while read HP do echo “Purging for HOMEPATH: $HP” adrci < [/code] Posted by Charles Kim, Oracle ACE Director