The log file where the tex to be searched will be like below text.
----------------------------------------------
SV=0 C=-121212 T=saple E=201210 : : Tue Jan 3 23:22:29 2012 datevalchkCursor(in_date) : ORA-01839: date not valid for month specified
ORA-06512: at "RD.prcschktype", line 4567
ORA-06512: at line 1
==> (888 ) : datevalchkCursor(in_date) : ORA-01839: date not valid for month specified
ORA-06512: at "RD.prcschktype
SV=0 C=-121212 T=saple E=201211 : completed successfully
SV=0 C=-121212 T=saple E=201212 : completed successfully
SV=0 C=-121212 T=saple E=201213 : completed successfully
SV=0 C=-121212 T=saple E=201214 : completed successfully
SV=0 C=-121212 T=saple E=201215 : : Tue Jan 3 23:22:29 2012 datevalchkCursor(in_date) : ORA-01839: date not valid for month specified
ORA-06512: at "RD.prcschktype", line 4567
ORA-06512: at line 1
==> ((888 ) : datevalchkCursor(in_date) : ORA-01839: date not valid for month specified
ORA-06512: at "RD.prcschktype
SV=0 C=-121215 T=maple E=201217 : completed successfully
SV=0 C=-121216 T=aples E=201218 : completed successfully
SV=0 C=-121217 T=asaple E=201219 : completed successfully
SV=0 C=-121218 T=sapple E=201220 : completed successfully
SV=0 C=-121212 T=saple E=201210 : : Tue Jan 3 23:22:29 2012 dataval(inVal1,inVal2) : Err 62007: SQL Error: 99999 ORA-24338: Statement Handle not Executed
ORA-06512: at "prto.dttype", line 67475
ORA-06512: at line 1
==> ((888 ) : dataval(inVal1,inVal2) : ORA-24338: statement handle not executed
ORA-06512: at "prto.dttype
SV=0 C=-5657 T=maple E=201217 : completed successfully
SV=0 C=-8901 T=aples E=201218 : completed successfully
SV=0 C=787977 T=asaple E=201219 : completed successfully
SV=0 C=787977 T=sapple E=201220 : completed successfully
getData(io_val) : ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "rd.dataret", line 116
ORA-06512: at line 1
==> ((888 ) : getData(io_val) : ORA-01422: exact fetch returns
V=0 C=-56579 T=maplew E=201217 : completed successfully
SV=0 C=-8905 T=aplesd E=201218 : completed successfully
SV=0 C=787974 T=asaplef E=201219 : completed successfully
SV=0 C=787976 T=wasappl E=201220 : completed successfully
Below is the exception file that conatins the text blocks that needs to be searched in the log file.
---------------------------------------------------------
<<BEGIN>>
datevalchkCursor(in_date) : ORA-01839: date not valid for month specified
ORA-06512: at "RD.prcschktype", line 4567
ORA-06512: at line 1
==> (888 ) : datevalchkCursor(in_date) : ORA-01839: date not valid for month specified
ORA-06512: at "RD.prcschktype
<<BEND>>
<<BEGIN>>
ORA-24338: Statement Handle not Executed
ORA-06512: at "prto.dttype", line 67475
ORA-06512: at line 1
==> ((888 ) : dataval(inVal1,inVal2) : ORA-24338: statement handle not executed
ORA-06512: at "prto.dttype
<<END>>
--------------------------------
The expected output is the lines in the log files, other than the lines that contains the blocks of text in the exception file
thanks in advance
santhu