Find OS Kernel Bit in UNIX - Ready reckoner

Listed below is the ready reckoner for finding out the kernel bit information for Linux, Solaris, HP-UX and IBM AIX, which are the most commonly used OS for Oracle Apps.

Linux

getconf LONG_BIT
or
uname -m (works for x86-64 bit servers. Not tested it in 32 bit servers)

eg:
$ getconf LONG_BIT
64
$ uname -m
x86_64
$


Sun SPARC Solaris

isainfo -kv

eg:
$ isainfo -kv
64-bit sparcv9 kernel modules
$

HP-UX

getconf KERNEL_BITS

eg:
$ getconf KERNEL_BITS
64
$

IBM AIX

bootinfo -K

Not tested as I currently do not have any AIX servers to test on!


Note 1: To find whether a given executable is 32-bit or 64-bit, use the command

file <executable_name>
eg:
$ file oracle
oracle: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped
$ file tnslsnr
tnslsnr: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped
$ file sqlplus
sqlplus: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped


Note 2: You can install a 32-bit executable on a 64-bit OS but not vice-versa.

Comments

Popular posts from this blog

java.lang.ExceptionInInitializerError while trying to Access login page

Solution to "End Program - WMS Idle"

WGET shell Script for downloading patches