|
本帖最后由 jiawang 于 2024-5-16 13:32 编辑
问题现象:
sqlplus 登入后部分显示问号?
主要是系统字符集和数据库的字符集不一样导致的,只需要修改对应oracle用户的环境变量即可,与数据库字符集一样就可以了。
查看数据库字符集
SQL> select userenv('language') from dual;
USERENV('LANGUAGE')
----------------------------------------------------
SIMPLIFIED CHINESE_CHINA.ZHS16GBK
解决方案:
登入到oracle用户下,在.bash_profile中添加一行:
export NLS_LANG="SIMPLIFIED CHINESE_CHINA".ZHS16GBK
完成修改后进行source生效
[oracle@dbserver ~]$ source .bash_profile
登录检查:
[oracle@dbserver ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Thu May 16 11:20:23 2024
Copyright (c) 1982, 2013, Oracle. All rights reserved.
连接到
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
|
|