我系统的当前环境如下:
1.
[root@localhost ~]# cat /etc/sysconfig/i18n
LANG="zh_CN.UTF-8"
SYSFONT="lat0-sun16"
[root@localhost ~]#2.ORACLE用户下的NLS_LANG设置:
[oracle@localhost ~]$ env | grep NLS
NLS_LANG=simplified chinese_china.zhs16gbk
3.oracle参数配置:SQL> show parameter nls;NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
nls_calendar string
nls_comp string
nls_currency string
nls_date_format string yyyy-mm-dd hh24:mi:ss
nls_date_language string
nls_dual_currency string
nls_iso_currency string
nls_language string SIMPLIFIED CHINESE
nls_length_semantics string BYTE
nls_nchar_conv_excp string FALSE
nls_numeric_characters stringNAME TYPE VALUE
------------------------------------ ----------- ------------------------------
nls_sort string
nls_territory string CHINA
SQL> select userenv('language') from dual;USERENV('LANGUAGE')
----------------------------------------------------
SIMPLIFIED CHINESE_CHINA.ZHS16GBKSQL>
现在我SQLPLUS下的提示信息还是英文 我还应该设置点什么才能让我的提示符成中文啊
1.
[root@localhost ~]# cat /etc/sysconfig/i18n
LANG="zh_CN.UTF-8"
SYSFONT="lat0-sun16"
[root@localhost ~]#2.ORACLE用户下的NLS_LANG设置:
[oracle@localhost ~]$ env | grep NLS
NLS_LANG=simplified chinese_china.zhs16gbk
3.oracle参数配置:SQL> show parameter nls;NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
nls_calendar string
nls_comp string
nls_currency string
nls_date_format string yyyy-mm-dd hh24:mi:ss
nls_date_language string
nls_dual_currency string
nls_iso_currency string
nls_language string SIMPLIFIED CHINESE
nls_length_semantics string BYTE
nls_nchar_conv_excp string FALSE
nls_numeric_characters stringNAME TYPE VALUE
------------------------------------ ----------- ------------------------------
nls_sort string
nls_territory string CHINA
SQL> select userenv('language') from dual;USERENV('LANGUAGE')
----------------------------------------------------
SIMPLIFIED CHINESE_CHINA.ZHS16GBKSQL>
现在我SQLPLUS下的提示信息还是英文 我还应该设置点什么才能让我的提示符成中文啊
解决方案 »
- ORACLE中这个问题怎么解决(高手进啊)
- oracle支持varray和nested table 数据库类型的最早版本是多少
- select t.* from table1 t where t.c >(select avg(t2.c) from table1 t2 where t1.d=t2.d)
- Oracle9i开机不能完全启动的问题
- 提高SQL的执行速度
- 联通公司的收费系统是用的oracle吗?
- 关于ORACLE备份方面的问题,VERITAS 高手来
- 在Oracle SQL *Plus 利用“Create type”创建新的数据类型不执行。
- 为什么无法启动OracleOraHome81ManagementServer服务?
- 局域网上的客户端如何用VB做前台,通过ODBC来连服务器?
- SQL求助
- 用sqlplus可以連接 但是用plsql developer 或者企業管理器就不能連接
#sqlplus /nologsql>这样子进去之后,还是英文?
环境变量生效了吗?$export NLS_LANG="simplified chinese_china.zhs16gbk"
$source .profle 试试..
SIMPLIFIED CHINESE_CHINA.ZHS16GBK
[oracle@localhost ~]$ sqlplus eht/product@htdzSQL*Plus: Release 10.2.0.1.0 - Production on 星期四 4月 1 10:32:27 2010Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> select areaid from area where rownum<=10; AREAID
----------
1
2
3
4
5
6
7
8
9
10已选择10行。SQL> exit
从 Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断开
[oracle@localhost ~]$ export NLS_LANG=american_america.ZHS16GBK
[oracle@localhost ~]$ echo $NLS_LANG
american_america.ZHS16GBK
[oracle@localhost ~]$ sqlplus eht/product@htdzSQL*Plus: Release 10.2.0.1.0 - Production on Thu Apr 1 10:33:09 2010Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> select areaid from area where rownum<=10; AREAID
----------
1
2
3
4
5
6
7
8
9
1010 rows selected.SQL>
RedHat Linux AS 4.0你首先要搞清楚,你的LINUX系统是否安装中文语言包。
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=simplified chinese_china.zhs16gbk
LC_CTYPE=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
LC_NUMERIC="simplified chinese_china.zhs16gbk"
LC_TIME="simplified chinese_china.zhs16gbk"
LC_COLLATE="simplified chinese_china.zhs16gbk"
LC_MONETARY="simplified chinese_china.zhs16gbk"
LC_MESSAGES="simplified chinese_china.zhs16gbk"
LC_PAPER="simplified chinese_china.zhs16gbk"
LC_NAME="simplified chinese_china.zhs16gbk"
LC_ADDRESS="simplified chinese_china.zhs16gbk"
LC_TELEPHONE="simplified chinese_china.zhs16gbk"
LC_MEASUREMENT="simplified chinese_china.zhs16gbk"
LC_IDENTIFICATION="simplified chinese_china.zhs16gbk"
LC_ALL=