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

Home -> Community -> Usenet -> c.d.o.server -> Re: Automatic Shutdown on NT 4.0

Re: Automatic Shutdown on NT 4.0

From: Steve Haynes <steve_at_rwx777.demon.co.uk>
Date: Fri, 21 Aug 1998 18:24:27 +0100
Message-ID: <N6raiEAL1a31EwXS@rwx777.demon.co.uk>


In article <6rjfat$23i$1_at_storm.comstar.ru>, George Mikeladze <gio_at_omega.ru> writes
>You can simply write an application (it could be a service or be started by
>service) that run in background, get the notification about system shutdown
>and shuts down oracle.
>

No you can't, I tried.
NT won't let you create a new thread or process once the shutdown has started. Which means you can't invoke shutdown immediate etc. Even if you pre-spawned svrmgr, the connection would create a new thread in oracle80.exe, and even if you pre-connected svrmgr then the db may be bounced prior to the shutdown.
I believe oracle have an unpublished lib which you could link to and thus safely perform the shutdown in the same thread but... its not published. In any case NT only allows you 20 secs to do something before it kills all processes and this may not be long enough to shutdown.
Feel free to correct me and I'll write the service. Steve
--
"The floggings will continue until morale improves." Received on Fri Aug 21 1998 - 12:24:27 CDT

Original text of this message

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