본문 바로가기

DATABASE

[ORACLE,MYSQL] 설치후 .bash_profile 설정값

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=./:$PATH:$HOME/bin:/usr/bin:usr/local/bin

export PATH
unset USERNAME

export GCC_LIB=/usr/lib/gcc/i386-redhat-linux/3.4.6
export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:$LD_LIBRARY_PATH:$GCC_LIB
export LD_LIBRARY=/usr/local/lib:/usr/lib:$LD_LIBRARY:$GCC_LIB

##############################################
## for Mysql
export MYSQL_HOME=/usr/local/mysql
export PATH=.:$PATH:$MYSQL_HOME/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MYSQL_HOME/lib/mysql
export LD_LIBRARY=$LD_LIBRARY:.:$MYSQL_HOME/lib/mysql
export LANG=ko_KR.EUC-KR
export LANGUAGE=ko_KR:ko:en_GB:en
##############################################

##############################################
export ORACLE_BASE=/home/oracle
export ORACLE_SID=ora10
export LANG=C
export ORACLE_HOME=$ORACLE_BASE/product/10.1
export PATH=$PATH:$ORACLE_HOME/bin
export NLS_LANG=American_america.KO16KSC5601
##############################################

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export LD_LIBRARY=$LD_LIBRARY:.:$ORACLE_HOME/lib