ITPub博客

首页 > Linux操作系统 > Linux操作系统 > sqlplus 显示问号,解决办法

sqlplus 显示问号,解决办法

原创 Linux操作系统 作者:longqidong 时间:2012-08-02 09:32:23 0 删除 编辑
linux下面是用sqlplus操作数据库,出现问号:
[oracle@rac2 ~]$ sqlplus / as sysdba

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

Copyright (c) 1982, 2009, Oracle.  All rights reserved.


???: 
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      SIMPLIFIED CHINESE

然后修改环境变量:NLS_LANG
[oracle@rac2 ~]$ export NLS_LANG=american_america.zhs16gbk
如果要使之永久生效,可以添加这个变量到oracle 用户环境 .bash_profile中。

问题解决



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

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

注册时间:2009-08-26

  • 博文量
    94
  • 访问量
    474893