orcun_turkec
asked on
Windows batch script to check if Oracle Services have been stopped
Hi experts,
I' m using Oracle 11G on Windows 98. I need a script to check several oracle services in windows. I want to be informed if their status is " Stopped" .
I just need a message variable to be set like ' Oracle Job Scheduler is not working ' when the status of the OracleJobSchedulerORCL service ( my sid is ORCL ) is " Stopped ".
Then I' ll link them with an e-mail script.
ASKER
Hi Gatorvip,
Thank you for the script, I think at the row 12 with the command ' objService.StartService()' the service is restarted. I don' t want to start the service but want to create variable like
service_message and the value of that variable like ' Oracle Service is not working in computername'.
There are many servers and I will apply this script manually so computername is important. How can I create that message assigning a variable ?
Thank you for the script, I think at the row 12 with the command ' objService.StartService()'
service_message and the value of that variable like ' Oracle Service is not working in computername'.
There are many servers and I will apply this script manually so computername is important. How can I create that message assigning a variable ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you
You're welcome :)
Wow, that's not something you hear every day. Are you sure it's 98 and not something else, like Windows 2000+ (including 2008)?
If it's a more recent OS, then the following VBScript could work for you:
Open in new window