install oracle for centos5.6

lovehewenyu發表於2012-03-28

伺服器:centos 5.6   Linux mycos-s 2.6.18-238.el5 #1 SMP Thu Jan 13 16:24:47 EST 2011 i686 i686 i386 GNU/Linux

資料庫:10.2.0.1 32bit

安裝出現亂碼內功如下:

[oracle@mycos-s ~]$ /guazai/runInstaller -ignoreSysPreReqs
正在啟動 Oracle Universal Installer...

正在檢查安裝程式要求...

檢查作業系統版本: 必須是redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
                                      未通過 <<<<


>>> 忽略未通過的必需先決條件。繼續...

準備從以下地址啟動 Oracle Universal Installer /tmp/OraInstall2012-03-27_04-13-31PM. 請稍候...[oracle@mycos-s ~]$ Oracle Universal Installer, 版本 10.2.0.1.0 正式版
版權所有 (c) 1999, 2005, Oracle。保留所有權利。

Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2012-03-27_04-13-31PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..
java.lang.UnsatisfiedLinkError: /tmp/OraInstall2012-03-27_04-13-31PM/jre/1.4.2/lib/i386/libawt.so: libXp.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(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at sun.security.action.LoadLibraryAction.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
        at sun.awt.DebugHelper.(Unknown Source)
        at java.awt.Component.(Unknown Source)
        at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.(OiifmGraphicInterfaceManager.java:222)
        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
        at oracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:436)
        at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:926)
        at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)
Exception in thread "main" java.lang.NoClassDefFoundError
        at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.(OiifmGraphicInterfaceManager.java:222)
        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
        at oracle.sysman.oii.oiif.oiifm.OiifmAlert.(OiifmAlert.java:151)
        at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:984)
        at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)

此問題提示:Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2012-03-27_04-13-31PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..
第一印象:缺少libXp包,或是版本不對。然後在映象中尋找到了。

[oracle@mycos-s CentOS]$ ls -l | grep libXp
-rw-r--r-- 2  500  500     23102 2007-11-21 libXp-1.0.0-8.1.el5.i386.rpm
-rw-r--r-- 2  500  500     15174 2007-11-21 libXp-devel-1.0.0-8.1.el5.i386.rpm
-rw-r--r-- 2  500  500     46500 2007-11-19 libXpm-3.5.5-3.i386.rpm
-rw-r--r-- 2  500  500     31336 2007-11-19 libXpm-devel-3.5.5-3.i386.rpm

rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm (安裝了這個包)

然後嘗試安裝:如果版本不通過,你可以跳過版本。命令如下:

 /guazai/runInstaller -ignoreSysPreReqs

總結:實施和管理過程,往往錯誤提示很重要。希望大家關注錯誤提示,不要被英文嚇怕,中文這麼難你都會了,難道你會怕英文麼。


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26442936/viewspace-719700/,如需轉載,請註明出處,否則將追究法律責任。

相關文章