Home All Groups Group Topic Archive Search About

Start a service using a short cut on Desktop

Author
21 Oct 2007 4:19 PM
cndesu
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
--
Chanikya

Author
21 Oct 2007 10:37 PM
Anteaus
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.
Author
21 Oct 2007 11:42 PM
cndesu
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.


--
Chanikya


Show quote
"Anteaus" wrote:

> 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.
Author
22 Oct 2007 10:29 PM
mhc
cndesu wrote:
Show quote
> 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.
Author
24 Oct 2007 1:14 AM
cndesu
Show quote
"mhc" wrote:

> cndesu wrote:
> > 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.
>

Thank You very much and it is working.

AddThis Social Bookmark Button