富贵资源网 Design By www.hznty.com
解决办法:
修改oracle用户的环境变量 文件。加入NLS_LANG="SIMPLIFIED CHINESE_CHINA.al32utf8"; export NLS_LANG
复制代码 代码如下:
[oracle@rhel6r4 ~]$ vi .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
export PATH
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=rhel6r4; export ORACLE_HOSTNAME
ORACLE_UNQNAME=mydb; export ORACLE_UNQNAME
ORACLE_BASE=/u01/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11gr2/db; export ORACLE_HOME
ORACLE_SID=mydb; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
NLS_LANG="SIMPLIFIED CHINESE_CHINA.al32utf8"; export NLS_LANG
[oracle@rhel6r4 ~]$ source .bash_profile
中文可正常显示
复制代码 代码如下:
[oracle@rhel6r4 ~]$ env|grep LANG
NLS_LANG=SIMPLIFIED CHINESE_CHINA.al32utf8
LANG=en_US.UTF-8
修改oracle用户的环境变量 文件。加入NLS_LANG="SIMPLIFIED CHINESE_CHINA.al32utf8"; export NLS_LANG
复制代码 代码如下:
[oracle@rhel6r4 ~]$ vi .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
export PATH
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=rhel6r4; export ORACLE_HOSTNAME
ORACLE_UNQNAME=mydb; export ORACLE_UNQNAME
ORACLE_BASE=/u01/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11gr2/db; export ORACLE_HOME
ORACLE_SID=mydb; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
NLS_LANG="SIMPLIFIED CHINESE_CHINA.al32utf8"; export NLS_LANG
[oracle@rhel6r4 ~]$ source .bash_profile
中文可正常显示
复制代码 代码如下:
[oracle@rhel6r4 ~]$ env|grep LANG
NLS_LANG=SIMPLIFIED CHINESE_CHINA.al32utf8
LANG=en_US.UTF-8
富贵资源网 Design By www.hznty.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
富贵资源网 Design By www.hznty.com
暂无评论...