How to start / stop databases services by batch

Unanswered Question
Apr 22nd, 2009

I've tried to find a solution in this forum, but unfortunatly nothing found.


I'd like make batch pre and post backup job to stop / start manualy some service.


Here's the service i'd like to stop


F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvRMEDbEngine

F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvANIDbEngine

F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvOpsxmlDbEngine

F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvCmfDbEngine

F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvEPMDbEngine

F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvFHDbEngine

F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvINVDbEngine

F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvIpmDbEngine


but that's doesn't work in the net stop command.


i've error " bad syntax command "


I've try :

net stop F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvIpmDbEngine


net stop "F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe" -hvIpmDbEngine




net stop " F:\PROGRA~1\CSCOpx\objects\db\win32\dbsrv9.exe -hvIpmDbEngine "


net stop dbserv9.exe

net stop dbsrv9.exe -hvIpmDbEngine


Is there any solution to fix it ?


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Marvin Rhoads Wed, 04/22/2009 - 04:00

Cisco uses a daemon manager to manage the various services as a whole. See the Common Services User Guide (http://www.cisco.com/en/US/products/sw/cscowork/ps3996/products_user_guide_list.html), Chapter 4. To wit:


"The Daemon Manager provides the following services:

• Maintains the startup dependencies among processes.

• Starts and stops processes based on their dependency relationships.

• Restarts processes if an abnormal termination is detected.

• Monitors the status of processes.

The Daemon Manager is useful to applications that have long-running processes that must be monitored

and restarted, if necessary. It is also used to start processes in a dependency sequence, and to start

transient jobs."


...



"To restart Daemon Manager on Windows:

Step 1 Go to the command prompt.

Step 2 Enter net stop crmdmgtd to stop the Daemon Manager.

Step 3 Enter net start crmdmgtd to start the Daemon Manager."



Stopping and restarting services manually is not a generally a supported/recommended approach.

rdelapen Wed, 04/22/2009 - 08:49

To stop a single process on a CLI basis you use:


pdterm


pdterm RMEDbEngine


to start a single process use:


pdexec


pdexec FHDbEngine


and to view the status of a single process:


pdshow


pdshow OpsxmlDbEngine


NOTE: Processes are caption sensible !!

Actions

This Discussion