查看oracle的版本信息
十堰鄖陽ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為創(chuàng)新互聯(lián)的ssl證書銷售渠道,可以享受市場價格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:028-86922220(備注:SSL證書合作)期待與您的合作!
(1)用客戶端連接到數(shù)據(jù)庫,執(zhí)行select * from v$instance 查看version項
(2)select * from product_component_version
select * from v$version;
或者使用sqlplus命令登陸數(shù)據(jù)庫,如果是64位的,顯示如下:
對oracle服務(wù)器端的位數(shù)非常好判斷,只需要連接成功sqlplus就可以很明顯的看到oracle服務(wù)端的位數(shù)。
客戶端判斷的話:
使用tnsping的方法來查看
這里就是32位的了
方法一:使用sqlplus64位:[Oracle@qs-wg-db2 ~]$ sqlplus / as sysdba; SQL*Plus: Release 10.2.0.5.0 - Productionon Sun Sep 25 08:57:22 2011 Copyright (c) 1982, 2010, Oracle. All Rights Reserved. Connected to:Oracle Database 10g Enterprise EditionRelease 10.2.0.5.0 - 64bit ProductionWith the Partitioning, OLAP, Data Miningand Real Application Testing options SQL 如果是64位,用sqlplus 連上之后會顯示具體的位數(shù)信息,32位則不會顯示。 32位:C:\Users\Administrator.DavidDaisqlplus/ as sysdba; SQL*Plus: Release 11.2.0.1.0 Production onSun Sep 25 08:55:48 2011 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to:Oracle Database 11g Enterprise EditionRelease 11.2.0.1.0 - ProductionWith the Partitioning, OLAP, Data Miningand Real Application Testing options 方法二: 查看v$version 視圖32位:SQL select * from v$version; BANNER--------------------------------------------------------------------------Oracle Database 11g Enterprise EditionRelease 11.2.0.1.0 - ProductionPL/SQL Release 11.2.0.1.0 - ProductionCORE 11.2.0.1.0 ProductionTNS for 32-bit Windows: Version 11.2.0.1.0- ProductionNLSRTL Version 11.2.0.1.0 - Production 64位:SQL select * from v$version; BANNER----------------------------------------------------------------Oracle Database 10g Enterprise EditionRelease 10.2.0.5.0 - 64biPL/SQL Release 10.2.0.5.0 - ProductionCORE 10.2.0.5.0 ProductionTNS for Linux: Version 10.2.0.5.0 -ProductionNLSRTL Version 10.2.0.5.0 – Production 和第一種方法一樣,64位會顯示具體的位數(shù)信息,32位不會顯示。
一、
打開orcale安裝目錄,如:D:\app\SSG\product\11.2.0\dbhome_1
11.2.0這個目錄名就是版本
二、
主要有以下幾種方法可以用來確定Oracle的位數(shù):
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進(jìn)制數(shù),則為32位Oracle
SQL select address from v$sql where rownum2;
ADDRESS
--------
578428D8
b.如果輸出為16位16進(jìn)制數(shù),則為64位Oracle
SQL select address from v$sql where rownum2;
ADDRESS
----------------
000000040DFA01E0
3.使用系統(tǒng)命令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..