重庆思庄Oracle、Redhat认证学习论坛

标题: ORA-12545 Connect failed because target host [打印本页]

作者: 刘泽宇    时间: 2020-9-26 14:22
标题: ORA-12545 Connect failed because target host
[oracle@redhat71 ~]$ lsnrctlstart
LSNRCTL for Linux: Version11.2.0.4.0 - Production on 04-9月 -2020 01:53:26
Copyright (c) 1991, 2013, Oracle.  All rights reserved.
启动/u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr:请稍候...
TNSLSNR for Linux: Version11.2.0.4.0 - Production
系统参数文件为/u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
写入/u01/app/oracle/diag/tnslsnr/redhat71/listener/alert/log.xml的日志信息
监听该对象时出错:(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.106)(PORT=1521)))
TNS-12545: 因目标主机或对象不存在, 连接失败
TNS-12560: TNS: 协议适配器错误
  TNS-00515: 因目标主机或对象不存在, 连接失败
   Linux Error: 99: Cannot assign requestedaddress
监听程序未能启动。请参阅上面的错误消息...


经过检查,发现hosts文件未配置主机名,通过vim /etc/hosts配置主机名
vim /etc/hosts
添加:192.168.0.106 redhat1
再启动监听,未出现报错





欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2