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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: file alert

RE: file alert

From: Mercadante, Thomas F <thomas.mercadante_at_labor.state.ny.us>
Date: Mon, 4 Oct 2004 13:04:52 -0400
Message-ID: <C9995D8C5E0DDA4A8FF9D68EE666CE07A7F92C@exchsen0a1ma>


Seema,

Why don't you just rename the alert file once a week? Something like this:

BDUMP_DIR=/ora1/u0001/WTWD/bdump
RUNDATE=`date '+%m%d%y'`
find $BDUMP_DIR -mtime +15 -print -exec rm {} \; mv $BDUMP_DIR/alert_WTWU.log $BDUMP_DIR/alert_WTWU_${RUNDATE}.log

I actually rename mine daily and purge the old files that are over 15 days old.

Hope this helps.

Tom Mercadante
Oracle Certified Professional

-----Original Message-----

From: Seema Singh [mailto:oracledbam_at_hotmail.com] Sent: Monday, October 04, 2004 12:20 PM
To: oracle-l_at_freelists.org
Subject: file alert

Hello,
I want to setup scripton linux whenever alert log >1GB we have to get alert.Does anyone send similar kidn of script ? when I'm executing following command its show error

frees1=`du -sk /alert logdestination/alert_sid.log| tail -1 | awk '{printf "%s\n",$2}'`; export frees1
thanks
-Seema



Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

--

http://www.freelists.org/webpage/oracle-l
--

http://www.freelists.org/webpage/oracle-l Received on Mon Oct 04 2004 - 12:00:27 CDT

Original text of this message

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