ITPub博客

首页 > 数据库 > Oracle > u01/app/oracle/product/10.2.0/db_1/bin/dbca has failed

u01/app/oracle/product/10.2.0/db_1/bin/dbca has failed

原创 Oracle 作者:duhaiyang 时间:2009-11-14 22:41:16 0 删除 编辑

[oracle@db1 bin]$ ./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....B1.lsnr application ONLINE OFFLINE
ora.db1.gsd application ONLINE ONLINE db1
ora.db1.ons application ONLINE ONLINE db1
ora.db1.vip application ONLINE ONLINE db1
ora....B2.lsnr application ONLINE OFFLINE
ora.db2.gsd application ONLINE ONLINE db2
ora.db2.ons application ONLINE ONLINE db2
ora.db2.vip application ONLINE ONLINE db2

出现以下错误
TNS-12542: TNS:address already in use
TNS-12560: TNS:protocol adapter error
TNS-00512: Address already in use
Linux Error: 98: Address already in use

运行dbca 报错

Command = /u01/app/oracle/product/10.2.0/db_1/bin/dbca has failed
Execution Error : Exception in thread "main" java.lang.NullPointerException
at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:2655)
at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:2599)
at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:2753)
at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:2599)
at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:2745)
at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:2599)
at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:2544)
at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:2514)
at oracle.sysman.assistants.util.NetworkUtils.getLocalListenerAddressForPort(NetworkUtils.java:876)
at oracle.sysman.assistants.util.NetworkUtils.getLocalListenerAddress(NetworkUtils.java:859)
at oracle.sysman.assistants.util.NetworkUtils.getLocalListenerAddresses(NetworkUtils.java:913)
at oracle.sysman.assistants.util.NetworkUtils.needLocalListener(NetworkUtils.java:835)
at oracle.sysman.assistants.util.step.StepContext.setListenersToUpdate(StepContext.java:678)
at oracle.sysman.assistants.util.step.StepContext.(StepContext.java:257)
at oracle.sysman.assistants.dbca.backend.Host.(Host.java:682)

netca 运行配置成功后,系统正常

[oracle@db1 bin]$ ./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....B1.lsnr application ONLINE ONLINE db1
ora.db1.gsd application ONLINE ONLINE db1
ora.db1.ons application ONLINE ONLINE db1
ora.db1.vip application ONLINE ONLINE db1
ora....B2.lsnr application ONLINE ONLINE db2
ora.db2.gsd application ONLINE ONLINE db2
ora.db2.ons application ONLINE ONLINE db2
ora.db2.vip application ONLINE ONLINE db2

dbca 运行系统正常

解决办法:

vipca 和 srvctl 进行修改,添加
unset LD_ASSUME_KERNEL

否则报错

LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL
unset LD_ASSUME_KERNEL

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/52450/viewspace-1028730/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    90
  • 访问量
    314219