-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.cshrc_hdb_app
100 lines (79 loc) · 3.6 KB
/
.cshrc_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
# SITE SPECIFIC: email of person responsible for data transfers
setenv HDB_XFER_EMAIL [email protected]
setenv HDB_NOTIFY_EMAIL [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
# HDB - required for all HDB interactions
# These probably need editting for a new system
setenv HDB_LOCAL uchdb2
setenv HDB_ENV /wrg/hdb/HDB2_applications
setenv HDB_BIN $HDB_ENV/bin
# SITE SPECIFIC - required for RiverWare 24 MO Study DMI's
setenv INPUT_DMI_PATH $HDB_BIN
setenv OUTPUT_DMI_PATH $HDB_BIN
# Additional settings which may not be in user's .cshrc
setenv PATH "$PATH":$HDB_BIN
setenv JDKDIR /usr/jdk1.5
setenv JAVA_HOME /usr/jdk1.5
# SITE SPECIFIC - for hydromet applications
setenv ARCHIVE_DIR $HDB_ENV/dataloader/work/archives
setenv DAYFILE_DIR $HDB_ENV/dataloader/work/dayfiles
setenv LOG_DIR log
# SITE SPECIFIC - required for hydromet shell scripts (bogus at CADSWES)
# For new ALPHA
setenv DAYFILES '/custom$/dayfiles'
setenv ARCHIVES '/custom$/archives'
setenv MOUNTDIR "/zipdata"
setenv HYD_HOST zippy
setenv HYD_USER hydromet
setenv ARC_COMFILE_DIR 'sutron_archives:'
setenv DAY_COMFILE_DIR 'sutron_dayfiles:'
# Probably don't have to edit items below this line
# EXCEPTION: ORACLE_SID set below for solaris
#### BEGIN OS SPECIFIC SETTINGS ####
if (`uname` == 'SunOS') then # assume Oracle 9, and need all Oracle settings here
#ORACLE SPECIFIC - required for all Oracle applications
setenv ORACLE_HOME /ora/oracle/product/9.2.0
setenv ORACLE_BASE /ora/oracle
setenv ORACLE_DOC $ORACLE_HOME/doc
setenv ORACLE_NLS32 $ORACLE_HOME/ocommon/nls/admin/data
setenv TNS_ADMIN $ORACLE_HOME/network/admin
setenv ORACLE_LPPROG /usr/ucb/lpr
setenv ORACLE_LPSTAT /usr/ucb/lpq
setenv ORACLE_PAGER /usr/bin/less
setenv ORACLE_TERM xterm
setenv ORACLE_SID uchdb2
# add to LD_LIBRARY_PATH if it exists, set a new value if it doesn't
#Linux systems don't need
if ($?LD_LIBRARY_PATH) then #relying on user to have sane stuff in var
setenv LD_LIBRARY_PATH "$LD_LIBRARY_PATH":$ORACLE_HOME/lib32:/usr/sfw/lib
else
setenv LD_LIBRARY_PATH /usr/lib:/lib:/usr/local/lib:$ORACLE_HOME/lib32:/usr/sfw/lib
endif
#Insert MAGICK_HOME so that Image Magick works on Solaris, is system lib on Linux
setenv MAGICK_HOME /usr/local/ImageMagick-6.0.3
setenv LD_LIBRARY_PATH "$LD_LIBRARY_PATH":$MAGICK_HOME/lib
setenv PATH "$ORACLE_HOME/bin":/usr/java/bin:"$PATH":/usr/sfw/bin
else if ( `uname` == `Linux` ) then
#ORACLE SPECIFIC - required for all Oracle applications
# Oracle settings also contained in /etc/profile.d/oracle.{sh|csh}
# settings there are ORACLE_SID, ORACLE_HOME, ORA_NLS33, TNS_ADMIN, ORACLE_BASE
# ORACLE_TERM, NLS_LANG, ORACLE_DOC
# also set are LD_LIBRARY_PATH, PATH, and CLASSPATH
setenv ORACLE_LPPROG /usr/bin/lpr
setenv ORACLE_LPSTAT /usr/bin/lpq
setenv ORACLE_PAGER /usr/bin/less
endif
#### END OF OS SPECIFIC SETTINGS ####
# add to CLASSPATH if it exists, set a new value if it doesn't
if ($?CLASSPATH) then
setenv CLASSPATH "$CLASSPATH":"$ORACLE_HOME/jdbc/lib/classes12.zip:$HDB_ENV/lib/dataloader.jar:$HDB_ENV/lib/jdbcpool-0.99.jar"
else
setenv CLASSPATH "$ORACLE_HOME/jdbc/lib/classes12.zip:$HDB_ENV/lib/dataloader.jar:$HDB_ENV/lib/jdbcpool-0.99.jar"
endif
# STATIC - ORACLE Permissions - required for all HDB applications
setenv PSSWD_USER psswd_user
setenv APP_USER app_user
setenv APP_ROLE app_role
setenv HDB_META_ROLE hdb_meta_role
setenv REF_META_ROLE ref_meta_role
setenv MODEL_ROLE model_role
setenv DERIVATION_ROLE derivation_role