| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: any script to parse alert log ?!
Try this (Solaris):
grep ^---- 'alert.txt' && /usr/ucb/mail -s "ALERT - " fred <
'alert.txt'
The file 'alert.txt' is a spool file generated from an Oracle SQL script.
If a non-null result arises, an alert condition exists, therefore (with
heading turned on of course) there will be the underline characters
('-')present from the header display.
grep looks for that in the spool file. If it finds it - mails file to fred.
If not - skips.
peter
edinburgh
> -----Original Message-----
> From: Prem Khanna J [mailto:[EMAIL PROTECTED]
> Sent: 07 July 2003 10:39
> To: Multiple recipients of list ORACLE-L
> Subject: any script to parse alert log ?!
>
>
> Guys,
>
> I need a parse alert log and mail me if there is any error.
> Hope u guys would have some script for the same.
>
> i have 8i and 9i instances spread across windows 2000 network.
>
> even if u guys have script for unix,just pass it on to me.
> let me modify and try it.
>
> Thanks and Regards,
> Jp.
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Prem Khanna J
> INET: [EMAIL PROTECTED]
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (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).
>
*********************************************************************
This e-mail message, and any files transmitted with it, are
confidential and intended solely for the use of the addressee. If
this message was not addressed to you, you have received it in error
and any copying, distribution or other use of any part of it is
strictly prohibited. Any views or opinions presented are solely those
of the sender and do not necessarily represent those of the British
Geological Survey. The security of e-mail communication cannot be
guaranteed and the BGS accepts no liability for claims arising as a
result of the use of this medium to transmit messages from or to the
BGS. . http://www.bgs.ac.uk
*********************************************************************
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Robson, Peter
INET: [EMAIL PROTECTED]
Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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 Mon Jul 07 2003 - 05:28:51 CDT
![]() |
![]() |