Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

32Bit or 64Bit

SOLVED
Go to solution
Christian Marquardt_1
Regular Advisor

32Bit or 64Bit

Hi Guys,
is there any way to find out if a executable is a 32-Bit or 64-Bit executable?
We've an Oracle Agent installed and need to know whether this is 32-Bit or 64-Bit software.

regards
Christian
7 REPLIES
Wim Rombauts
Honored Contributor
Solution

Re: 32Bit or 64Bit

The "file" command shows what executable file it is : PA-RISC2.0 and ELF64 are 64-bit, PA-RISC1.1 and ELF32 are 32-bit if I am not mistaken.
Steven E. Protter
Exalted Contributor

Re: 32Bit or 64Bit

Shalom Christian,

Find the binary.

what binary_name

Can give you a lot of information on the binary.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Christian Marquardt_1
Regular Advisor

Re: 32Bit or 64Bit

Hi all,
thanks for answering. I think my problem is that the emctl "binary" from the Oracle Agent 10g is a shell program which runs several java programs ...
Seems to be a bit difficult to me.

regards
Christian
Wim Rombauts
Honored Contributor

Re: 32Bit or 64Bit

For a java program : look at the output of "ps -fxp "
Again if I am not mistaken :
java/IA64N, java/PA_RISC is 32-bit
java/IA64W, java/PA_RISC2.0W is 64-bit.
Dennis Handly
Acclaimed Contributor

Re: 32Bit or 64Bit

If it isn't obvious which executables are being run, you can use tusc -fp to follow the processes and then use file(1) as Wim said.

Any reason you care whether it is 32 or 64? If your kernel isn't 64 bit, you have other problems. ;-)
Christian Marquardt_1
Regular Advisor

Re: 32Bit or 64Bit

Hi all,
I think I've found it ... the Oracle agent is a perl program which uses the perl executable in the associated ORACLE_HOME.
And if I do this: file /opt/app/oracle/product/agent10g/perl/bin/perl I got this: /opt/app/oracle/product/agent10g/perl/bin/perl: PA-RISC2.0 ...
it seems to be 64-Bit executable.

thanks a lot @all!
Dennis Handly
Acclaimed Contributor

Re: 32Bit or 64Bit

/opt/app/oracle/product/agent10g/perl/bin/perl: PA-RISC2.0 ...
>it seems to be 64-Bit executable.

Unfortunately Wim's strings weren't the whole thing. It must be:
ELF-64 executable object file - PA-RISC 2.0 (LP64)
This is still 32 bit:
PA-RISC2.0 shared executable dynamically linked -not stripped