1752625 Members
4270 Online
108788 Solutions
New Discussion юеВ

Re: 32 or 64bit

 
SOLVED
Go to solution
Juergen Nagel_1
Frequent Advisor

32 or 64bit

Hello,

How can I find out whether an executable or shared lib is 32bit or 64bit?
Thanks

Juergen
4 REPLIES 4
RAC_1
Honored Contributor
Solution

Re: 32 or 64bit

Many ways to do it.

chatr "file_name"
file "file_name"
There is no substitute to HARDWORK
Yogeeraj_1
Honored Contributor

Re: 32 or 64bit

hi,

e.g.
$ file oracle
oracle: ELF-64 executable object file - PA-RISC 2.0 (LP64)
$

however, in some cases, you may not get it too!
e.g.
$ file zip
zip: PA-RISC1.1 shared executable dynamically linked
$ chatr zip
zip:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
shared library list:
dynamic /usr/lib/libc.2
shared library binding:
deferred
global hash table disabled
plabel caching disabled
global hash array size:1103
global hash array nbuckets:3
shared vtable support disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
third quadrant global data space disabled
data page size: D (default)
instruction page size: D (default)
nulptr references enabled
shared library private mapping disabled
shared library text merging disabled
$


kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
MAUCCI_2
Frequent Advisor

Re: 32 or 64bit

Yes you get it

PA-RISC1.1 means 32-bit

++Cyrille
sasikala
Advisor

Re: 32 or 64bit

Hi ,

You can also see it in the enviroinmental parameter SHLIB_PATH just byt typing on the unix promt as echo $SHLIB_PATH. This parameter is set in .profile file of oracle.

if the SHLIB_PATH has been set as $ORACLE_HOME/lib it is 64-bit, if it is set as $ORACLE_HOME/lib32 , it is 32-bit

Regards
Sasi