oracle database 11.2.0 기준이다.
.bashrc 에 추가해 주면 된다.
#
# Oracle Environment
#
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=orcl.oracle.com
export ORACLE_UNQNAME=ORCL
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export ORACLE_SID=ORCL
export PATH=$PATH:$ORACLE_HOME/bin
export NLS_LANG=KOREAN_KOREA.UTF8
# export NLS_LANG=KOREAN_KOREA.KO16MSWIN949
# export NLS_LANG=KOREAN_KOREA.KO16KSC5601
export SHLIB_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/jlib:/usr/lib
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/jdbc/lib
export CLASSPATH=$ORACLE_HOME/lib/classgen.jar:$ORACLE_HOME/jdbc/lib:
export TNSADMIN=$ORACLE_HOME/network/admin
export EDITOR=vi
#export LANG="ko_KR.EUC-KR"
export LANG="ko_KR.UTF-8"
umask 022