From oracle-l-bounce@freelists.org Fri Sep 3 15:41:23 2004 Return-Path: Received: from air189.startdedicated.com (root@localhost) by orafaq.com (8.11.6/8.11.6) with ESMTP id i83KfLo16402 for ; Fri, 3 Sep 2004 15:41:21 -0500 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air189.startdedicated.com (8.11.6/8.11.6) with ESMTP id i83KfLI16397 for ; Fri, 3 Sep 2004 15:41:21 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 4D6A172C7A8; Fri, 3 Sep 2004 15:43:42 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29729-31; Fri, 3 Sep 2004 15:43:42 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id AB31072C52A; Fri, 3 Sep 2004 15:43:41 -0500 (EST) X-Original-To: oracle-l@freelists.org Delivered-To: oracle-l@freelists.org In-Reply-To: <543DF856D23431489D4B8028C300FBAB08AC942C@exchsen0a1mb> To: thomas.mercadante@labor.state.ny.us Cc: "'oracle-l@freelists.org'" , oracle-l-bounce@freelists.org Subject: RE: trace file cleanup MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004 Message-ID: From: Jared.Still@radisys.com Date: Fri, 3 Sep 2004 13:45:26 -0700 X-MIMETrack: Serialize by Router on DCBlackBerry/Radisys_Corporation/US(Release 6.0.3|September 26, 2003) at 09/03/2004 01:45:23 PM, Serialize complete at 09/03/2004 01:45:23 PM Content-type: text/plain X-Virus-Scanned: by amavisd-new at freelists.org Content-Transfer-Encoding: 8bit X-archive-position: 9146 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: Jared.Still@radisys.com Precedence: normal Reply-To: Jared.Still@radisys.com X-list: oracle-l X-Virus-Scanned: by amavisd-new at freelists.org oracle-l-bounce@freelists.org wrote on 09/03/2004 07:43:36 AM: > Bryan, > > I keep them for 15 days and then delete them. I use the following to clean > them up: > > find $UDUMP_DIR -mtime +15 -print -exec rm {} \; > > The $UDUMP_DIR is an environmental pointing to the udump directory. I do > the same thing in the Bdump directory (renaming the alert log with a date > included in the file name). I keep files up to 30 days in this directory. > Be sure to do some sanity checks on the $UDUMP var before running the find. And for goodness sakes, stop using -exec and use xargs: find $UDUMP_DIR -mtime +15 -print | xargs rm *Much* less CPU/memory intensive. Jared -- To unsubscribe - mailto:oracle-l-request@freelists.org&subject=unsubscribe To search the archives - http://www.freelists.org/archives/oracle-l/