Re: Oracle Auto-Shutdown/SCO UNIX
Date: 1995/12/15
Message-ID: <DJnFMK.131_at_bokonon.ussinc.com>#1/1
In article <4a47li$oa7_at_Venus.mcs.com> amit_at_MCS.COM (Amit Srivastava) writes:
$The way I have been able to do it with SCO is:
$in the
$/etc/shutdown script I have:
$su oracle -c /usr/oracle/bin/dbshut
Which should work, yes, but it's probably not the best way of doing it. The next time you upgrade your OS, you will find that it no longer shuts down Oracle because /etc/shutdown has been replaced with the new version from your new OS version.
Look at the /etc/rc0.d and /etc/rc2.d directories. When shutting down or going multiuser, respectively, the system searches these directories and executes any executable files within them. The order of execution is controlled by the files' names. Add your own shell script to the /etc/rc0.d directory to execute the above command; give it whatever name you like. So long as SCO doesn't pick that name for a shutdown script in a future release (and if you call it something like K80OracleShutdown the chances of that are pretty slim), it will continue to exist and continue to work through OS upgrades.
-- stephen_at_bokonon.ussinc.com ...!{xrtll,gts.org}!bokonon!stephen ---------------------------------------------------------------------------- Stephen M. Dunn, CNE, ACE, Sr. Systems Analyst, United System Solutions Inc. 104 Carnforth Road, Toronto, ON, Canada M4A 2K7 (416) 750-7946 x251Received on Fri Dec 15 1995 - 00:00:00 CET