檢視Oracle 32位還是64位(x86 or x64)

wuweilong發表於2014-10-03

方法一:使用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部落格 ” ,連結:http://blog.itpub.net/20674423/viewspace-1287847/,如需轉載,請註明出處,否則將追究法律責任。

相關文章