Skip to Main Content
  • Questions
  • Unable to upgrade db Exception in thread "main" java.lang.UnsatisfiedLinkError libXext.so.6: cannot open shared object file

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Piyush.

Asked: August 08, 2017 - 11:02 am UTC

Last updated: October 19, 2017 - 2:30 am UTC

Version: 11.2.0.1

Viewed 1000+ times

You Asked

Dear Team,

I am facing issue while i am trying to upgrade my database from 11.2.0.1 to 11.2.0.3.
I have extract zip file and also i have create directory everything i have done but no luck.

[Oracle@localhost Desktop]$ ll /u01/app/oracle/product/11.2.0
total 8
drwxr-xr-x. 74 Oracle oinstall 4096 Jun 16 16:21 dbhome_1
drwxr-xr-x.  2 Oracle oinstall 4096 Jun 18 01:12 dbhome_2
[Oracle@localhost Desktop]$ ls
11.2.0.3
[Oracle@localhost Desktop]$ cd 11.2.0.3
[Oracle@localhost 11.2.0.3]$ ls
database  p10404530_112030_LINUX_1of7.zip  p10404530_112030_LINUX_3of7.zip
grid      p10404530_112030_LINUX_2of7.zip
[Oracle@localhost 11.2.0.3]$ cd database
[Oracle@localhost database]$ ls
doc      readme.html  rpm           sshsetup  welcome.html
install  response     runInstaller  stage
[Oracle@localhost database]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_2
[Oracle@localhost database]$ ./runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 12493 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 1983 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-08-08_11-26-28PM. Please wait ...[Oracle@localhost database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2017-08-08_11-26-28PM/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:1753)
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1649)
 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:1753)
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1670)
 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(LookUtils.java:484)
 at com.jgoodies.looks.LookUtils.<clinit>(LookUtils.java:249)
 at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:135)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:242)
 at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1779)
 at javax.swing.UIManager.setLookAndFeel(UIManager.java:453)
 at oracle.install.commons.util.Application.startup(Application.java:780)
 at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:165)
 at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:182)
 at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:348)
 at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:124)
 at oracle.install.ivw.db.driver.DBInstaller.ma

and Chris said...

MOS note 366997.1 has this to say:

CHANGES

Installing 11.2.0.x database software into a new home.

CAUSE

Solaris: Library libXext.so.0 is missing

Linux: Library libXext.so.6 is missing

This is possibly due to the package providing the library being corrupt or not installed

SOLUTION

Confirm that ALL requirements have been met per:

<Note 169706.1> Oracle RDBMS on AIX, HP-UX, Solaris, Tru64, Linux: Versions, Sizes, Requirements Quick Reference

(You should run a healthcheck per: NOTE:250262.1" target="_blank">250262.1> RDA 4 - Health Check / Validation Engine Guide)



For Solaris:

1. Confirm package SUNWxwplt is installed. If package is installed then reinstall the package SUNWxwplt.

2. Re-try invoking the runInstaller (OUI) to install Oracle database 11.2

./runInstaller



For Linux:

1. Confirm package libXext is installed. When installing 11.2, 64 bit on Linux 64 bit, ensure libXext 64 bit package is installed.And when installing 11.2, 32 bit client on Linux 32 bit /Linux 64 bit then ensure libXext 32 bit package is installed.Run the following Linux command to check if the package is missing:
$ rpm --query --whatprovides 'libXext.so.6'

2. Re-try invoking the runInstaller (OUI) to install Oracle database 11.2

./runInstaller


There are several other notes in MOS related to this error. So if this doesn't help, check there.

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Piyush Mewada, August 09, 2017 - 7:10 pm UTC

Still i am unable to install....

[root@localhost Desktop]# rpm --query --whatprovides 'libXext.so.6'
no package provides libXext.so.6


[root@localhost Desktop]# yum install libXext.so.6
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libXext.i686 0:1.3.3-1.el6 will be installed
--> Processing Dependency: libX11.so.6 for package: libXext-1.3.3-1.el6.i686
--> Running transaction check
---> Package libX11.x86_64 0:1.6.0-2.2.el6 will be updated
--> Processing Dependency: libX11 = 1.6.0-2.2.el6 for package: libX11-devel-1.6.0-2.2.el6.x86_64
---> Package libX11.i686 0:1.6.4-3.el6 will be installed
--> Processing Dependency: libX11-common = 1.6.4-3.el6 for package: libX11-1.6.4-3.el6.i686
--> Processing Dependency: libxcb.so.1 for package: libX11-1.6.4-3.el6.i686
---> Package libX11.x86_64 0:1.6.4-3.el6 will be an update
--> Running transaction check
---> Package libX11-common.noarch 0:1.6.0-2.2.el6 will be updated
---> Package libX11-common.noarch 0:1.6.4-3.el6 will be an update
---> Package libX11-devel.x86_64 0:1.6.0-2.2.el6 will be updated
---> Package libX11-devel.x86_64 0:1.6.4-3.el6 will be an update
--> Processing Dependency: pkgconfig(xcb) >= 1.11.1 for package: libX11-devel-1.6.4-3.el6.x86_64
---> Package libxcb.x86_64 0:1.9.1-2.el6 will be updated
---> Package libxcb.i686 0:1.12-4.el6 will be installed
--> Processing Dependency: libXau.so.6 for package: libxcb-1.12-4.el6.i686
---> Package libxcb.x86_64 0:1.12-4.el6 will be an update
--> Running transaction check
---> Package libXau.i686 0:1.0.6-4.el6 will be installed
---> Package libxcb-devel.x86_64 0:1.9.1-2.el6 will be updated
---> Package libxcb-devel.x86_64 0:1.12-4.el6 will be an update
public_ol6_latest/filelists | 69 MB 00:32
http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/repodata/filelists.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/filelists.xml.gz from public_ol6_latest: [Errno 256] No more mirrors to try.
[root@localhost Desktop]#

Connor McDonald
October 19, 2017 - 2:30 am UTC

Read the instructions here

http://public-yum.oracle.com/

and then run:

yum install oracle-validated

which will get all the prereqs for you

More to Explore

Administration

Need more information on Administration? Check out the Administrators guide for the Oracle Database