##安装完oracle后修改主机名导致安装oracle监听出错## 标TNS-12545: Connect failed because target host or object does

错误提示:
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=12cdb01.localdomain)(PORT=1521)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
Linux Error: 111: Connection refused

Listener failed to start. See the error message(s) above…

解决方案:*修改监听时必须先把监听停止.

1、 vi /etc/hosts 查看主机名是否配置正确
2、 vi /etc/sysconfig/network 查看network下的HOSTNAME是否跟/etc/hosts一致
3、vi .bash_profile 检查oracle配置环境是否正确

修改完reboot 重启linux 再重新netca配置监听即可

我的问题主要是oracle环境配置的主机名的问题。

你可能感兴趣的:(oracle)