Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Q: Starting Oracle Web Server 1.0.2

Re: Q: Starting Oracle Web Server 1.0.2

From: Evan Splett <splette_at_nutat.com>
Date: 1997/02/19
Message-ID: <330B1BC4.78BF@nutat.com>#1/1

I recently set this up on a client site with the same versions of the software
that you are using, and it was working. I will do some checking next time I am
on site.

Here is a copy of my startup script:

#!/sbin/sh
#
# Oracle startup script - copied from /sbin/init.d/template
# then edited as per pg 5-14 of the Oracle HP installation guide

PATH=/usr/sbin:/usr/bin:/sbin
export PATH

rval=0

set_return() {

	x=$?
	if [ $x -ne 0 ]; then
		echo "EXIT CODE: $x"
		rval=1	# script FAILed
	fi

}

case $1 in
'start_msg')

# Emit a _short_ message relating to running this script with
# the "start" argument; this message appears as part of the checklist.

	echo "Start Oracle"
	;;

'stop_msg')

# Emit a _short_ message relating to running this script with
# the "stop" argument; this message appears as part of the checklist.
echo "Stop Oracle" ;;

'start')

# source the system configuration variables

	if [ -f /etc/rc.config.d/oracle ] ; then
		. /etc/rc.config.d/oracle
	else
		echo "ERROR: /etc/rc.config.d/oracle  MISSING"
                exit 2
	fi


# Check to see if this script is allowed to run...
if [ "$ORACLE_START" != 1 ]; then rval=2 else echo "Starting Oracle" su - oracle -c dbstart su - oracle -c "lsnrctl start" su - oracle -c "wlctl start 8888" set_return fi ;; 'stop')
# source the system configuration variables
if [ -f /etc/rc.config.d/oracle ] ; then . /etc/rc.config.d/oracle else echo "ERROR: /etc/rc.config.d/oracle MISSING" exit 2 fi
# Check to see if this script is allowed to run...
if [ "$ORACLE_START" != 1 ]; then rval=2 else echo "Stopping Oracle" su - oracle -c "wlctl stop 8888" su - oracle -c "lsnrctl stop" su - oracle -c dbshut set_return fi ;; *) echo "usage: $0 {start|stop|start_msg|stop_msg}" rval=1 ;;

esac

exit $rval Received on Wed Feb 19 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US