How To Verify the Word Size (32bit vs 64bit) of the Oracle Binary on MS Windows systems (文档 ID 46506

How To Verify the Word Size (32bit vs 64bit) of the Oracle Binary on MS Windows systems (文档 ID 465060.1)

如何在MS Windows系统上验证Oracle二进制文件的字大小(32位和64位)

转到底部


In this Document
  Goal
  Solution
  References


APPLIES TO:

Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 11.2.0.2 - Release: 10.2 to 11.2
Microsoft Windows (32-bit)
Microsoft Windows x64 (64-bit)
***Checked for relevance on 21-Jan-2010***

Oracle Server - 企业版 - 版本:10.2.0.1到11.2.0.2 - 版本:10.2到11.2

Microsoft Windows(32位)

Microsoft Windows x64(64位)

*** 2010年1月21日检查相关性***

GOAL

This article is intended to provide several methods that can be used to determine the word-size of Oracle Database software on Microsoft Windows systems.

本文旨在提供几种方法,可用于确定Microsoft Windows系统上Oracle数据库软件的字大小。

SOLUTION

There are several methods available to check if the Oracle software is 32-bit or 64-bit. 
Three methods will be discussed. 
有几种方法可用于检查Oracle软件是32位还是64位。

将讨论三种方法。
Method 1. 方法一:
========= 
This is for a Server home with an active database: 
Connect to the database and check the banner or v$version or v$process
这是具有活动数据库的服务器主目录:

连接到数据库并检查横幅或v $ version或v $ process
On 32-bit Oracle home:在32位Oracle home目录中:
-------- 
C:\>sqlplus / as sysdba 

Connected to: 
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production 
With the Partitioning, OLAP and Data Mining options 
连接到:、

XXX

使用分区,OLAP和数据挖掘选项
SQL> select * from v$version; 
BANNER 
---------------------------------------------------------------- 
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod 
PL/SQL Release 10.2.0.1.0 - Production 
CORE 10.2.0.1.0 Production 
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production 
NLSRTL Version 10.2.0.1.0 - Production 

A select on v$process shows the wordsize of the Oracle binary in the server process:

SQL> select length(addr)*4 || '-bits' word_length from v$process where rownum=1;

WORD_LENGTH
---------------------------
32-bits


This shows the Oracle software, not the wordsize of the PL/SQL objects of the database itself. 
这显示了Oracle软件,而不是数据库本身的PL / SQL对象的wordsize。

On a 64-bit Oracle home:
-------- 
C:\>sqlplus / as sysdba 

Connected to: 
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production 
With the Partitioning, OLAP and Data Mining options 
连接到:

Oracle数据库10g企业版10.2.0.1.0 - 64位生产

使用分区,OLAP和数据挖掘选项
SQL> select * from v$version; 
BANNER 
---------------------------------------------------------------- 
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi 
PL/SQL Release 10.2.0.1.0 - Production 
CORE 10.2.0.1.0 Production 
TNS for 64-bit Windows: Version 10.2.0.1.0 - Production 
NLSRTL Version 10.2.0.1.0 - Production 

A select on v$process shows the wordsize of the Oracle binary in the server process:
v$process上的选择显示服务器进程中Oracle二进制文件的字大小:
SQL> select length(addr)*4 || '-bits' word_length from v$process where rownum=1;

WORD_LENGTH
---------------------------
64-bits


Method 2.
=========
You can find whether Oracle Client Software is 32-Bit or 64-Bit in Windows by 
verifying the registry keys:
您可以在Windows中通过验证注册表项找到Oracle客户端软件是32位还是64位:
Oracle 32-bit Client on Windows 64-bit OS will be registered under 
hyve key 'Wow6432Node' like:
---------------------------------------------------------
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\KEY_<Oracle Home Name>


Windows 64-bit Client on Windows 64-bit OS will have registry key:
---------------------------------------------------------
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_<Oracle Home Name>


Windows 32-bit Client on Windows 32-bit OS will have registry key:
---------------------------------------------------------
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_<Oracle Home Name>


Method 3. 
========= 
This method can be used for both Server and Client homes against active processes of the home. 
此方法可用于服务器和客户端homes依赖于活跃的家庭进程。
Use the utility Process Monitor which can be downloaded from Microsoft Technet. 
使用可以从Microsoft Technet下载的实用程序Process Monitor。
The Process Monitor is an advanced monitoring tool for Windows that shows real-time file system, Registry and process/thread activity. 


Process Monitor是用于Windows的高级监视工具,显示实时文件系统,注册表和进程/线程活动。


Process Monitor runs on:
Client: Windows XP SP2 and higher.
Server: Windows Server 2003 SP1 and higher. 
进程监视器运行于:

客户端:Windows XP SP2及更高版本。

服务器:Windows Server 2003 SP1及更高版本。
http://www.microsoft.com/technet/sysinternals/utilities/processmonitor.mspx 

When using Process Monitor: 当使用Process Monitor

For a Database home 
------- 
When an Oracle instance is active. 
Select/find the Oracle executable oracle.exe 
(control-f -> oracle.exe) 

For a Client home 
--- 
Start a
 client tool like SQLPlus. 
Select sqlplus.exe or sqlplusw.exe 
(control-f -> sqlplus) 

Right mouse click (ctrl-P) -> properties -> Process tab 
This shows an overview of the process, including the architecture. 
这显示了过程的概述,包括架构。
Example: 
Architecture : 32 bit 
- or 
Architecture : 64 bit 


Method 4.
=========

Check sqlplus.exe with utilities like file.exe which are available for windows from GNU.
用像file.exe的可从GNU用于Windows的实用程序检查sqlplus.exe。
Disclaimer: Please check with your System Administration team before using any third party tools.
免责声明:请在使用任何第三方工具之前向系统管理团队查询。
EXAMPLES:

32-bit Installation report:

C:\Program Files\GnuWin32\bin>file.exe -s C:\oracle\product\10.2.0\client_1\BIN\sqlplus.exe
sqlplus.exe; PE32 executable for MS Windows (console) Intel 80386 32-bit

64-bit Installation report:

C:\Program Files (x86)\GnuWin32\bin>file.exe -s C:\oracle\product\10.2.0\client_1\BIN\sqlplus.exe
C:\oracle\product\10.2.0\client_1\BIN\sqlplus.exe; PE32+ executable for MS Windows (console) Mono/.Net assembly

Note: option -s is mandatory to check exe files.
注意:选项-s是检查exe文件的强制性选项。

Method 5. 方法5:
========= 
This method can be used for both Server and Client homes 

Use the Microsoft utility FileVer. 
Filever.exe: File Version 

此方法可用于服务器和客户端homes

 

使用Microsoft实用程序FileVer。

Filever.exe:文件版本

This command-line tool examines the version resource structure of a file or a directory of files on either a local or a remote computer. 
It displays information on the versions of executable files such as .exe files and dynamic-link libraries (DLLs). 
此命令行工具检查本地或远程计算机上的文件或文件目录的版本资源结构。

它显示可执行文件的版本信息,如.exe文件和动态链接库(DLL)。
Information on FileVer: 
http://support.microsoft.com/kb/913111 

usage: 
filever [[drive:][path][file_name]] 

The second section of the output contains the file header information. 输出的第二部分包含文件头信息。
However, because the 32-bit version of the Filever.exe tool does not recognize x64-based files, the header information may appear differently when you run the 32-bit version of the Filever.exe tool against a 64-bit file. 
但是,由于32位版本的Filever.exe工具无法识别基于x64的文件,当您针对64位文件运行32位版本的Filever.exe工具时,头信息可能会有所不同。
The following header information may appear in the second section of the output: 
以下标题信息可能显示在输出的第二部分中:
• W32i64 
This header represents a file from an Itanium-based system. 
This file type appears the same way in the output of the 32-bit and 64-bit versions of the Filever.exe tool. 

• Wx64 
This header represents an x64-based file type. 
The 64-bit version of the Filever.exe tool generates this header for an x64-based file. 

• W32 
This header represents an x64-based file type. 
The 32-bit version of the Filever.exe tool generates this header for an x64-based file. 

Note This header differs from the 32-bit file header because the header does 
not include the letter "i." 
注意此标头与32位文件头不同,因为标头

不包括字母“i”。
• W32i 
This header represents an x86-based (32-bit) file. 
This file type appears the same way in the output of the 32-bit and 64-bit versions 
of the Filever.exe tool. 
此标头表示基于x86(32位)的文件。

此文件类型在32位和64位版本的输出中以相同的方式显示的Filever.exe工具。
Example: 例如

C:\Program Files\Support Tools> 
FILEVER D:\oracle\product\10.2.0\client_3\BIN\sqlplus.exe 
--a-- W32i DLL ENU 0.0.0.0 shp 552,960 08-16-2005 sqlplus.exe 

Comments: w32i means a 32 bit executable as showed by the 32-bit FILEVER 


REMARK:
------------
The provided link (http://support.microsoft.com/kb/913111) refers to the MS Support tools for 32-bit Windows XP SP2.
A similar download for Windows Server 2003 32-bit/64-bit) was not found.
 提供的链接(http://support.microsoft.com/kb/913111)是指用于32位Windows XP SP2的MS支持工具。

找不到类似的下载Windows Server 2003 32位/ 64位)。
However, tests showed that the 32-bit XP executable of Filever also works 
on 64-bit Windows 2003.

但是,测试表明Filever的32位XP可执行文件也可以工作

在64位Windows 2003上。
Example:
C:\>filever C:\oracle\product\10.2.0\db_1\BIN\sqlplus.exe
--a-- W32 DLL ENU 0.0.0.0 shp 707,072 10-17-2005 sqlplus.exe
 
C:>filever C:\oracle\product\10.2.0\db_1\BIN\oracle.exe
--a-- W32 APP ENU 10.2.0.1 shp 71,606,784 10-26-2005 oracle.exe
  
The 32-bit version of the Filever.exe tool generates this header for an x64-based file. 
32位版本的Filever.exe工具为基于x64的文件生成此标题。

 

下载方式:https://pan.quark.cn/s/a4b39357ea24 布线问题(分支限界算法)是计算机科学和电子工程领域中一个广为人知的议题,它主要探讨如何在印刷电路板上定位两个节点间最短的连接路径。 在这一议题中,电路板被构建为一个包含 n×m 个方格的矩阵,每个方格能够被界定为可通行或不可通行,其核心任务是定位从初始点到最终点的最短路径。 分支限界算法是处理布线问题的一种常用策略。 该算法与回溯法有相似之处,但存在差异,分支限界法仅需获取满足约束条件的一个最优路径,并按照广度优先或最小成本优先的原则来探索解空间树。 树 T 被构建为子集树或排列树,在探索过程中,每个节点仅被赋予一次成为扩展节点的机会,且会一次性生成其全部子节点。 针对布线问题的解决,队列式分支限界法可以被采用。 从起始位置 a 出发,将其设定为首个扩展节点,并将与该扩展节点相邻且可通行的方格加入至活跃节点队列中,将这些方格标记为 1,即从起始方格 a 到这些方格的距离为 1。 随后,从活跃节点队列中提取队首节点作为下一个扩展节点,并将与当前扩展节点相邻且未标记的方格标记为 2,随后将这些方格存入活跃节点队列。 这一过程将持续进行,直至算法探测到目标方格 b 或活跃节点队列为空。 在实现上述算法时,必须定义一个类 Position 来表征电路板上方格的位置,其成员 row 和 col 分别指示方格所在的行和列。 在方格位置上,布线能够沿右、下、左、上四个方向展开。 这四个方向的移动分别被记为 0、1、2、3。 下述表格中,offset[i].row 和 offset[i].col(i=0,1,2,3)分别提供了沿这四个方向前进 1 步相对于当前方格的相对位移。 在 Java 编程语言中,可以使用二维数组...
源码来自:https://pan.quark.cn/s/a4b39357ea24 在VC++开发过程中,对话框(CDialog)作为典型的用户界面组件,承担着与用户进行信息交互的重要角色。 在VS2008SP1的开发环境中,常常需要满足为对话框配置个性化背景图片的需求,以此来优化用户的操作体验。 本案例将系统性地阐述在CDialog框架下如何达成这一功能。 首先,需要在资源设计工具中构建一个新的对话框资源。 具体操作是在Visual Studio平台中,进入资源视图(Resource View)界面,定位到对话框(Dialog)分支,通过右键选择“插入对话框”(Insert Dialog)选项。 完成对话框内控件的布局设计后,对对话框资源进行保存。 随后,将着手进行背景图片的载入工作。 通常有两种主要的技术路径:1. **运用位图控件(CStatic)**:在对话框界面中嵌入一个CStatic控件,并将其属性设置为BST_OWNERDRAW,从而具备自主控制绘制过程的权限。 在对话框的类定义中,需要重写OnPaint()函数,负责调用图片资源并借助CDC对象将其渲染到对话框表面。 此外,必须合理处理WM_CTLCOLORSTATIC消息,确保背景图片的展示不会受到其他界面元素的干扰。 ```cppvoid CMyDialog::OnPaint(){ CPaintDC dc(this); // 生成设备上下文对象 CBitmap bitmap; bitmap.LoadBitmap(IDC_BITMAP_BACKGROUND); // 获取背景图片资源 CDC memDC; memDC.CreateCompatibleDC(&dc); CBitmap* pOldBitmap = m...
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值