blob: 461ff542bd05360ec1eb5d991d6ced07778b4aa3 [file] [log] [blame]
Tang Cheng37650ea2014-10-20 16:14:41 +08001#! /bin/sh
2# Script for running ott in instant client.
3# Before running this script:
4# set jdk1.5/bin in your PATH
5# set LD_LIBRARY_PATH to include the directory containing the instant client
6# libraries
7# set ottclasses.zip, ojdbc5.jar, orai18n.jar as part of your CLASSPATH
8
9OS=`uname`
10MACHINE=`uname -m`
11JREOPTIONS=
12
13if [ "$OS" = "HP-UX" ]; then
14 if [ "$MACHINE" = "ia64" -o "$MACHINE" = "9000/800" ]; then
15 JREOPTIONS=-d64
16 fi
17fi
18if [ "$OS" = "SunOS" ]; then
19 if [ "$MACHINE" = "sun4u" -o "$MACHINE" = "sun4v" ]; then
20 JREOPTIONS=-d64
21 fi
22fi
23
24while [ $# -gt 0 ]
25do
26 case $1 in
27 user*)
28 OTTUSER="$OTTUSER $1"
29 export OTTUSER ;;
30 *)
31 args="$args $1";;
32 esac
33shift
34done
35
36exec java $JREOPTIONS oracle.ott.c.CMain nlslang=${NLS_LANG} $args