집 >데이터 베이스 >MySQL 튜토리얼 >Oracle dbca报Exception in thread main
Oracle dbca报Exception in thread main
操作系统版本: 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.
at java.awt.Component.
at oracle.sysman.assistants.util.wizard.WizardObject.
at oracle.sysman.assistants.dbca.ui.DBCAWizard.
at oracle.sysman.assistants.dbca.ui.UIHost.
at oracle.sysman.assistants.dbca.ui.InteractiveHost.
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后成功。