Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Start-up script for Unix boxes
Having been involved with the installation of Oracle 7.3.x on numerous
Unix boxes I've become aware of a service-critical problem, which, while
fairly easy to fix, makes me wonder why Oracle hasn't done something about it...
Upon reboot a Unix (Solaris) box starts those services and applications which have 'S<xx><app>' scripts in the '/etc/rc<y>.d' directories, where
<xx> is a number between 20 and 99, <app> is the name of the application, and <y> specifies the run-level. So for Oracle you might expect to see a file called something like 'S98oracle' in the '/etc/rc3.d' directory for example. However, this is not the case, and it means that whenever the box is rebooted Oracle is NOT restarted, and hence any applications which rely on it will not start either.
So, does anyone know why the Oracle installation does not create this file? And, if you have created one which is different from that below I'd like to hear from you.
Cheers,
Mark.
/etc/rc2.d/S98oracle
#!/bin/sh
case $1 in
'start') su - oracle -c 'lsnrctl start' su - oracle -c 'dbstart'
;;
'stop') su - oracle -c 'dbshut' su - oracle -c 'lsnrctl stop'
;;
*) echo "usage: oracle start|stop"
;;
exit 0; Received on Thu Nov 05 1998 - 05:14:37 CST
![]() |
![]() |