foxidrive wrote:Do you wish to print a paragraph? We need to see more of your log, above and below.
Or are you trying to print just the date associated with one log entry
You can get all date and errors with this, assuming the dates all have SST in them
Erm i wanted to catch those ORA-ERROR and also print out the line above it (2 line before the error match) to show the timing .
Please further advice.
i wanted it to be
Tue Mar 12 10:47:24 SST 2013 ORA-00600: internal error code, arguments: [kcblasm_1], [103], [], [], [], [], [], []
the file format is :
Tue Mar 12 14:55:14 SST 2013
Thread 1 advanced to log sequence 162 (LGWR switch)
Current log# 6 seq# 162 mem# 0: /oradata/L1UAT2/redo06a.log
Current log# 6 seq# 162 mem# 1: /oradata/L1UAT2/redo06b.log
Tue Mar 12 15:03:20 SST 2013
Thread 1 advanced to log sequence 163 (LGWR switch)
Current log# 1 seq# 163 mem# 0: /oradata/OCEAN2/redo01a.log
Current log# 1 seq# 163 mem# 1: /oradata/OCAEN2/redo01b.log
Tue Mar 12 15:35:32 SST 2013
Thread 1 advanced to log sequence 164 (LGWR switch)
Current log# 2 seq# 164 mem# 0: /oradata/OCEAN2/redo02a.log
Current log# 2 seq# 164 mem# 1: /oradata/OCEAN2/redo02b.log
Wed Mar 13 07:10:22 SST 2013
Thread 1 advanced to log sequence 165 (LGWR switch)
Current log# 3 seq# 165 mem# 0: /oradata/OCEAN2/redo03a.log
Current log# 3 seq# 165 mem# 1: /oradata/OCEAN2/redo03b.log
Tue Mar 12 10:47:24 SST 2013
Errors in file /opt/ora10g/admin/OCEAN/udump/ocean_ora_27065.trc:
ORA-00600: internal error code, arguments: [kcblasm_1], [103], [], [], [], [], [], []