[Discuss] Shutting down Oracle hosted on Linux

Edward Ned Harvey (blu) blu at nedharvey.com
Sat Jan 26 11:35:33 EST 2013


> From: discuss-bounces+blu=nedharvey.com at blu.org [mailto:discuss-
> bounces+blu=nedharvey.com at blu.org] On Behalf Of Jerry Feldman
> 
> I think the best way is /etc/init.d/oracle_service.sh stop
> Don't know why the DBA used the long name. The best way is for me to use
> this script firstand make sure that Oracle is fully stopped then issue
> my script to shutdown all the servers.

But most importantly, this should happen automatically when you run the shutdown command.

I fully expect, unless somebody broke it in your system, there's a symlink
/etc/rc3.d/K10oracle_service --> /etc/init.d/oracle_service.sh

The shutdown script finds anything that starts with "K" and runs that with the "stop" argument.  End result should be exactly as you said:
/etc/init.d/oracle_service.sh stop

The shutdown script first sorts all the K scripts, executes each one in order.  So things numbered lower than 10 (in the example I wrote above) would be stopped before your oracle service, while things higher number stop later.




More information about the Discuss mailing list