Here is what we use: Ron Smith
@ECHO ON REM ************************************************************************* REM * This script will scan the Oracle alert log and look for various error * REM * messages. The messages are then sent to the Oracle NT DBA's. * REm * The email is sent using the BLAT utility so the utility must already * REM * exist on the server and be located in the path. * REM * * REM * Two parameters are required: * REM * * REM * ALERTLOG - The fully qualified name of the Oracle Alertlog. * REM * Example: c:\orant\rdbms73\trace\xrt1alrt.log * REM * * REM * SID - A descriptive name of the sid or sid / server combination. This * REM * parameter is used to create temporary files and as the subject * REM * in the email message. * REM * Example: XRT1_Corp24 * setlocal set ALERTLOG=%1 set SID=%2 REM ************************************************************************* REM * Check for existance of files REM ************************************************************************* if exist c:\%SID%tempx.log del c:\%SID%tempx.log if exist %ALERTLOG% (copy %ALERTLOG% c:\%SID%alrt.log goto :FINDSTRING) ECHO * No "%ALERTLOG%" was found * >> c:\%SID%tempx.log ECHO * >> %ALERTLOG%_listing.txt goto :SENDMSG REM ************************************************************************* REM * Look for error messages REM ************************************************************************* :FINDSTRING findstr /B "ORA-" C:\%SID%alrt.log >> c:\%SID%tempx.log findstr /B "OSD-" C:\%SID%alrt.log >> c:\%SID%tempx.log findstr /B "O/S-" C:\%SID%alrt.log >> c:\%SID%tempx.log findstr /B "TNS-" C:\%SID%alrt.log >> c:\%SID%tempx.log REM ************************************************************************* REM * Send message REM ************************************************************************* :SENDMSG blat.exe c:\%SID%tempx.log -t [EMAIL PROTECTED] -s "%SID% Alert Log Scan" pause endlocal exit quit -----Original Message----- Sent: Tuesday, February 05, 2002 10:11 AM To: Multiple recipients of list ORACLE-L Greetings, We recently implemented an Oracle 8.1.7 database on NT4.0. Since this is the first for our company, I need some help setting up the monitoring procedure. On the unix side I have a Korn script that parses the alert log and page/E-mail me if errors are found. But NT is a different beast and I don't know much about the scripting side of things ( other than it's pretty lame :) ). So does anyone out there have a script/tool handy? I think I have better things to do than picking up an NT scripting book just for this one database. Also, does anyone have good experience with MKS? Our NT administrator is not crazy about installing it on our production server. TIA Dennis -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Smith, Ron L. INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).