#! /bin/sh
#
# ott - shell for invoking the Object Type Translator
# Usage:  ott <option>=<option_value> ...
#
# Before running this script:
#   set jdk1.4.2/bin in your PATH
#
# Note: If $ORACLE_HOME is not set, the $CLASSPATH should be set 
# to the directories containing ojdbc14.jar, orai18n.jar and 
# ottclasses.zip
#
# %W% %E%
#
#set -x 

if [ "$ORACLE_HOME" ]
then
    JRECLASSPATH=:$ORACLE_HOME/jdbc/lib/ojdbc14.jar:$ORACLE_HOME/jlib/orai18n.jar:$ORACLE_HOME/precomp/lib/ottclasses.zip
    export JRECLASSPATH
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH

    exec java -classpath $JRECLASSPATH oracle.ott.c.CMain nlslang=${NLS_LANG} orahome=${ORACLE_HOME} "$@"
else
    exec java oracle.ott.c.CMain nlslang=${NLS_LANG} "$@"
fi
