#!/bin/sh

####################################################################
#                                                                  #
# Shell script '#/d23bs/start_oracle'                              #
#                                                                  #
#------------------------------------------------------------------#
#                                                                  #
# Purpose of this script: set some environment variables           #
# and start an executable, e.g. SunOS_oracle, for the connection   #
# to databases.                                                    #
# Must be modified by the user.                                    #
#                                                                  #
# This script will run on the same host as the database.           #
#                                                                  #
# Don't disturb the IPC - don't use commands here, which produce   #
# outputs, e.g. 'echo' .                                           #
#                                                                  #
# FURTHER INFORMATIONS: see file '#/d23bs/ipc.config'.             #
#                                                                  #
####################################################################



# Call correct executable
os=`uname -s`
case $os in
  IRIX  )
         . /usr/oracle/.profile            # set variables
         `dirname $0`/${os}_oracle $*;;    # call executable
  HP-UX ) 
         . /usr1/oracle/.profile           # set variables
         `dirname $0`/${os}_oracle $*;;    # call executable
  SunOS ) 
         . /usr1/oracle/.profile           # set variables
         `dirname $0`/${os}_oracle $*;;    # call executable
  *     ) 
        echo "ERROR: connection to ORACLE not supported for operating system $os ."; exit 1;;
esac

exit 0
