暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Oracle 无法升级线程 “主” java中的数据库异常。lang。不满足链接错误libXext.so.6: 无法打开共享对象文件

askTom 2017-08-08
327

问题描述

亲爱的团队,

当我尝试将数据库从11.2.0.1升级到11.2.0.3时,我遇到了问题。
我有提取zip文件,也有创建目录我所做的一切,但没有运气。

[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.(Toolkit.java:1530)
 at com.jgoodies.looks.LookUtils.isLowResolution(LookUtils.java:484)
 at com.jgoodies.looks.LookUtils.(LookUtils.java:249)
 at com.jgoodies.looks.plastic.PlasticLookAndFeel.(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

专家解答

MOS note 366997.1有这样的说法:

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:

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


MOS中还有其他几个与该错误有关的注释。所以如果这没有帮助,检查一下。
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论