Batching Services

Discussion in 'QnA (read only)' started by kinshuksunil, Dec 4, 2004.

Thread Status:
Not open for further replies.
  1. kinshuksunil

    kinshuksunil New Member

    Joined:
    Dec 4, 2004
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    New Delhi, India
    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
     
  2. OP
    OP
    kinshuksunil

    kinshuksunil New Member

    Joined:
    Dec 4, 2004
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    New Delhi, India
    Pls Help

    Are bhai logo, koi to madad karo yaar....
     
  3. alib_i

    alib_i New Member

    Joined:
    Jun 24, 2004
    Messages:
    1,191
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    omnipresent
    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
     
  4. OP
    OP
    kinshuksunil

    kinshuksunil New Member

    Joined:
    Dec 4, 2004
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    New Delhi, India
    Thanks

    Thanks

    I'll try the solution and let you know.

    Thanks again.

    Kinshuk
     
  5. alib_i

    alib_i New Member

    Joined:
    Jun 24, 2004
    Messages:
    1,191
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    omnipresent
    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
     
  6. OP
    OP
    kinshuksunil

    kinshuksunil New Member

    Joined:
    Dec 4, 2004
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    New Delhi, India
    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
     
  7. alib_i

    alib_i New Member

    Joined:
    Jun 24, 2004
    Messages:
    1,191
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    omnipresent
    anytime man .. :)

    -----
    alibi
     
Thread Status:
Not open for further replies.

Share This Page