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中。

 


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章