envmng/etc/envmng.d/ora10

47 lines
1.4 KiB
Plaintext
Raw Normal View History

# $RCSfile: ora10,v $
# $Revision: 1.2 $
# $Name: $
# $Date: 2009/01/13 16:59:17 $
# $Author: agibert $
# EnvMng Environment configuration
#
# description: Oracle 10
#-------------------------------------------------------------------------------
case "$1" in
*profile)
export ORACLE_HOME=/home/logiciel/oracle/ora10204
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export NLS_LANG=french_france.utf8
export NLS_SORT=BINARY
export ORACLE_TERM=vt100
# export ORACLE_RM=Oracle_XA_9
export FS01=$PROJECT_HOME/${PROJECT_ID}1
export FS02=$PROJECT_HOME/${PROJECT_ID}2
export FS03=$PROJECT_HOME/${PROJECT_ID}3
export ORACLE_SID=$(/usr/bin/awk "BEGIN {print toupper(\"$PROJECT_ID\")}")
export BASE=$ORACLE_HOME/dbs/sgadef${ORACLE_SID}.dbf
# export CONFIGORAIC=$PROJECT_HOME/appli/expl/oracle/ora_target/init
# export EXPLORAIC=$PROJECT_HOME/appli/expl/oracle/ora_target
#----------------------------------------------------------------------------
# PATH definitions
#----------------------------------------------------------------------------
path=$ORACLE_HOME/bin
libpath=$ORACLE_HOME/lib32:$ORACLE_HOME/lib
export PATH=$(envmng_path_add "$PATH" "$path")
export LIBPATH=$(envmng_path_add "$LIBPATH" "$libpath")
;;
*rc)
;;
*)
echo "$0: Invalid command: [$1] !"
;;
esac