LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-05-2012, 09:22 AM   #1
th3n3d
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
Oracle 11gR2 Installation on RHEL 6.2 with VMWARE Java 132 error


Hello all I'm having some difficulty installing Oracle 11gR2 on RHEL 6.2 I have compiled a giant list of every single step I have taken so far I installed RHEL 6.2 on VMWARE it did it's easy install automatically I Selected 4gb of memory Selected max size of 80Gb Selected 2 processors

I have done alot of googling in advance and beleive I have fixed alot of the common problems people have when they get this Java:132 error (such as doing su - then su - oracle and trying to install) but I'm still having problems

The version of oracle i downloaded is Linux x86-64 11.2.0.1 I am installing this on a local machine NOT a remote machine
I followed the following documentation http://docs.oracle.com/cd/E11882_01/...e24326/toc.htm

I selected the following prerequisites for my VMWARE machine (should be irrelevant because I have tried different selections and gotten the same error)
4gb of memory
max size of 80Gb
2 processors

The version of oracle i downloaded is Linux x86-64 11.2.0.1

I am installing this on a local machine NOT a remote machine

1. Easy installed with RHEL 6.2 for VMWARE
2. Registered with red hat so I can get updates
3. Reinstalled vmware-tools by pressing enter at every choice
4. Sudo yum update at the end something about GPG key selected y then y
5. Checked Memory Requirements
grep MemTotal /proc/meminfo

MemTotal: 3921368 kb

uname -m

x86_64

grep SwapTotal /proc/meminfo
SwapTotal: 6160376 kb

free
total used free shared buffers cached
Mem: 3921368 2032012 1889356 0 76216 1533268
-/+ buffers/cache: 422528 3498840
Swap: 6160376 0 6160376

df -h /dev/shm
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.9G 276K 1.9G 1% /dev/shm

df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 73G 2.7G 67G 4% /


df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 73G 2.7G 67G 4% /
tmpfs 1.9G 276K 1.9G 1% /dev/shm
/dev/sda1 291M 58M 219M 21% /boot


All looked fine to me except maybe for swap?

6. Software Requirements
cat /proc/version
Linux version 2.6.32-220.el6.x86_64 (mockbuild@x86-004.build.bos.redhat.com) (gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC) ) #1 SMP Wed Nov 9 08:03:13 EST 2011

uname -r
2.6.32-220.el6.x86_64
(same as above but whatever)

According to the tutorial should be
On Red Hat Enterprise Linux 6

2.6.32-71.el6.x86_64 or later


7. These are the versions of software I have installed

binutils-2.20.51.0.2-5.28.el6.x86_64
compat-libcap1-1.10-1.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
compat-libstdc++-33.i686 0:3.2.3-69.el6
gcc-4.4.6-3.el6.x86_64
gcc-c++.x86_64 0:4.4.6-3.el6
glibc-2.12-1.47.el6_2.12.x86_64
glibc-2.12-1.47.el6_2.12.i686
glibc-devel-2.12-1.47.el6_2.12.x86_64
glibc-devel.i686 0:2.12-1.47.el6_2.12
ksh.x86_64 0:20100621-12.el6_2.1
libgcc-4.4.6-3.el6.x86_64
libgcc-4.4.6-3.el6.i686
libstdc++-4.4.6-3.el6.x86_64
libstdc++.i686 0:4.4.6-3.el6
libstdc++-devel.i686 0:4.4.6-3.el6
libstdc++-devel-4.4.6-3.el6.x86_64
libaio-0.3.107-10.el6.x86_64
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6.x86_64
libaio-devel-0.3.107-10.el6.i686
make-3.81-19.el6.x86_64
sysstat-9.0.4-18.el6.x86_64

unixODBC-2.2.14-11.el6.x86_64
unixODBC-devel-2.2.14-11.el6.x86_64
unixODBC-devel-2.2.14-11.el6.i686
unixODBC-2.2.14-11.el6.i686

8. Probably messed up here or step 9
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba(not sure why this isn't in the tutorial)
/usr/sbin/useradd -g oinstall -G dba oracle
passwd oracle

/sbin/sysctl -a | grep sem
Xkernel.sem = 250 32000 32 128

/sbin/sysctl -a | grep shm
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
kernel.shmmni = 4096
vm.hugetlb_shm_group = 0

/sbin/sysctl -a | grep file-max
Xfs.file-max = 384629

/sbin/sysctl -a | grep ip_local_port_range
Xnet.ipv4.ip_local_port_range = 32768 61000

/sbin/sysctl -a | grep rmem_default
Xnet.core.rmem_default = 124928

/sbin/sysctl -a | grep rmem_max
Xnet.core.rmem_max = 131071

/sbin/sysctl -a | grep wmem_max
Xnet.core.wmem_max = 131071

/sbin/sysctl -a | grep wmem_default
Xnet.core.wmem_default = 124928


Here is my sysctl.conf file I only added the items that were bigger:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0

# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536

# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296

fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

/sbin/sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
error: "net.bridge.bridge-nf-call-iptables" is an unknown key
error: "net.bridge.bridge-nf-call-arptables" is an unknown key
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576


su - oracle

ulimit -Sn
1024
ulimit -Hn
1024
ulimit -Su
1024
ulimit -Hu
30482
ulimit -Su
1024
ulimit -Ss
10240
ulimit -Hs
unlimited

su -
nano /etc/security/limits.conf
added to the end of the file (no >>>> in the actual file)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

exit
exit
su -


mkdir -p /app/
chown -R oracleinstall /app/
chmod -R 775 /app/

9. THIS IS PROBABLY WHERE I MESSED UP

I then exited out of the root account so now I'm back in my account chris then I
su - oracle

echo $SHELL
/bin/bash

umask
0022 (so it should be set already to what is neccesary)

Also from what I have read I do not need to set the DISPLAY variable because I'm installing this on the localhost

I then opened the .bash_profile of the oracle and changed it to the following

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin; export PATH
ORACLE_BASE=/app/oracle
ORACLE_SID=orcl
export ORACLE_BASE ORACLE_SID

I then shutdown the virtual machine shared my desktop folder from my windows 7 then turned back on the virtual machine logged in as chris opened up a terminal then:
su -

for some reason the shared folder didn't appear so I reinstalled vmware tools again and restarted
then same as before
su -

cp -R linux_oracle/database /db; chown -R oracleinstall /db; chmod -R 775 /db; ll /db
drwxrwxr-x. 8 oracle oinstall 4096 Jun 5 06:20 database

exit
su - oracle
cd /db/database
./runInstaller


AND FINALLY THE INFAMOUS JAVA:132 ERROR MESSAGE

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 80 MB. Actual 65646 MB Passed
Checking swap space: must be greater than 150 MB. Actual 6015 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-06-05_06-47-12AM. Please wait ...[oracle@localhost database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2012-06-05_06-47-12AM/jdk/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:769)
at java.lang.System.load(System.java:968)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1509)
at java.awt.Toolkit.<clinit>(Toolkit.java:1530)
at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)
at oracle.install.commons.util.Application.startup(Application.java:758)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)

Last edited by th3n3d; 06-05-2012 at 09:32 AM.
 
Old 06-05-2012, 09:38 AM   #2
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
Code:
libXext.so.6: cannot open shared object file: No such file or directory
Looks like you have an unmet dependency. Some of the requirements are 32bit as well as 64bit.
 
Old 06-05-2012, 09:52 AM   #3
th3n3d
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks a million

I ended up running from root
yum install libXp*
yum install libXp*.i686

for anyone else having this problem
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I am trying to install Oracle 11gR2 over Fedora 16 (32 BIT) richhicklin Linux - Newbie 5 06-01-2012 07:42 PM
oracle 11gr1 to oracle 11gr2 hpux to linux dthaler Linux - Software 1 08-14-2011 02:52 PM
Oracle 11gR2 call_krushna Linux - Software 3 07-28-2011 07:45 AM
Error in installing requred packages for 11gr2 on rhel 5 kamalcold Linux - Newbie 1 12-02-2010 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration