[英]How to know installed Oracle Client is 32 bit or 64 bit?
OS: Windows 2008 Server R2操作系统:Windows 2008 Server R2
Oracle Client: 11.2 Oracle 客户端:11.2
Many Thanks非常感谢
A simple way to find this out in Windows is to run SQLPlus from your Oracle homes's bin directory and then check Task Manager.在 Windows 中找出这一点的一种简单方法是从 Oracle 主目录的 bin 目录运行 SQLPlus,然后检查任务管理器。 If it is a 32-bit version of SQLPlus, you'll see a process on the Processes tab that looks like this:
如果它是 32 位版本的 SQLPlus,您将在“进程”选项卡上看到如下所示的进程:
sqlplus.exe *32
If it is 64-bit, the process will look like this:如果是 64 位,过程将如下所示:
sqlplus.exe
Go to %ORACLE_HOME%\\inventory\\ContentsXML
folder and open comps.xml
file转到
%ORACLE_HOME%\\inventory\\ContentsXML
文件夹并打开comps.xml
文件
Look for <DEP_LIST> on ~second screen.在~第二个屏幕上查找 <DEP_LIST>。
If following lines have如果以下几行有
PLAT="NT_AMD64"
then this Oracle Home is 64 bit. PLAT="NT_AMD64"
那么这个 Oracle Home 是 64 位的。PLAT="NT_X86"
then - 32 bit. PLAT="NT_X86"
然后 - 32 位。对我来说非常简单且效果很好的一件事是从 cmd 提示符执行 TNSPing:
TNS Ping Utility for 32-bit Windows: Version 11.2.0.3.0 - Production on 13-MAR-2015 16:35:32
In Linux:在 Linux 中:
1) find where is sqlplus located, 1)找到sqlplus所在的位置,
[oracle@LINUX db_1]$ `which sqlplus`
/app/oracle/product/11.2.0/db_1/bin/sqlplus
2) Determine the file type, 2)确定文件类型,
[oracle@LINUX db_1]$ file /app/oracle/product/11.2.0/db_1/bin/sqlplus
[oracle@LINUX db_1]$
file /app/oracle/product/11.2.0/db_1/bin/sqlplus
/app/oracle/product/11.2.0/db_1/bin/sqlplus: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs). /app/oracle/product/11.2.0/db_1/bin/sqlplus:ELF 64 位 LSB 可执行文件,x86-64,版本 1 (SYSV),动态链接(使用共享库)。 For GNU/Linux 2.6.18, not stripped.
对于 GNU/Linux 2.6.18,未剥离。
None of the links above about lib and lib32 folder worked for me with Oracle Client 11.2.0 But I found this on the OTN community :上面关于 lib 和 lib32 文件夹的链接都不适用于 Oracle Client 11.2.0 但我在OTN 社区上找到了这个:
As far as inspecting a client install to try to tell if it's 32 bit or 64 bit, you can check the registry, a 32 bit home will be located in HKLM>Software>WOW6432Node>Oracle, whereas a 64 bit home will be in HKLM>Software>Oracle.
至于检查客户端安装以尝试判断它是 32 位还是 64 位,您可以检查注册表,32 位主页将位于 HKLM>Software>WOW6432Node>Oracle,而 64 位主页将位于 HKLM >软件>甲骨文。
The following, taken from here , was not mentioned here:以下内容取自此处,此处未提及:
If the Oracle Client is 32 bit, it will contain a "lib" folder;
如果 Oracle Client 是 32 位的,它将包含一个“lib”文件夹; but if it is a 64 bit Oracle Client it will have both "lib" and "lib32" folders.
但如果它是 64 位 Oracle 客户端,它将同时具有“lib”和“lib32”文件夹。
Also, starting in Oracle 11.2.0.1, the client version for 64-bit and the Oracle client for 32-bit are shipped separately, and there is an $ORACLE_HOME/lib64 directory.
另外,从 Oracle 11.2.0.1 开始,64 位的客户端版本和 32 位的 Oracle 客户端是分开提供的,并且有一个 $ORACLE_HOME/lib64 目录。
$ORACLE_HOME/lib/ ==> 32 bit $ORACLE_HOME/lib64 ==> 64 bit
$ORACLE_HOME/lib/ ==> 32 位 $ORACLE_HOME/lib64 ==> 64 位
Or
要么
$ORACLE_HOME/lib/ ==> 64 bit $ORACLE_HOME/lib32 ==> 32 bit
$ORACLE_HOME/lib/ ==> 64 位 $ORACLE_HOME/lib32 ==> 32 位
For the Oracle 12.1 windows client, looking at the output from the TNSPING command seems to work:对于 Oracle 12.1 windows 客户端,查看 TNSPING 命令的输出似乎有效:
With 32 bit installed on 64 bit OS:在 64 位操作系统上安装 32 位:
C:>tnsping
C:>tnsping
TNS Ping Utility for 32-bit Windows: Version 12.1.0.2.0 - Production on 02-FEB-2 016 15:44:37
适用于 32 位 Windows 的 TNS Ping 实用程序:版本 12.1.0.2.0 - 生产于 02-FEB-2 016 15:44:37
Copyright (c) 1997, 2014, Oracle.
版权所有 (c) 1997, 2014,Oracle。 All rights reserved.
版权所有。
With 64 bit installed on 64 bit OS:在 64 位操作系统上安装 64 位:
D:>tnsping
D:>tnsping
TNS Ping Utility for 64-bit Windows: Version 12.1.0.1.0 - Production on 02-FEB-2 016 16:00:23
适用于 64 位 Windows 的 TNS Ping 实用程序:版本 12.1.0.1.0 - 生产于 02-FEB-2 016 16:00:23
Copyright (c) 1997, 2013, Oracle.
版权所有 (c) 1997, 2013,甲骨文。 All rights reserved.
版权所有。
For Unix对于 Unix
grep "ARCHITECTURE" $ORACLE_HOME/inventory/ContentsXML/oraclehomeproperties.xml
And the output is:输出是:
<PROPERTY NAME="ARCHITECTURE" VAL="64"/>
For Windows对于 Windows
findstr "ARCHITECTURE" %ORACLE_HOME%\inventory\ContentsXML\oraclehomeproperties.xml
And the output can be:输出可以是:
<PROPERTY NAME="ARCHITECTURE" VAL="64"/>
On 64-bit system:在 64 位系统上:
32-bit Driver: C:\\Windows\\SysWOW64\\odbcad32.exe
32 位驱动程序:
C:\\Windows\\SysWOW64\\odbcad32.exe
64-bit Driver: C:\\Windows\\System32\\odbcad32.exe
64 位驱动程序:
C:\\Windows\\System32\\odbcad32.exe
Go to Drivers Tab转到驱动程序选项卡
Version is shown there as well.版本也显示在那里。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.