Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Here is what I am doing :ERROR at line 1: ORA-00001: unique constraint (TBUSOP_1UQ) violated
All Oracle errors start with the word ERROR, so it hits the word ERROR first before ORA-00001 .. so what I need only ignoring that error ORA-00001 . Can someone advice please? thanksopen ( logHndl, "$LogFileNm" ) or die ("Failed to open $LogFileNm"); while(<logHndl>) { # # Ignore the error with uniqe const # next if /^ORA-00001: unique constraint/; # # grep for keyword ERROR or ORA-ERR # push(@errors, grep (/ERROR|ORA-ERR|Fail|Unable/i, $_)); } close(logHndl);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: greping DB ERROR
by tachyon (Chancellor) on Jul 08, 2004 at 23:49 UTC | |
|
Re: greping DB ERROR
by chromatic (Archbishop) on Jul 08, 2004 at 21:04 UTC |