ITPub博客

首页 > 数据库 > Oracle > 查看Oracle 32位还是64位(x86 or x64)

查看Oracle 32位还是64位(x86 or x64)

原创 Oracle 作者:wuweilong 时间:2014-10-03 11:02:22 0 删除 编辑

方法一:使用sqlplus

  1. ###64位:
  2. [oracle@db01 ~]$ sqlplus / as sysdba
  3.  
  4. SQL*Plus: Release 11.2.0.3.0 Production on Fri Oct 3 18:44:05 2014
  5.  
  6. Copyright (c) 1982, 2011, Oracle. All rights reserved.
  7.  
  8. Connected to:
  9. Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
  10. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  11.  
  12. SQL>
  13. 如果是64位,用sqlplus 连上之后会显示具体的位数信息,32位则不会显示。
  14.  
  15.  
  16. ###32位:
  17. [oracle@db01 ~]$sqlplus/ as sysdba;
  18.  
  19. SQL*Plus: Release 11.2.0.1.0 Production onSun Sep 25 08:55:48 2011
  20.  
  21. Copyright (c) 1982, 2010, Oracle. All rights reserved.
  22.   
  23. Connected to:
  24. Oracle Database 11g Enterprise EditionRelease 11.2.0.1.0 - Production
  25. With the Partitioning, OLAP, Data Miningand Real Application Testing options

方法二: 查看v$version 视图

  1. ###32位:
  2. SQL> select * from v$version;
  3.  
  4. BANNER
  5. --------------------------------------------------------------------------
  6. Oracle Database 11g Enterprise EditionRelease 11.2.0.1.0 - Production
  7. PL/SQL Release 11.2.0.1.0 - Production
  8. CORE 11.2.0.1.0 Production
  9. TNS for 32-bit Windows: Version 11.2.0.1.0- Production
  10. NLSRTL Version 11.2.0.1.0 - Production
  11.  
  12. ###64位:
  13. SQL> select * from v$version;
  14.  
  15. BANNER
  16. --------------------------------------------------------------------------------
  17. Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
  18. PL/SQL Release 11.2.0.3.0 - Production
  19. CORE 11.2.0.3.0 Production
  20. TNS for Linux: Version 11.2.0.3.0 - Production
  21. NLSRTL Version 11.2.0.3.0 – Production
和第一种方法一样,64位会显示具体的位数信息,32位不会显示。

 

方法三:查看v$sql 视图

  1. ###32位:输出为8位16进制数
  2. SQL> select address from v$sql whererownum<2;
  3.  
  4. ADDRESS
  5. --------
  6. B50ACDAE
  7.  
  8. ###64位:输出为16位16进制数
  9. SQL> select address from v$sql where rownum<2;
  10.  
  11. ADDRESS
  12. ----------------
  13. 00000000C18D79C8

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/20674423/viewspace-1287847/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle ACE Associate; 12cOCM;11gOCM;MySQL OCP;PGCA;PGCE;KCA; KCP; 本人拥有十年以上运营商,广电传媒,能源,制造等行业DBA从业经验; 有着丰富的管理及运维经验,经历过国家级重点项目,省级标杆项目,新型试点项目

注册时间:2010-01-08

  • 博文量
    779
  • 访问量
    4931780