I have a script to do this (but not access to it at
the moment) but its basically egrep and awk to:
  -   grep for ORA-, ^Mon, ^Tue, ... ^Sat
  
-   results piped through awk which does:
     if $0 like ORA-, the print p, $0
     if $0 like Mon,Tue,...Sat, then p=substr($0,12)
hth
connor
  -   Sinardy Xing <SinardyXing_at_bkgcomsvc.com> wrote: >
Hi all,
 >
 > I am writing a script that can "grep "ORA-" from
 > alert log.
 >
 > I think it will be good if I can grep the time of
 > the error occur, can you please help me?
 >
 > If you are lazy to type please introduce me any
 > related unix function, I will do man "the function"
 > myself.
 >
 >
 > Thanks
 >
 > Sinardy
 > --
 > Please see the official ORACLE-L FAQ:
 > http://www.orafaq.net
 > --
 > Author: Sinardy Xing
 >   INET: SinardyXing_at_bkgcomsvc.com
 >
 > 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: 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).
 >
 
 
Connor McDonald
web: 
http://www.oracledba.co.uk
web: 
http://www.oaktable.net
email: connor_mcdonald_at_yahoo.com
"GIVE a man a fish and he will eat for a day. But TEACH him how to fish, and...he will sit in a boat and drink beer all day"
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: =?iso-8859-1?q?Connor=20McDonald?=
  INET: hamcdc_at_yahoo.co.uk
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: 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 Mon Feb 24 2003 - 08:58:59 CST