-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathenv.sh
More file actions
35 lines (29 loc) · 952 Bytes
/
Copy pathenv.sh
File metadata and controls
35 lines (29 loc) · 952 Bytes
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
#!/bin/ksh
# Basic environment and standard log/tmp file setup
#
# Expected directory structure
#
# installdir --> base directory to contain directories of bin, log etc
# installdir/bin --> To keep all scripts
# installdir/log --> For log and tmp files
#
export oratab=/etc/oratab
# TBD - Modify the following lines to pick these from oratab based on the DB Name sent in
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/11.2.0.4.RAC
export ORACLE_SID=RAC29DB21
#
export PATH=/bin:/sbin:/etc:/usr/bin:/usr/sbin:/usr/local/bin:/usr/lib:$ORACLE_HOME/bin:.
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export LIBPATH=$ORACLE_HOME/lib
export TNS_ADMIN=/usr/local/tns
scriptpath=$0
script=`basename $scriptpath`
scriptdir=`dirname $scriptpath`
cd $scriptdir
scriptdir=`pwd`
installdir=`dirname $scriptdir`
logdir=${installdir}/log
logfile=${logdir}/${script}.log
tmpfile1=${logdir}/${script}.tmp1
tmpfile2=${logdir}/${script}.tmp2