Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Best way to handle Oracle shutdowns from Unix script
In article <01bcd8c2$b7c00100$269014ce_at_hamilton.qvc.com> Chuck Hamilton, Xchuckh_at_dvol.com writes:
>I wouldn't do it with my database! By killing oracle background processes
>this way you're just asking for trouble. A better way is to:
>
>1. shutdown abort
>2. startup in restricted mode
>3. shutdown immediate or normal
Uh, 'shutdown abort' is also asking for trouble - it may not be possible to restart your DB afterwards. You should only use this in case of an emergency.
Somebody also mentioned dbshut - this uses 'shutdown normal', and will wait for current connections to terminate. Most other solutions also neglect the associated RDBMS processes like SQL*Net listeners, which can create confusion for people trying to connect. A complete database shutdown script does these things:
You might also want to do other stuff in there as well, such as clean up log files, backup control files, and other housekeeping, but this is the basic process.
![]() |
![]() |