ITPub博客

首页 > 数据库 > Oracle > Linux下配置 NLS_LANG 解决sqlplus乱码

Linux下配置 NLS_LANG 解决sqlplus乱码

原创 Oracle 作者:xingxintian 时间:2014-08-21 16:00:23 0 删除 编辑
有时候登陆linux的sqlplus时显示中文乱码:


点击(此处)折叠或打开

  1. [oracle@sj-db1 ~]$ sqlplus / as sysdba
  2. SQL*Plus: Release 11.2.0.1.0 Production on ?????? 8?? 21 15:36:01 2014
  3. Copyright (c) 1982, 2009, Oracle. All rights reserved.
  4. ????:
  5. Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
  6. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  7. SQL> exit
  8. ?? Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
  9. With the Partitioning, OLAP, Data Mining and Real Application Testing options ???
这时候需要对NLS_LANG 进行配置来解决

点击(此处)折叠或打开

  1. [oracle@sj-db1 ~]$ export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
  2. [oracle@sj-db1 ~]$ sqlplus / as sysdba
  3. SQL*Plus: Release 11.2.0.1.0 Production on Thu Aug 21 15:36:10 2014
  4. Copyright (c) 1982, 2009, Oracle. All rights reserved.
  5. Connected to:
  6. Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
  7. With the Partitioning, OLAP, Data Mining and Real Application Testing options

  8. SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28538954/viewspace-1255386/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2013-03-01

  • 博文量
    21
  • 访问量
    77524