Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: How do you remove an Oracle service?

Re: How do you remove an Oracle service?

From: Rauf Sarwar <rs_arwar_at_hotmail.com>
Date: 18 Apr 2003 21:53:38 -0700
Message-ID: <92eeeff0.0304182053.5915728d@posting.google.com>


Frank <fvanbortel_at_netscape.net> wrote in message news:<3EA0555E.9030807_at_netscape.net>...
> Rauf Sarwar wrote:
> >>>
> >>>HOWEVER, services are completely managed by SCM (Service Control
> >>>Manager). You can use SCM to install, remove, start, stop, pause etc a
> >>>service. Some services also have interdependency with other services.
> >>
> >>A rarely used option, though. Much to my dislike. Why not start the
> >>underlying instance when portals HTTP server is started?
> >
> >
> > A rarely used option? What do you mean by that. SCM manages all
> > services on your system.
> >
>
> I meant the interdependency.
>
> >>>Just by hacking registry (as you mentioned) to remove a service is
> >>>definitely asking for trouble. Windows API advapi32.dll has functions
> >>>to interact with services in SCM... In particular DeleteService()
> >>
> >>So, you suggest I write a program? That should be part of the bundle!
> >>And it should be documented, too.
> >
> >
> > You don't "write" a program every time you want to do something. There
> > are already written tools out there that can be used. Heard of NT
> > resource kit?
> >
> >
> >>>function is used to mark a service for deletion from the SCM database.
> >>>There are NT resource kit tools like srvinstw.exe which use this
> >>>Windows API and can be safely used to remove a service. Going by your
> >>
> >>I have to buy extra options from the competition, then?
> >
> >
> > Most of the NT resource kit tools can be freely downloaded from many
> > sites.
>
> But ought to be bought. There's a licence fee to be paid (at least, that
> used to be the case when I used it. Maybe it's for free now.)
> >
> >>>logic, why use oradim to even install an Oracle SID service, why not
> >>>just regedit and create a new key in
> >>>HKLM\System\CurrentControlSet\Services?
> >>
> >>Because it's more efficient to use oradim. ;-)
> >
> >
> > It's not a matter of efiiciency... you HAVE to use oradim (or some
> > tool) that can talk to Windows API to install service in SCM.
> >
>
> Come on! First you tell me I might just as well create services
> by hand, then to go and use SCM (there's no SCM installed on my
> computer; tried Run-> scm); then there's a DeleteService() call
> in SCN (okay - so SCM is not a program, it's something with an
> API. I've to write a program that uses the API), and when I want
> to use oradim, it's not a matter of efficiency?!?
>
> We're stuck in an argument for the sake of an argument. I'm not
> happy with that, and will stop it by saying that everybody should
> use the tools he/she is familiar with.
> I will even admin there's a potential danger in using "tools"
> (mind the quotes...) as regedt32 or regedit because it's very easy
> to do something virtually irreversable.
> Yes, the use of regedit/regedt32 can make your computer useless!
>
> But so can any other tool that tampers with the heart of the O/S.
>
> So, kids, don't try this at home! Use what you're familiar with.
> Make up your own mind.
>
> And last but not least - have a happy Easter!

Obviously a good reading of Windows Architecture, Windows API's, MFC (Microsoft Foundation Classes) and of course Windows Services and SCM is definitely in order.

Regards
/Rauf Sarwar Received on Fri Apr 18 2003 - 23:53:38 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US