近日在做实验时,准备将一个数据库删掉,重建一个。偷懒使用DBCA来直接删除并创建。但是当启动DBCA时突然报这样的错误:
奇怪呀。根据JAVA的报错想到,确实这个测试主机的名称确实改变过。由原来的rh4nod1变成了STREAMDB了。修改主机名称肯定是没有错误的。
赶快看看/etc/hosts,哈哈!原来这里原来有这样一个记录信息:
将rh4nod1改成streamdb,然后重新启动DBCA,正常启动!
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x6B0A89
Function=__libc_free+0x49
Library=/lib/tls/libc.so.6
Current Java thread:
at oracle.net.common.NetGetEnv.getLocalHostName(Native Method)
at oracle.net.config.Config.systemName(Unknown Source)
at oracle.net.config.DirectoryService.getSystemObjectPath(Unknown Source)
at oracle.net.config.DirectoryService.qualifyObjectName(Unknown Source)
at oracle.net.config.Listener.<init>(Unknown Source)
at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:2534)
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.<init>(StepContext.java:257)
at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:682)
at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:205)
at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(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)
Unexpected Signal : 11 occurred at PC=0x6B0A89
Function=__libc_free+0x49
Library=/lib/tls/libc.so.6
Current Java thread:
at oracle.net.common.NetGetEnv.getLocalHostName(Native Method)
at oracle.net.config.Config.systemName(Unknown Source)
at oracle.net.config.DirectoryService.getSystemObjectPath(Unknown Source)
at oracle.net.config.DirectoryService.qualifyObjectName(Unknown Source)
at oracle.net.config.Listener.<init>(Unknown Source)
at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:2534)
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.<init>(StepContext.java:257)
at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:682)
at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:205)
at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(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)
奇怪呀。根据JAVA的报错想到,确实这个测试主机的名称确实改变过。由原来的rh4nod1变成了STREAMDB了。修改主机名称肯定是没有错误的。
赶快看看/etc/hosts,哈哈!原来这里原来有这样一个记录信息:
127.0.0.1 rh4nod1 localhost.localdomain localhost
将rh4nod1改成streamdb,然后重新启动DBCA,正常启动!
/ect/hosts文件在ORACLE中非常重要。其实有时看似复杂的问题,往往都是这个文件中记录的信息错误造成的。多多注意呀 -:)
本文转自Be the miracle!博客51CTO博客,原文链接http://blog.51cto.com/miracle/63813如需转载请自行联系原作者
Larry.Yue