Oracle 11GR1进行创建数据库时出错解决一例

今天在as3上安装oracle11GR1,在进行到创造数据库时出现了如下图所示错误:

用dbca多次删除数据库再重次创建都不行。只好求百度了,查到如下:

---------------网上有如下描述---------------

报错:

SEVERE: Failed to allocate port(s) in the specified range for the following process(es): JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM agent [1830-1849]


google搜的:

check the /etc/sysctl.conf file and check if contains following line:
net.ipv4.ip_local_port_range = 1024 65000

If not, then add that line save the file and reboot the system.
Also check the wheter some service is not running on required ports that was mentioned in the error messages.
You can check this issuing the "netstat -an | grep tcp | grep LISTEN" command.

 

上面的是10g, 不过oracle 11G上是port_range = 9000 65000

 

另一个网站上找的:

 

There can be number of reasons EMCA is not able to bind respective ports.

1. Network restrictions/firewall blocking the ports
2. Incorrectly configured hostname or the hosts file
3. Incorrect entry for loopback adapter in hosts file
4. Any other application using the port in the same range.

最后查的原因是 /etc/hosts 文件, 添加正确的主机名与IP即可。

---------------网上描述结束---------------

 

如网上描述的,检查/etc/sysctl.conf,没问题,网上描述最后一句提醒我,查看/etc/hosts发现ip与主机名没对,这时才想起我对这台机器改过ip,但没有修改/etc/hosts。把hosts文件修改后再运行dbca进行创建数据库,一切正常。

记下来,以防忘记了。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值