oracle dbca報Exception in thread main

eymit發表於2012-12-26

 

作業系統版本: redhat 6.2 64

 

資料庫版本oracle 10.2.0.4

 

 

問題描述

 安裝軟體成功後,安裝過程無報錯,執行dbca報下面錯,建庫的介面出不來

 [oracle2@kvm14-10 ~]$ dbca

Exception in thread "main" [oracle2@kvm14-10 ~]$

 

 

問題診斷

檢視dbca安裝日誌,發現為缺少包引起的

 

[oracle2@kvm14-10 bin]$ cd $ORACLE_HOME/cfgtoollogs/dbca 

[oracle2@kvm14-10 dbca]$ more trace.log

java.lang.UnsatisfiedLinkError: /opt/software/oracle2/product/10.2.0/jdk/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared obje

ct file: No such file or directory

        at java.lang.ClassLoader$NativeLibrary.load(Native Method)

        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)

        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)

        at java.lang.Runtime.loadLibrary0(Runtime.java:788)

        at java.lang.System.loadLibrary(System.java:834)

        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)

        at java.security.AccessController.doPrivileged(Native Method)

        at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)

        at sun.awt.DebugHelper.(DebugHelper.java:29)

        at java.awt.Component.(Component.java:506)

        at oracle.sysman.assistants.util.wizard.WizardObject.(WizardObject.java:64)

        at oracle.sysman.assistants.dbca.ui.DBCAWizard.(DBCAWizard.java:425)

        at oracle.sysman.assistants.dbca.ui.UIHost.(UIHost.java:214)

        at oracle.sysman.assistants.dbca.ui.InteractiveHost.(InteractiveHost.java:54)

        at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:160)

        at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:94)

        at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:180)

 

 

 

解決方案

 

根據上面報錯說明缺少包,到安裝光碟的Packages下面找到相關的32位的包並執行安裝

cd /redhat6/Packages/

[root@kvm14-10 Packages]# rpm -ivh libXp-1.0.0-15.1.el6.i686.rpm

warning: libXp-1.0.0-15.1.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY

Preparing...                ########################################### [100%]

   1:libXp                  ########################################### [100%]

[root@kvm14-10 Packages]#

 

 

如果沒有光碟,伺服器配置了yum或可以連線外網,也可以使用yum安裝這個32位的包

 

 

安裝完之後執行dbca後成功

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

相關文章