Oracle中建库时报Exception in thread main

Linux操作系统上安装Oracle 10g,在启动dbca的时候报 Exception in thread "main" 错误,详细内容如下:

[oracle@CentOS ~]$ dbca
Exception in thread "main"
[oracle@rac1 ~]$

经检查dbca的log如下:

[oracle@centos ~]$ cd $ORACLE_HOME/cfgtoollogs/dbca

[oracle@centos dbca]$ vi trace.log
java.lang.UnsatisfiedLinkError: /u01/app/oracle/product/10.2.0/db_1/jdk/jre/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(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)

注意标记为红色的行,确认是缺少libXp.so,解决方法是找到Linux安装盘,安装libXp包,问题解决

安装过程如下:

[root@centos Server]# rpm -Uvh libXp-1.0.0-8.1.el5.i386.rpm
warning: libXp-1.0.0-8.1.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:libXp ########################################### [100%]

安装完成后,检查libXp包状态

[root@centos Server]# rpm -qa|grep Xp
libXpm-3.5.5-3
libXp-1.0.0-8.1.el5

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/a6841a686f6a6e5b32194ad75964a58c.html