Any idea how to monitor an Oracle DB on Windows Server?
I have 1 instance of Oracle DB 19c running on a windows server.
Coming from a mainly Linux & Unix platform I'm not sure how do write a batch file to monitor the database. So currently I'm running my monitoring scripts through another Unix server below is 1 of my scripts which will monitors for any errors recorded in the Alert log.
Can anyone help me to convert this to a windows batch file so I could scheduled it directly on the windows server?
export ORACLE_HOME=/u01/ora01/oracle/product/18.0.0/dbhome_1
export ORACLE_SID=$1
export PATH=$PATH:$ORACLE_HOME/bin
SUBJECT="$ORACLE_SID:WARNING:Oracle_error_in_alert.log"