Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Windows batch script to check if Oracle services have been  restarted

Posted on 2010-11-22
3
Medium Priority
?
812 Views
Last Modified: 2012-05-10

Hi experts,

I' m using Oracle 11G on Windows 98.  I need  several scripts to check  the Oracle Services on Windows.  My Oracle SID is ORCL and when  the Oracle  services are restarted  I want to be informed  with a message like ' OracleServiceORCL' s been started at time 17:00'  for instance.
The names of the services are ;
OracleServiceORCL, Oracle.jobSchedulerORCL, OracleORCLTNSListener and
Oracle ORCL VSS Writer Service.  

The message can be inserted into a variable.  I' ll link it with an e-mail script.


 
0
Comment
Question by:orcun_turkec
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 20

Accepted Solution

by:
gatorvip earned 1500 total points
ID: 34196218
Are you looking for a different answer than the one here?

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Q_26631107.html
0
 

Author Comment

by:orcun_turkec
ID: 34202948

Yes,  In this script  I want to be informed when services are restarted.  But the link you sent is  about the script to check the services of which status is  stopped.  
0
 

Author Closing Comment

by:orcun_turkec
ID: 34391428
Thank you
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question