-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbashrc_hdb_app
116 lines (106 loc) · 3.51 KB
/
bashrc_hdb_app
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# SITE SPECIFIC: email of person responsible for data transfers
[email protected],[email protected]; export HDB_XFER_EMAIL
#HDB_XFER_EMAIL=root@localhost
export HDB_XFER_EMAIL
#HDB_NOTIFY_EMAIL=root@localhost
export HDB_NOTIFY_EMAIL
HDB_NOTIFY_CASPER_EMAIL=root@localhost
#HDB_NOTIFY_CASPER_EMAIL=
export HDB_NOTIFY_CASPER_EMAIL
#SITE SPECIFIC - required for all Oracle applications
ORACLE_HOME=/ora1/app/product/12.2/db
export ORACLE_HOME
ORACLE_BASE=/ora1/app
export ORACLE_BASE
ORACLE_DOC=$ORACLE_HOME/doc
export ORACLE_DOC
ORACLE_LPPROG=/usr/ucb/lpr
export ORACLE_LPPROG
ORACLE_LPSTAT=/usr/ucb/lpq
export ORACLE_LPSTAT
ORACLE_NLS32=$ORACLE_HOME/ocommon/nls/admin/data
export ORACLE_NLS32
ORACLE_PAGER=/usr/bin/less
export ORACLE_PAGER
ORACLE_SID=uchdb2
export ORACLE_SID
ORACLE_TERM=xterm
export ORACLE_TERM
TNS_ADMIN=$ORACLE_HOME/network/admin
export TNS_ADMIN
HDB_LOCAL=uchdb2
export HDB_LOCAL
HDB_ENV=/wrg/hdb/apps
export HDB_ENV
HDB_BIN=$HDB_ENV/bin
export HDB_BIN
DECODES_INSTALL_DIR=$HDB_ENV/OPENDCS/current
export DECODES_INSTALL_DIR
DECODES_BIN=$DECODES_INSTALL_DIR/bin
export DECODES_BIN
DCSTOOL_HOME=$DECODES_INSTALL_DIR
export DCSTOOL_HOME
DCSTOOL_USERDIR=$HDB_ENV/opendcs_user
export DCSTOOL_USER
LRGSHOME=$HDB_ENV/opendcs_user
export LRGSHOME
COMP_DIR=$HOME/CP
export COMP_DIR
HDB_LIB=$HDB_ENV/lib
export HDB_LIB
# Additional settings which may not be in user's .cshrc
PATH="$HDB_BIN":"$DECODES_BIN":"$ORACLE_HOME/bin":/usr/java/bin/:/usr/local/bin:"$PATH"
export PATH
# add to LD_LIBRARY_PATH if it exists, set a new valueif it doesn't
if [ -n "$LD_LIBRARY_PATH" ] ; then { #relying on user to have sane stuff in var
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":$ORACLE_HOME/lib:$ORACLE_HOME/lib32:$HDB_ENV/lib
export LD_LIBRARY_PATH
}
else {
LD_LIBRARY_PATH=/usr/lib:/lib:/usr/local/lib:$ORACLE_HOME/lib:$ORACLE_HOME/lib32:$HDB_ENV/lib
export LD_LIBRARY_PATH
}
fi
#Insert MAGICK_HOME so that Image Magick works
#MAGICK_HOME=/usr/local/ImageMagick-6.0.3
#export MAGICK_HOME
#LD_LIBRARY_PATH="$LD_LIBRARY_PATH":$MAGICK_HOME/lib
#export LD_LIBRARY_PATH
# add to CLASSPATH if it exists, set a new valueif it doesn't
if [ -n "$CLASSPATH" ] ; then {
CLASSPATH="$CLASSPATH":$HDB_LIB/dataloader.jar:$HDB_LIB/heclib.jar:$HDB_LIB/jdbcpool-0.99.jar:$HDB_LIB/dcstool.jar:$HDB_LIB/derivation_algorithms.jar:$HDB_LIB/cp_algorithms.jar:$HDB_LIB/general_algorithms.jar:$HDB_LIB/uc_algorithms.jar:$ORACLE_HOME/jdbc/lib/ojdbc8.jar
export CLASSPATH
}
else {
CLASSPATH=$HDB_LIB/dataloader.jar:$HDB_LIB/heclib.jar:$HDB_LIB/jdbcpool-0.99.jar:$HDB_LIB/dcstool.jar:$HDB_LIB/derivation_algorithms.jar:$HDB_LIB/cp_algorithms.jar:$HDB_LIB/general_algorithms.jar:$HDB_LIB/uc_algorithms.jar:$ORACLE_HOME/jdbc/lib/ojdbc8.jar
export CLASSPATH
}
fi
# STATIC - required for all Oracle applications
PSSWD_USER=psswd_user
export PSSWD_USER
APP_USER=app_user
export APP_USER
APP_ROLE=app_role
export APP_ROLE
HDB_META_ROLE=hdb_meta_role
export HDB_META_ROLE
REF_META_ROLE=ref_meta_role
export REF_META_ROLE
MODEL_ROLE=model_role
export MODEL_ROLE
DERIVATION_ROLE=derivation_role
export DERIVATION_ROLE
# SITE SPECIFIC - required for RiverWare 24 MO Study DMI's
INPUT_DMI_PATH=$HDB_BIN
export INPUT_DMI_PATH
OUTPUT_DMI_PATH=$HDB_BIN
export OUTPUT_DMI_PATH
# STATIC - used for defining TSTOOL and FEWS connectivity to HDB
HDB_DB_ENV_HOST=findoutfromECAO
export HDB_DB_ENV_HOST
HDB_FEWS_USER=riverside
export HDB_FEWS_USER
HDB_FEWS_PASSWORD=findoutfromECAO
export HDB_FEWS_PASSWORD