Batching Services

Status
Not open for further replies.

kinshuksunil

Broken In
Hi All

I am using Oracle 9i Enterprise Edition for a project I have to submit in college. Oravle 9i runs on the system in the form of some 5-6 services. As these are resource heavy and I dont have much resources to feed them, I have set these settings to "manual" instead of the default "automatic". And, everytime I have to work with Oracle, I have to manually start all of these services. Isn't there a way to start all of these files just by one click, say, in a batch file(*.bat) and similarly stop all of them.

What should i do?
Kinshuk
 

alib_i

Cyborg Agent
sorry .. i overlooked it some time ago ..

all the following is true for winxp

the command for starting a service is sc
so
sc start servicename will start a service
and
sc stop servicename will stop the service

the only thing to note here is that servicename may not exactly be the name of service which you see in 'services.msc'
ex. common name of ZoneAlarm service = "true vector internet monitor"
and keyname = "vsmon"
hence, to deal with this problem ... goto start->run->cmd
here type sc getkeyname "common name"
ex sc getkeyname "truevector internet monitor"
note down the name you get .. this name is your servicename

now make a batch file ..
write one command in one line
sc stop vsmon
sc stop servicename1
sc stop servicename2
sc stop servicename3
sc stop servicename4
....


I think i made it all clear....
post if have problems ..

------
alibi
 

alib_i

Cyborg Agent
just remember that all that i wrote is valid in WinXP
i dont know if it will work anywhere else or not ..
i have winxp and i've tried it .. it works

-----
alibi
 
OP
K

kinshuksunil

Broken In
Worx!!!!!!!!!!1

Hi All

Thanx a lot for the Help, buddy

it really WORX!!!!!!!!!!!!!!!!!!

and i asked a friend of mine to see whether it works on other OSes too ('cuz I use only XP) and he confirmed so for NT (though I dont believe him much)

Thanx again
Kinshuk
 
Status
Not open for further replies.
Top Bottom