Installation guide

86 Chapter 5:Database Services
# Verify that the users search path includes $ORCLE_HOME/bin
#
########################################################################
export PATH=$PATH:/u01/app/oracle/product/${ORACLE_RELEASE}/bin
########################################################################
#
# This does the actual work.
#
# The oracle server manager is used to start the Oracle Server instance
# based on the initSID.ora initialization parameters file specified.
#
########################################################################
/u01/app/oracle/product/${ORACLE_RELEASE}/bin/svrmgrl << EOF
spool /home/oracle/startdb.log
connect internal;
startup pfile = /u01/app/oracle/admin/db1/pfile/initTESTDB.ora open;
spool off
EOF
exit 0
The following is an example of the stopdb script, which is used to stop the Oracle Database Server
instance:
#!/bin/sh
#
#
# Script to STOP the Oracle Database Server instance.
#
######################################################################
#
# ORACLE_RELEASE
#
# Specifies the Oracle product release.
#
######################################################################
ORACLE_RELEASE=8.1.6
######################################################################
#
# ORACLE_SID
#