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: Need script to copy and then truncate/tail alert log

RE: Need script to copy and then truncate/tail alert log

From: <ddorr.cs_at_clearstream.com>
Date: Wed, 26 Jul 2000 17:32:00 +0200
Message-Id: <10570.113021@fatcity.com>


Why not simply move the file every day to alert_SID.log.MMDD ? Next time Oracle will have something to write to the file, it will recreate a new one.

> ----------
> From: Cherie_Machler_at_gelco.com[SMTP:Cherie_Machler_at_gelco.com]
> Reply To: ORACLE-L_at_fatcity.com
> Sent: Wednesday, July 26, 2000 17:40
> To: Multiple recipients of list ORACLE-L
> Subject: Need script to copy and then truncate/tail alert log
>
> Does anyone have a script that will copy over and then truncate or tail (I
> can't
> remember if it's tail)
> the alert log? Or something appropriate to keep our alert log to a day's
> worth
> of log information while
> keeping the file in the same directory (hopefully with a datestamp in the
> old
> log file name). Then we
> want to clean out the old log files on a weekly or daily basis.
>
> Thanks in advance for any help.
>
> Cherie
>
>
> --
> Author:
> INET: Cherie_Machler_at_gelco.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
Received on Wed Jul 26 2000 - 10:32:00 CDT

Original text of this message

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