免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3546 | 回复: 3
打印 上一主题 下一主题

Oracle sqlplus 提示语言 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-02-20 11:29 |只看该作者 |倒序浏览
选择了“高级安装”

  1. [oracle@Ranan ~]$ set|grep LANG
  2. LANG=C
  3. LANGUAGE=zh_CN.GB18030:zh_CN.GB2312:zh_CN
  4. [oracle@Ranan ~]$
  5. [oracle@Ranan ~]$  sqlplus /nolog

  6. SQL*Plus: Release 10.2.0.1.0 - Production on Mon Feb 20 11:24:30 2006

  7. Copyright (c) 1982, 2005, Oracle.  All rights reserved.

  8. SQL> connect / as SYSDBA
  9. Connected to an idle instance.
  10. SQL> startup
  11. ORACLE instance started.

  12. Total System Global Area 5603590144 bytes
  13. Fixed Size                  2028768 bytes
  14. Variable Size             989858592 bytes
  15. Database Buffers         4596957184 bytes
  16. Redo Buffers               14745600 bytes
  17. ????????
  18. ????????
  19. SQL> shutdown immediate
  20. ????????
  21. ????????
  22. ORACLE ???????
  23. SQL>

复制代码


我的疑问是:

  1. Redo Buffers               14745600 bytes
  2. ????????
  3. ????????
  4. SQL> shutdown immediate
  5. ????????
  6. ????????
  7. ORACLE ???????
  8. SQL>
复制代码

为何成成了 ???????? 呢。

当我选择“基本安装”时,不会出现这种状况。显示正确:
  1. [oracle@Ranan ~]$ sqlplus /nolog

  2. SQL*Plus: Release 10.2.0.1.0 - Production on Mon Feb 13 16:50:06 2006

  3. Copyright (c) 1982, 2005, Oracle.  All rights reserved.

  4. SQL> connect / as sysdba
  5. Connected to an idle instance.
  6. SQL> startup
  7. ORACLE instance started.

  8. Total System Global Area 5016387584 bytes
  9. Fixed Size                  2027640 bytes
  10. Variable Size             939528072 bytes
  11. Database Buffers         4060086272 bytes
  12. Redo Buffers               14745600 bytes
  13. Database mounted.
  14. Database opened.
  15. SQL> shutdown immediate
  16. Database closed.
  17. Database dismounted.
  18. ORACLE instance shut down.
  19. SQL>
复制代码


而我选择“高级安装”时,并没有改变语言以及字符集的设置,环境也一样。

[ 本帖最后由 gugong 于 2006-2-20 11:31 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-02-20 11:59 |只看该作者
字符集问题了

论坛徽章:
0
3 [报告]
发表于 2006-02-20 22:42 |只看该作者
set NLS_LANG=AMERICAN_AMERICA.ZHS16GBK看看成不成

论坛徽章:
0
4 [报告]
发表于 2006-02-21 13:27 |只看该作者
谢谢楼上二位!


  1. [root@Ranan home]# cat /home/oracle/.bashrc
  2. # .bashrc

  3. # User specific aliases and functions

  4. # Source global definitions
  5. if [ -f /etc/bashrc ]; then
  6.         . /etc/bashrc
  7. fi

  8. export ORACLE_OWNER=oracle
  9. export ORACLE_BASE=/opt/app/oracle
  10. export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
  11. export ORACLE_SID=shorcl
  12. export ORACLE_DB_NAME=shorcl
  13. export ORACLE_DB_UNIQUE_NAME=shorcl
  14. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$ORACLE_HOME/lib32
  15. export PATH=$PATH:$ORACLE_HOME/bin
  16. #
  17. # Default value: American_America.US7ASCII
  18. #export NLS_LANG="American_America.US7ASCII"
  19. export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
  20. 2006年02月21日星期二下午13时11分17秒[root@Ranan home]# !su
  21. su - oracle
  22. [oracle@Ranan ~]$ sqlplus "as sysdba"

  23. SQL*Plus: Release 10.2.0.1.0 - Production on 星期二 2月 21 13:24:59 2006

  24. Copyright (c) 1982, 2005, Oracle.  All rights reserved.

  25. 请输入用户名:  SYS
  26. 输入口令:
  27. 已连接到空闲例程。

  28. SQL> startup
  29. ORACLE 例程已经启动。

  30. Total System Global Area 5603590144 bytes
  31. Fixed Size                  2028768 bytes
  32. Variable Size             989858592 bytes
  33. Database Buffers         4596957184 bytes
  34. Redo Buffers               14745600 bytes
  35. 数据库装载完毕。
  36. 数据库已经打开。
  37. SQL>
复制代码


我的困惑是:

在“高级安装”(默认设置)和“基本安装”两种情况下,不设置 NLS_LANG ,为何会有区别呢(其他操作系统环境变量一样)?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP