Client Sql*Plus version [message #596836] |
Thu, 26 September 2013 11:33 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/0d8d54604424af68f3c669fe2bc54c02?s=64&d=mm&r=g) |
neetesh87
Messages: 280 Registered: September 2011 Location: bhopal
|
Senior Member |
|
|
hello guys,
greetings.i need to know my Oracle client version whether it is of 32-bit or 64-bit.
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\>sqlplus -v
SQL*Plus: Release 10.2.0.1.0 - Production
C:\>
it shows me only version not bit information.
is there any other command to get it.
your help will be appreciated great.
thanks in advance.......
|
|
|
|
Re: Client Sql*Plus version [message #596840 is a reply to message #596836] |
Thu, 26 September 2013 11:56 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](/forum/images/custom_avatars/102589.gif) |
Michel Cadot
Messages: 68733 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
E:\>dumpbin /headers %ORACLE_HOME%\bin\sqlplus.exe
Microsoft (R) COFF Binary File Dumper Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
<...>
FILE HEADER VALUES
14C machine (i386)
<...>
32 bit word machine
<...>
You have dumpbin.exe if you have any version of Visual Studio or you can download it there or there or there.
[Updated on: Thu, 26 September 2013 11:57] Report message to a moderator
|
|
|
Re: Client Sql*Plus version [message #596855 is a reply to message #596836] |
Thu, 26 September 2013 13:41 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
neetesh87 wrote on Thu, 26 September 2013 22:03
greetings.i need to know my Oracle client version whether it is of 32-bit or 64-bit.
Issue this statement -
SQL> select distinct address from v$sql where rownum<2;
ADDRESS
--------
285B4CC4
1 rows selected
If you see a 8 byte address it is a 32 bit installation, but if you see a 16 byte address it is a 64bit installation. In the example code demonstrated above, it is a 32-bit installation.
Similar OTN forum question has been answered
Regards,
Lalit
|
|
|
|
Re: Client Sql*Plus version [message #596862 is a reply to message #596859] |
Thu, 26 September 2013 15:20 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
Oops, yes correct Michel. Address attribute of v$sql will give that of server's and NOT client's. My bad.
So, let me correct myself with a helpful post from Arju's blog - How to Identify OS or Oracle 64 bit or 32 bit
Which I actually found from this thread.
I don't know why, whenever I want to post metalink notes, I refrain myself, since I don't know whether it is OK to do in the forums.
Regards,
Lalit
|
|
|
|
|
|
|
|
|
|
Re: Client Sql*Plus version [message #596906 is a reply to message #596904] |
Fri, 27 September 2013 06:40 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
ThomasG
Messages: 3212 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
Where have you saved dumpbin.exe? Do a "dir dumpbin.exe" to see if you really have saved it directly under c:\
Otherwise you have to call it with the full path. Also, there has to be a space between dumpbin and /headers.
|
|
|
Re: Client Sql*Plus version [message #596907 is a reply to message #596906] |
Fri, 27 September 2013 06:47 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
gazzag
Messages: 1119 Registered: November 2010 Location: Bedwas, UK
|
Senior Member |
|
|
Like ThomasG says, is dumpbin.exe in your PATH? If not you either have to specify the full path or save it in the same directory that you are in.
|
|
|
|
Re: Client Sql*Plus version [message #596911 is a reply to message #596908] |
Fri, 27 September 2013 07:41 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
ThomasG
Messages: 3212 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
Well it means that dumpbin seems to need link.exe, too. So you might have to install some sort of visual Studio to get it to run after all.
Another option would be to install the GNU File Utility.
http://gnuwin32.sourceforge.net/packages/file.htm
The interesting part that I found there is that while the 32bit sqlplus for Oracle 11.0.2 is a 32-bit Application, the 64-Bit client seems to be a Mono/.net assembly, not a native executable. (or at least get's recognized by "file" as such):
C:\>c:\Programme\GnuWin32\bin\file.exe s:\Client_11_64\sqlplus.exe
s:\Client_11_64\sqlplus.exe; PE32+ executable for MS Windows (console)
Mono/.Net assembly
C:\>c:\Programme\GnuWin32\bin\file.exe s:\Client_11_32\sqlplus.exe
s:\Client_11_32\sqlplus.exe; PE32 executable for MS Windows (console)
Intel 80386 32-bit
C:\>
[Updated on: Fri, 27 September 2013 07:42] Report message to a moderator
|
|
|
|
Re: Client Sql*Plus version [message #596913 is a reply to message #596912] |
Fri, 27 September 2013 08:11 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
ThomasG
Messages: 3212 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
The problem might be that the 32bit and 64bit versions are probably built from the same sources, just with different compile options.
So the "Program itself" might not even know whether it was compiled into a 32bit or 64bit binary.
I just checked, and what I did find was a SQLPLUS_README file in the same directory as the sqlplus.exe, which seems to indicate how/when/where sqlplus was compiled. Perhaps that would be "good enough" of an indication for your case?
SQLPLUS Package Information
===========================
Sun Oct 30 08:05:55 CDT 2011
Client Shared Library 32-bit - 11.2.0.3.0
Windows NT Version V5.2 Service Pack 2
CPU : 2 - type 586, 1 Physical Cores
Process Affinity : 0x0x00000000
Memory (Avail/Total): Ph:7185M/7799M, Ph+PgF:11206M/11690M, VA:1965M/2047M
Operating in ORACLE_HOME environment.
Small timezone file = C:\ADE\aime_77291\oracle\oracore\zoneinfo\timezone_14.dat
Large timezone file = C:\ADE\aime_77291\oracle\oracore\zoneinfo\timezlrg_14.dat
SQLPLUS Package Information
===========================
Wed Nov 2 23:11:13 CDT 2011
Client Shared Library 64-bit - 11.2.0.3.0
Windows Server 2003 Version V5.2 Service Pack 2
CPU : 2 - type 8664, 2 Physical Cores
Process Affinity : 0x0x0000000000000000
Memory (Avail/Total): Ph:6962M/7999M, Ph+PgF:8972M/9606M VM name : VMWare Version (6)
Operating in ORACLE_HOME environment.
Small timezone file = C:\ADE\aime_79294\oracle\oracore\zoneinfo\timezone_14.dat
Large timezone file = C:\ADE\aime_79294\oracle\oracore\zoneinfo\timezlrg_14.dat
[Updated on: Fri, 27 September 2013 08:13] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|