最近使用oracle登录sqlplus,出现以下的乱码:
[oracle@oracle scripts]$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Mar 5 18:11:30 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
???:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
我在客户端设置nls=american.america.zhs16gbk,乱码才消失,如下:
[oracle@oracle ~]$ export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
[oracle@oracle ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Mar 5 19:03:06 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
原来客户端只支持UTF-8,因此只有设置好字符集,才能不出现乱码。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9537053/viewspace-717752/
,如需转载,请注明出处,否则将追究法律责任。