eygle.com   eygle.com
eygle.com  
 

« 推荐Kamus的新Blog | Blog首页 | 再招一名DBA »

Oracle HowTo:如何确定Oracle是32 Bit(位)的还是64 Bit(位)的?

作者:eygle |【转载时请以超链接形式标明文章和作者信息及本声明
链接:
主要有以下几种方法可以用来确定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 .. 


历史上的今天...
      >> 2008-11-16文章:
      >> 2007-11-16文章:
      >> 2006-11-16文章:
             推荐下载“2006 OTN 精选”CD
------
这篇 【Oracle HowTo:如何确定Oracle是32 Bit(位)的还是64 Bit(位)的?】来自 eygle.com | CSDN网摘| del.icio.us|Google订阅 | 鲜果订阅 | 抓虾订阅

By eygle on 2005-11-16 15:46 | Comments (0) | Posted to HowTo | Edit |

相关文章 随机文章
  • 20090811-墨墨、书书、Oracle
  • Oracle收购GoldenGate - 甲骨文到底想做什么
  • Oracle 74亿美元购SUN - 彻底改变产业格局
  • TimesTen:Cache Group局部数据缓存及Aging
  • TimesTen 7.0.5 For Linx安装过程记录
  • Solaris安装Oracle10g之 libCstd.so.1 问题解决
    PGA_AGGREGATE_TARGET参数的变更
    Oracle10gR2 New Feature:V$SESSION change tracking
    西塘游记之四
    微软对spam及junk e-mail的举动
    搜索本站:

    留言 (0)

    发表留言:



    Remember Me?
    (输入验证码后方可评论,谢谢支持)



    CopyRight © 2004~2010 eygle.com, All rights reserved.