How To Verify the Word Size (32bit vs 64bit) of the Oracle Binary on MS Windows systems (文档 ID 46506
2016-12-19 16:15
931 查看
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) -& 4000 gt; 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的文件生成此标题。 |
相关文章推荐
- How To Verify the Word Size (32bit vs 64bit) of the Oracle Binary on MS Windows systems (文档 ID 46506
- How to restore ASM based OCR after complete loss of the CRS diskgroup on Linux systems[ID 1062983.1]
- How to restore ASM based OCR after complete loss of the CRS diskgroup on Linux/Unix systems [ID 1062
- How To Add/Increase The Size Of Redo Log Files In Rac Environment? (文档 ID 779306.1)
- How to Automate Startup/Shutdown of Oracle Database on Linux [ID 222813.1]
- How To Query And Change The Oracle Hidden Parameters In Oracle 10g and 11g (文档 ID 315631.1)
- How to Determine the Version of Oracle XML Publisher for Oracle E-Business Suite 11i and Release 12 (Doc ID 362496.1)
- How to change the language of oracle sqlplus from chinese to english in windows(如何将oracle sql plus中的中文变成英文版)
- How To Reclaim Wasted Space on The Segment (Table, Index and LOB) and Tablespace Levels (文档 ID 16827
- HowTo Restore RMAN Disk backups of RAC Database to Single Instance On Another Node (文档 ID 415579.1)
- How to Calculate the Number of IOPS and Throughput of a Database (文档 ID 2206831.1)
- How to Determine the Blocking Session for Event: 'cursor: pin S wait on X' (文档 ID 786507.1)
- How to Check Whether Oracle Binary/Instance is RAC Enabled and Relink Oracle Binary in RAC (文档 ID 28
- How to collect the full path name of the files in ASM diskgroups (文档 ID 888943.1)
- How To Reclaim Wasted Space on The Segment (Table, Index and LOB) and Tablespace Levels (文档 ID 16827
- How to Check Whether Oracle Binary/Instance is RAC Enabled and Relink Oracle Binary in RAC (文档 ID 28
- How to collect the full path name of the files in ASM diskgroups (文档 ID 888943.1)
- How to Interpret the OS stats section of an AWR report (文档 ID 762526.1)
- 【翻译自mos文章】How to Set or Switch Oracle Homes on Windows (Doc ID 969581.1)
- How To Get The Size of RAW Devices On Linux