oracle 32位和64位,ORACLE产品32位与64位的判断方法

首先,这是一个很简单的问题。在google一搜一大把。但搜的结果没有详细的说明,初学者还是糊涂。比如经常看到这样的回答:

$ sqlplus '/ AS SYSDBA'

SQL*Plus: Release 9.0.1.0.0 - Production on Mon Jul 14 17:01:09 2003

(c) Copyright 2001 Oracle Corporation. All rights reserved.

Connected to:

Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production

With the Partitioning option

JServer Release 9.0.1.0.0 - Production

SQL> select * from v$version;

BANNER

----------------------------------------------------------------

Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production

PL/SQL Release 9.0.1.0.0 - Production

CORE 9.0.1.0.0 Production

TNS for Solaris: Version 9.0.1.0.0 - Production

NLSRTL Version 9.0.1.0.0 - Production

SQL>

--这到底是32位的还是64位的?以下是一些说明,同时还提供了其它查看的方法。

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
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值