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...
the issue is if the log file contains the below block of text , then ignore it(we can ignore spaces or tab) . If it contain only a portion of it , then we should not skip it.
Oracle error occured
ORA-023233 - error message
ORA-023232
Similarly there will be multiple error message blocks. So...
Iam new to the unix shell scripting and the person who was taking are of unix shell left. So i started learning it.
earlier the requinrement was to just remove one of the error message from the log file and i created the below entry in the script . the exception_log file was contaning ony one...
I have a file that contain multiple text blocks. This block of text will be enclosed by block separators. For Eg. Below is the a sample text block file
<<begin>>
Oracle error occured
ORA-023233 - error message
ORA-023232
<<end>>
<<begin>>
PL-03434 - error message
ORA-023232
<<end>>
The above...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.