大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
对oracle服务器端的位数非常好判断,只需要连接成功sqlplus就可以很明显的看到oracle服务端的位数。
创新互联建站是一家专注于网站建设、成都网站设计与策划设计,龙胜网站建设哪家好?创新互联建站做网站,专注于网站建设十多年,网设计领域的专业建站公司;建站业务涵盖:龙胜等地区。龙胜做网站价格咨询:13518219792
客户端判断的话:
使用tnsping的方法来查看
这里就是32位的了
select * from v$version;
或者使用sqlplus命令登陆数据库,如果是64位的,显示如下:
主要有以下几种方法可以用来确定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 rownum2;
ADDRESS
--------
578428D8
b.如果输出为16位16进制数,则为64位Oracle
SQL select address from v$sql where rownum2;
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 ..