-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.bash_profile_cron
36 lines (31 loc) · 1.27 KB
/
.bash_profile_cron
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
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# Standard User specific environment and startup programs
export ORACLE_SID=$1
export ORACLE_UNQNAME=$2
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/11.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_HOST_NAME=$HOSTNAME
export GGATE=/opt/oracle/product/gg
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/opt/oracle/product/gg
export NLS_LANG=AMERICAN_AMERICA.UTF8
export THE_TIME=`date +%Y%m%d%H%M` # to timestamp some log files
export RMAN_LOGIN=RMAN/RMAN_0715@NVCSEA2 # ! Check server name
export BACKUP_HOME=/oracle7/orabackup # ! Check directory name
export GE0_LOCATION=SEATTLE # ! Check location. Used for picture titles.
export WORKING_DIR=/home/oracle/scripts
# File with the DB role, created by current_db_role.sh each minute
export DB_ROLE_FILE=$WORKING_DIR/log/current_db_role_${ORACLE_SID}.txt
# Library in $WORKING_DIR used by Perl scripts
#export MY_LIBRARY=my_library_test.pl
export MY_LIBRARY=my_library.pl
# Mail settings
#export [email protected]
export [email protected]
export ALERT_LOG_FILE=/home/oracle/scripts/log/alert_monitor_$1.log
export TO=opsDBAdmin@xxxxxxxxx
export SMTP=xxxxxxx