|
tech
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Start a service using a short cut on DesktopHi,
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 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. 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. -- Show quoteChanikya "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. cndesu wrote:
Show quote > Thanks for the reply........ Try the following command: SC START OracleServiceChanikya> > > 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. > > 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.
Show quote
"mhc" wrote: Thank You very much and it is working.> 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. > |
|||||||||||||||||||||||