From: Judith Reed <jreed () wukon ! appliedtheory ! com>
To: tru64-unix-managers
Subject: How to get a K01script to run?
Date: Tue, 02 Jun 1998 19:18:54 +0000 [thread overview]
Message-ID: <96078712011381.tru64-unix-managers.marc@archive.invalid> (raw)
We are trying to startup and shutdown oracle automatically on reboots on our
DU 4.0d server, oracle v7.3.4.
We have /sbin/rc3.d/S99oracle -> /sbin/init.d/oracle, and this runs on startup,
but /sbin/rc0.d/K01oracle -> /sbin/init.d/oracle does not run on shutdown.
The /sbin/init.d/oracle script contains procedures based on $1 being either
'start' or 'stop' as in the excerpt below (edited for brevity), and it works
on start, but not on start. Can anyone point me to what to do to get this to
run during reboots, shutdowns, etc?
TIA
--
Judith Reed
jreed@appliedtheory.com
===========================================
case $1 in
'start')
# start listener
if [ -f $ORACLE_HOME/bin/tnslsnr ] ;
then
$ORACLE_HOME/bin/lsnrctl start >> $LOG 2>&1 &
fi
;;
'stop')
# stop listener
if [ -f $ORACLE_HOME/bin/tnslsnr ] ;
then
$ORACLE_HOME/bin/lsnrctl stop >> $LOG 2>&1 &
fi
$ORACLE_HOME/bin/dbshut >> $LOG 2>&1
;;
esac
#
reply other threads:[~1998-06-02 19:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox