当前所在位置:珠峰网资料 >> 计算机 >> Oracle认证 >> 正文
oracle字符集问题,登陆sqlplus出现问号
发布时间:2010/6/25 15:35:07 来源:城市学习网 编辑:ziteng
  在linux下装了一个oracle 10g,登录sqlplus 后,显示
  SQL> startup
  ORACLE ???????
  Total System Global Area 167772160 bytes
  Fixed Size                  1218316 bytes
  Variable Size              67111156 bytes
  Database Buffers           96468992 bytes
  Redo Buffers                2973696 bytes
  ????????
  ????????
  然后赶快查看一下NLS
  SQL> show parameter nls_la
  NAME                                 TYPE        VALUE
  ------------------------------------ ----------- ------------------------------
  nls_language                         string      SIMPLIFIED CHINESE
  解决方法:
  退出sqlplus
  在oracle用户下执行
  export NLS_LANG=american_america.zhs16gbk
  可以编辑 bash_profile 文件进行永久设置
  vi .bash_profile
  NLS_LANG=american_america.zhs16gbk export NLS_LANG
  再重新登录sqlplus
  SQL> startup
  ORACLE instance started.
  Total System Global Area 167772160 bytes
  Fixed Size                  1218316 bytes
  Variable Size              67111156 bytes
  Database Buffers           96468992 bytes
  Redo Buffers                2973696 bytes
  Database mounted.
  Database opened.
  SQL>
  Ok,搞定
广告合作:400-664-0084 全国热线:400-664-0084
Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号
珠峰网 版权所有 All Rights Reserved