Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ls -1 /etc/rc3.d/[KS][0-9][0-9]*
ls -s /etc/init.d/mystartstop /etc/rc0.d/K99myserver
ls -s /etc/init.d/mystartstop /etc/rc1.d/K99myserver
ls -s /etc/init.d/mystartstop /etc/rc2.d/K99myserver
ls -s /etc/init.d/mystartstop /etc/rc3.d/S99myserver
ls -s /etc/init.d/mystartstop /etc/rcS.d/K99myserver
# Set ORA_HOME to be equivalent to the ORACLE_HOME from
# which you wish to execute dbstart and dbshut
# Set ORA_OWNER to the user id of the owner of the Oracle
# database in ORA_HOME
ORA_HOME=/oracle/8.1.6/
ORA_OWNER=oracle
if [ ! -f ${ORA_HOME}/bin/dbstart -o ! -d ${ORA_HOME} ]
then
echo "Oracle startup: cannot $1"
exit
fi
case "$1" in
'start')
# Start the Oracle databases:
echo "Starting Oracle Database"
/usr/bin/su - ${ORA_OWNER} -c "export ORACLE_HOME=${ORA_HOME}; ${ORA_HOME}/bin/dbstart ; /usr/bin/sleep 20 ; ${ORA_HO
ME}/bin/lsnrctl start"
;;
'stop')
# Stop the Oracle databases:
echo "Shutting Down Oracle Database"
/usr/bin/su - ${ORA_OWNER} -c "export ORACLE_HOME=${ORA_HOME}; ${ORA_HOME}/bin/lsnrctl stop ; ${ORA_HOME}/bin/dbshut"
;;
*)
# Invalid parameter
echo "ERROR: Oracle startup/shutdown error."
echo " Unknown parameter given to /etc/init.d/oracle \"$1\""
;;
esac