解决办法:修改oracle用户的环境变量 文件。加入NLS_LANG=”SIMPLIFIED CHINESE_CHINA.al32utf8″; export NLS_LANG 代码如下:[oraclerhel6r4 ~]$ vi .bash_profile # .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then. ~/.bashrcfi# User specific environment and start
在/etc/profile.d/简历oracle.sh
内容如下在NLS_LANG设置编码
ORACLE_HOME=/usr/lib/oracle/12.1/client64
C_INCLUDE_PATH=/usr/include/oracle/12.1/client64
LD_LIBRARY_PATH=$ORACLE_HOME/lib
#remember this is the client NLS_LANG not the server one
NLS_LANG=FRENCH_FRANCE