#! /bin/sh
# Script for running ott in instant client.
# Before running this script:
#   set jdk<ver>/bin in your PATH
#   set LD_LIBRARY_PATH to include the directory containing the instant client 
#       libraries
#   set ottclasses.zip, ojdbc<ver>.jar, orai18n.jar as part of your CLASSPATH

# The below is to get our tests passing.
if [ "$COMPILER_MODE" != "32" ];
then
  PATH=/opt/IBMJava2-ppc64-142/bin:$PATH
  export PATH
  LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32
  export LD_LIBRARY_PATH
else
  LD_LIBRARY_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/lib
  export LD_LIBRARY_PATH
fi

exec java oracle.ott.c.CMain nlslang=${NLS_LANG} "$@"
