I want to extract Date,Time and Error (ORA-) from error log file as given below.
Sun Apr 28 11:56:56 2008
ORA-01555 caused by SQL statement below (Query Duration=26748 sec)
Wed Apr 29 00:07:33 2008
Completed checkpoint up to ABC [0x15295.2.10], SCN: 0x089e.b4b72add
Wed Apr 29 00:09:48 2008
Beginning log switch checkpoint up to ABC [0x15296.2.10], SCN: 0x045489e.b62bsdd10f6
Wed Apr 29 02:51:58 2008
ORA-000060: Deadlock detected. More info in file /dborafiles/abc/QCDE/admin/udump/aaa_ora_20389.trc.
Wed Apr 29 03:08:32 2008
ABBRC1: Evaluating archive log 3 thread 1 sequence 86703
Need to extract errors(ORA-) and date,time in daily basis.
I cann't use "grep -A/B" as using Solaris-9.
Pls suggest me.
Thanks,
gohappy