Code: Select all
findstr "ORA-[0-9]" alert_%%A.log>>%output-file%
in unix i can catch the return error:
Code: Select all
if [ $? -ne 0 ]; then echo "there is no ORA-ERROR found on alert log" > $ERRLOG
Question: how can i do that in DOS / batch file?