Start a service using a short cut on Desktop

G

Guest

Hi,

I have installed Oracle on my laptop computer for reference. I donot want
these services started automatically when I start the computer. Hence I made
the services as manual as the option for starttype. But when I want to start
Oracle I donot want to go into services directory and start the services.
Instead I want to have a batch file (or a shortcut on the desktop)and run the
file only when I need it. I found the service file from services (using path
location on the service properties), but I donot know what suffix I have to
put after the file as to start up the service.
The help is weel appreciated from one and all.
Thanks
 
G

Guest

You don't launch a service by calling its executable. You do so by way of a

NET START <servicename> command.

The servicename is often the exe's name without the extension, you can find
this in services.msc if in doubt.
 
G

Guest

Thanks for the reply........


The location of the executable is at

c:\oracle\product\9\db_1\bin\ORACLE.EXE CHANIKYA

and suffix Chanikya is the instance. The display name of the service is

OracleServiceChanikya

I tried NET START command at the location c:\ and also the directory where
the executable is. But the service is not getting started as I checked
services.msc. I tried this step before also but the service is not getting
started.

Help is appreciated.
 
M

mhc

cndesu said:
Thanks for the reply........


The location of the executable is at

c:\oracle\product\9\db_1\bin\ORACLE.EXE CHANIKYA

and suffix Chanikya is the instance. The display name of the service is

OracleServiceChanikya

I tried NET START command at the location c:\ and also the directory where
the executable is. But the service is not getting started as I checked
services.msc. I tried this step before also but the service is not getting
started.

Help is appreciated.
Try the following command: SC START OracleServiceChanikya

And to stop the service: SC STOP OracleServiceChanikya

The NET command is not reliable for dealing with services. The SC command is the
command-line version of the services.msc program, and it is much better suited
for these circumstances.
 
G

Guest

mhc said:
Try the following command: SC START OracleServiceChanikya

And to stop the service: SC STOP OracleServiceChanikya

The NET command is not reliable for dealing with services. The SC command is the
command-line version of the services.msc program, and it is much better suited
for these circumstances.

Thank You very much and it is working.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top