免费注册 查看新帖 |

Chinaunix

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

如何查找系统是64bit还是32bit [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-10-09 16:32 |只看该作者 |倒序浏览
如何在os下查出系统是64bit还是32bit

论坛徽章:
0
2 [报告]
发表于 2006-10-09 16:41 |只看该作者

回复 1楼 lifewise 的帖子

isainfo -b

论坛徽章:
0
3 [报告]
发表于 2006-10-09 21:49 |只看该作者
solaris 8支持64bit吗

论坛徽章:
0
4 [报告]
发表于 2006-10-10 04:45 |只看该作者
root # isainfo -b
64
root# uname -X
System = SunOS
Node = root
Release = 5.8
KernelID = Generic_117350-02
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 2

一次回答两个问题。

论坛徽章:
0
5 [报告]
发表于 2006-10-10 07:50 |只看该作者
那奇怪了,我的sunfire4800机器+solaris 5。8+oracle 8。1。7,每次我在oracle公司网站下的patch都是32bit的,都没什么问题。难道oracle 8。1。7是32bit的吗

论坛徽章:
0
6 [报告]
发表于 2006-10-10 08:11 |只看该作者
oracle8.1.7应该是32 bit的

论坛徽章:
0
7 [报告]
发表于 2006-10-10 09:01 |只看该作者

确定Oracle的位数

主要有以下几种方法可以用来确定Oracle的位数:
  
  1.通过SQLPLUS登录即可看出
  
  a.64位登录时就有显示
  
  $ sqlplus "/ as sysdba"
  
  SQL*Plus: Release 9.2.0.4.0 - Production on Wed Nov 16 15:27:28 2005
  
  Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
  
  Connected to:
  Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
  With the Partitioning option
  JServer Release 9.2.0.4.0 - Production
  
  b.32位的无显示
  
  [oracle@jumper oracle]$ sqlplus "/ as sysdba"
  
  SQL*Plus: Release 9.2.0.4.0 - Production on Wed Nov 16 15:19:03 2005
  
  Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
  
  Connected to:
  Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
  With the Partitioning option
  JServer Release 9.2.0.4.0 - Production
  
  c.从v$version获取
  
  SQL> select * from v$version;
  
  BANNER
  ------------------------------------------------------------
  Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
  PL/SQL Release 9.2.0.6.0 - Production
  CORE  9.2.0.6.0    Production
  TNS for 32-bit Windows: Version 9.2.0.6.0 - Production
  NLSRTL Version 9.2.0.6.0 - Production
  
  2.从v$sql视图获取
  
  a.如果输出为8位16进制数,则为32位Oracle
  
  SQL> select address from v$sql where rownum<2;
  
  ADDRESS
  --------
  578428D8
  
  b.如果输出为16位16进制数,则为64位Oracle
  
  SQL> select address from v$sql where rownum<2;
  
  ADDRESS
  ----------------
  000000040DFA01E0
  
  3.使用系统命令file
  
  a.如果输出带有32-bit字样为32位Oracle
  
  [oracle@jumper oracle]$ file $ORACLE_HOME/bin/oracle
  /opt/oracle/product/9.2.0/bin/oracle: setuid setgid ELF 32-bit LSB executable, Intel 80386..
  
  b.如果输出带有64-bit字样为64位Oracle
  
  $ file $ORACLE_HOME/bin/oracle
  /opt/oracle/product/9.2.0/bin/oracle:  ELF 64-bit MSB executable SPARCV9 Version 1 ..

论坛徽章:
0
8 [报告]
发表于 2006-10-10 09:44 |只看该作者
谢谢各位的回答,象我们这样把32bit的oracle装在64bit的机器上,是不是发挥不出机器的性能?不过他倒是可以正常运行

论坛徽章:
0
9 [报告]
发表于 2006-10-10 09:46 |只看该作者
是的

论坛徽章:
0
10 [报告]
发表于 2006-10-10 12:55 |只看该作者
请问楼上大侠是否做过64bit和32bit的性能测试(在64bit的操作系统)

谢谢!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP