oracle sqlplus 连接时,connection to 显示的是问号

linux下面是用sqlplus操作数据库,出现问号:

[oracle@rac2 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Thu Aug 209:19:56 2012

Copyright (c) 1982, 2009, Oracle.  All rightsreserved.

???:  应该是Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0- 64bit Production

With the Partitioning, Real Application Clusters,Automatic Storage Management, OLAP,

Data Mining and Real Application Testing options

 

解决办法:

SQL> show parameter nls_la

 

NAME                                TYPE       VALUE

------------------------------------ -----------------------------------------

nls_language                        string      SIMPLIFIEDCHINESE

 

然后修改环境变量:NLS_LANG

[oracle@rac2 ~]$ exportNLS_LANG=american_america.zhs16gbk

如果要使之永久生效,可以添加这个变量到oracle 用户环境 .bash_profile中。

 


你可能感兴趣的:(oracle)