Installation guide

84 Chapter 5:Database Services
start and stop a Web application that has been written using Perl scripts and modules and is used to
interact with the Oracle database. Note that there are many ways for an application to interact with an
Oracle database.
The following is an example of the oracle script, which is used to start and stop the Oracle service.
Note that the script is run as user oracle, instead of root.
#!/bin/sh
#
# Cluster service script to start/stop oracle
#
cd /home/oracle
case $1 in
’start’)
su - oracle -c ./startdbi
su - oracle -c ./startdb
;;
’stop’)
su - oracle -c ./stopdb
su - oracle -c ./stopdbi
;;
esac
The following is an example of the startdb script, which is used to start the Oracle Database Server
instance:
#!/bin/sh
#
#
# Script to start the Oracle Database Server instance.
#
########################################################################
#
# ORACLE_RELEASE
#
# Specifies the Oracle product release.
#
########################################################################
ORACLE_RELEASE=8.1.6
########################################################################
#