Oracle dbca Exception in thread “main” 解决方法

news/2025/4/22 1:01:51

 

在一套DB服务器上运行DBCA 命令,报错:

 

[oracle@game_db ~]$ dbca

Exception in thread "main"

[oracle@game_db ~]$

[oracle@game_db ~]$ exportDISPLAY=1921.68.3.189:0.0

[oracle@game_db ~]$ dbca

Exception in thread "main"

 

几年都没有遇到这种问题了,起初以为是DISPLAY变量的问题,设置以后也不行,查看了一个DBCA的log 日志:

 

[oracle@game_db scripts]$ cd $ORACLE_HOME/cfgtoollogs/dbca  

[oracle@game_db dbca]$ ls

trace.log

[oracle@game_db dbca]$ tail -50 trace.log

java.lang.UnsatisfiedLinkError:/home/oracle_app_10204/jdk/jre/lib/i386/libawt.so: libXp.so.6: cannot openshared 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)

        atsun.awt.DebugHelper.<clinit>(DebugHelper.java:29)

       at java.awt.Component.<clinit>(Component.java:506)

       atoracle.sysman.assistants.util.wizard.WizardObject.<init>(WizardObject.java:64)

       atoracle.sysman.assistants.dbca.ui.DBCAWizard.<init>(DBCAWizard.java:425)

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

       atoracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)

       atoracle.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.6: cannot open shared object file:No such file or directory

 

验证一下包:

[oracle@game_db dbca]$ rpm -qa|grep libXp

libXpm-devel-3.5.5-3

libXpm-3.5.5-3

 

 

将libXp 包打上:

[root@game_db Server]# ll

-rwxrwSrwx 1 root root 22996 2007-07-26libXp-1.0.0-8.1.el5.i386.rpm

-rwxrwSrwx 1 root root 15262 2007-07-26libXp-devel-1.0.0-8.1.el5.i386.rpm

[root@game_db Server]# rpm -ivh libXp*.rpm

warning: libXp-1.0.0-8.1.el5.i386.rpm:Header V3 DSA signature: NOKEY, key ID 37017186

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

  1:libXp                 ########################################### [ 50%]

  2:libXp-devel           ########################################### [100%]

 

[root@game_db Server]# rpm -qa|grep libXp

libXpm-devel-3.5.5-3

libXp-1.0.0-8.1.el5

libXpm-3.5.5-3

libXp-devel-1.0.0-8.1.el5

 

在次DBCA 成功:

[root@game_db ~]# xhost +

access control disabled, clients canconnect from any host

[root@game_db ~]# su - oracle

[oracle@game_db ~]$ exportDISPLAY=192.168.3.189:0.0

[oracle@game_db ~]$ dbca

 

这套系统是之前的同事安装的,整个安装目录,都没有遵守OFA的架构,所以相关的目录结构看起来感觉有点别扭。

       Oracle OFA(OptimalFlexible Architecture) 说明

http://www.cndba.cn/Dave/article/1111

 

 

 

 

 

 

-------------------------------------------------------------------------------------------------------

版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!

QQ:492913789

Email:ahdba@qq.com

Blog:  http://www.cndba.cn/dave

Weibo:    http://weibo.com/tianlesoftware

Twitter:  http://twitter.com/tianlesoftware

Facebook: http://www.facebook.com/tianlesoftware

Linkedin: http://cn.linkedin.com/in/tianlesoftware

 

-------加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请----

DBA1 群:62697716(满);   DBA2 群:62697977(满)  DBA3 群:62697850(满)  

DBA 超级群:63306533(满);  DBA4 群:83829929   DBA5群: 142216823

DBA6 群:158654907    DBA7 群:172855474  


https://dhexx.cn/news/show-2339560.html

相关文章

Oracle Expdp/Impdp 进行数据迁移的 几点注意事项

关于Expdp/Impdp 命令的具体使用&#xff0c;在之前的blog里有说明&#xff0c;参考&#xff1a; Oracle expdp/impdp 使用示例 http://www.cndba.cn/Dave/article/1411 exp/imp 与 expdp/impdp 对比 及使用中的一些优化事项 http://www.cndba.cn/Dave/article/1428 Oracle …

生活了多少天

一万天 SELECT ROUND(TO_NUMBER(TO_DATE(2010-06-21, yyyy-MM-dd) - TO_DATE(1983-02-03, yyyy-MM-dd))) FROM DUAL SELECT ROUND(TO_NUMBER(SYSDATE - TO_DATE(1983-02-03, yyyy-MM-dd))) FROM DUAL

Oracle Resumable Space Allocation 特性 说明

一.Resumable Space Allocation 说明 从9i开始&#xff0c;Oracle提供了一种避免因为space Error而导致事务异常的操作: resumable spaceallocation. 在Oracle 10g的OCP 考试中有考resumable session 的这个知识点。 官网对Resumable的解释&#xff1a; Advantage is forDBA…

转 Struts跳转大全

1. 完整的action <action path"/aFullAction" type"somePackage.someActionClass"> name"someForm" input"someJSP.jsp" <forward name"successful" path"someJSP.jsp"/> <forward name"fail…

Oracle TIMED_STATISTICS 参数 说明

MOS上有关TIMED_STATISTICS参数说明&#xff1a; Init.ora Parameter "TIMED_STATISTICS" Reference Note [ID 30824.1] Health CheckAlert: Consider setting TIMED_STATISTICS and STATISTICS_LEVEL to recommendedlevels [ID 957433.1] Version Parameter …

控制 html元素 显示/隐藏

1。编写js函数<script type"text/javascript">function display(y){$(y).style.display($(y).style.display"none")?"":"none";} function $(s){return document.getElementById(s);} </script> 2. 要显示/隐藏的html元素…

Oracle Resource Manager 概述

官网的链接说明 About Oracle Database Resource Manager http://docs.oracle.com/cd/E11882_01/server.112/e25494/dbrm001.htm#i1007556 一. Solutions Does the Resource ManagerProvide for Workload Management? When databaseresource allocation decisions are left…

日期类的加减及java中所以日期类的操作算法大全

1.计算某一月份的最大天数1Calendar timeCalendar.getInstance();2time.clear();3time.set(Calendar.YEAR,year); //year 为 int 4time.set(Calendar.MONTH,i-1);//注意,Calendar对象默认一月为0 5int daytime.getActualMaximum(Calendar.DAY_OF_MONTH);//本月份的天…

Linux 下Oracle 开机自启动 与 oratab, dbstart 脚本 说明

一./etc/oratab说明 直接使用cat 查看这个文件&#xff1a; gg1:/home/oracle> cat /etc/oratab ## This file is used by ORACLEutilities. It is created by root.sh # and updated by the Database ConfigurationAssistant when creating # a database.# A colon, :, i…

解析properties资源文件

[/code][code"java"]import java.io.FileInputStream;import java.io.FileOutputStream;import java.util.HashMap;import java.util.Iterator;import java.util.Properties;/** *//** * 功能&#xff1a;解析资源文件 * */public class PropertyUtil { private P…