ITPub博客

首页 > Linux操作系统 > Linux操作系统 > dbca java.lang.NullPointerException解决方法

dbca java.lang.NullPointerException解决方法

原创 Linux操作系统 作者:wenhual43 时间:2013-09-08 22:49:35 0 删除 编辑
开始以为是/etc/hosts 配置的问题,改了还是有问题,根据网上说的
$ORACLE_HOME/network/admin/listener.ora,一看,还真是,HOST没有,PORT=NULL,改过来,图形界面终于弹出来了。记住这问题,下次遇到就会解决了。
转载自:http://qy02101.blog.163.com/blog/static/1432740562010521113642992/

$ dbca
Exception in thread "main" java.lang.NullPointerException
at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:1897)
at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:1962)
at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:1954)
at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:1946)
at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:1863)
at oracle.sysman.assistants.util.NetworkUtils.getLocalListenerAddress(NetworkUtils.java:736)
at oracle.sysman.assistants.util.NetworkUtils.getLocalListenerAddresses(NetworkUtils.java:774)
at oracle.sysman.assistants.util.NetworkUtils.needLocalListener(NetworkUtils.java:712)
at oracle.sysman.assistants.util.step.StepContext.setListenersToUpdate(StepContext.java:485)
at oracle.sysman.assistants.util.step.StepContext.(StepContext.java:139)
at oracle.sysman.assistants.dbca.backend.Host.(Host.java:454)
at oracle.sysman.assistants.dbca.ui.UIHost.(UIHost.java:185)
at oracle.sysman.assistants.dbca.ui.InteractiveHost.(InteractiveHost.java:54)
at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:141)
at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:85)
at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:161)

解决
#vi $ORACLE_HOME/network/admin/listener.ora
在上面错误的情况下
会丢失
就会报上面的NullPointerException

改正后的格式如下
# LISTENER.ORA Network Configuration File: /opt/oracle/product/9.2.0/network/adm
in/listener.ora
# Generated by Oracle configuration tools.

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.28.176.58)(PORT = 1521))
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /opt/oracle/product/9.2.0)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = homecc)
(ORACLE_HOME = /opt/oracle/product/9.2.0)
(SID_NAME = homecc)
)
)

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

下一篇: HP-UX常用命令
请登录后发表评论 登录
全部评论

注册时间:2011-08-03

  • 博文量
    32
  • 访问量
    114790