【故障|監聽】TNS-12545、TNS-12560、TNS-00515和Linux Error: 111
Linux Error: 111: Connection refused
[oracle@edsir4p1-PROD1 ~]$ ps -ef|grep tns
oracle 5462 5357 0 05:22 pts/2 00:00:00 grep tns
[oracle@edsir4p1-PROD1 ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-SEP-2017 05:22:24
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/edsir4p1/listener/alert/log.xml
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=edsor4p1.us.oracle.com)(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...
[oracle@edsir4p1-PROD1 ~]$ more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.190.104.111 edsir4p1.us.oracle.com edsir4p1
10.190.104.28 edsir1p8.us.oracle.com edsir1p8
[oracle@edsir4p1-PROD1 ~]$ more /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = edsor4p1.us.oracle.com)(PORT = 1521))
)
ADR_BASE_LISTENER = /u01/app/oracle
原因:主機名寫錯了。應該是edsir4p1.us.oracle.com,而不是edsor4p1.us.oracle.com
修改之後:
[oracle@edsir4p1-PROD1 ~]$ more /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = edsir4p1.us.oracle.com)(PORT = 1521))
)
ADR_BASE_LISTENER = /u01/app/oracle
[oracle@edsir4p1-PROD1 ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-SEP-2017 05:30:08
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/edsir4p1/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=edsir4p1.us.oracle.com)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=edsir4p1.us.oracle.com)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 13-SEP-2017 05:30:08
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/edsir4p1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=edsir4p1.us.oracle.com)(PORT=1521)))
The listener supports no services
The command completed successfully
About Me
.............................................................................................................................................
● 本文作者:小麥苗,只專注於資料庫的技術,更注重技術的運用
● 本文在itpub(http://blog.itpub.net/26736162/abstract/1/)、部落格園(http://www.cnblogs.com/lhrbest)和個人微信公眾號(xiaomaimiaolhr)上有同步更新
● 本文itpub地址:http://blog.itpub.net/26736162/abstract/1/
● 本文部落格園地址:http://www.cnblogs.com/lhrbest
● 本文pdf版、個人簡介及小麥苗雲盤地址:http://blog.itpub.net/26736162/viewspace-1624453/
● 資料庫筆試面試題庫及解答:http://blog.itpub.net/26736162/viewspace-2134706/
● DBA寶典今日頭條號地址:
.............................................................................................................................................
● QQ群號:230161599(滿)、618766405
● 微信群:可加我微信,我拉大家進群,非誠勿擾
● 聯絡我請加QQ好友(646634621),註明新增緣由
● 於 2017-09-01 09:00 ~ 2017-09-30 22:00 在魔都完成
● 文章內容來源於小麥苗的學習筆記,部分整理自網路,若有侵權或不當之處還請諒解
● 版權所有,歡迎分享本文,轉載請保留出處
.............................................................................................................................................
● 小麥苗的微店:
● 小麥苗出版的資料庫類叢書:http://blog.itpub.net/26736162/viewspace-2142121/
.............................................................................................................................................
使用微信客戶端掃描下面的二維碼來關注小麥苗的微信公眾號(xiaomaimiaolhr)及QQ群(DBA寶典),學習最實用的資料庫技術。
小麥苗的微信公眾號 小麥苗的DBA寶典QQ群1 小麥苗的DBA寶典QQ群2 小麥苗的微店
.............................................................................................................................................
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2144915/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【LISTENER】Oracle監聽TNS-12545及TNS-00515錯誤處理一例Oracle
- 【故障|監聽】TNS-12518、TNS-00517和 Linux Error:32:Broken pipeLinuxError
- linux 111 錯誤 監聽起不來Linux
- rac的vip和監聽莫名故障
- oracle 10g rac當監聽程式監聽對方vip時啟動監聽報錯TNS-12545Oracle 10g
- TNS-1254 TNS-12560 TNS-00511 Linux Error: 111 【轉載】LinuxError
- 資料庫監聽夯故障分析資料庫
- 動態監聽和靜態監聽
- Oracle 修改預設監聽埠故障分析Oracle
- Oracle RAC Database 11.1.0.6監聽故障案例OracleDatabase
- oracle靜態監聽和動態監聽Oracle
- grid監聽故障,本地地址不能連線
- oracle 11.2.0.3.6升級故障---監聽報錯Oracle
- swift 訊息監聽和鍵值監聽(kvo)Swift
- oracle listener錯誤Linux Error: 111: Connection refusedOracleLinuxError
- Linux用inotify監聽檔案和目錄Linux
- 屬性和監聽
- Oracle 10g 兩個監聽程式的故障Oracle 10g
- Windows 平臺監聽程式無法啟動 報TNS-12560 TNS-00530Windows
- 【listener】oracle靜態監聽和動態監聽 【轉載】Oracle
- 事件和事件監聽器事件
- Vue3.0的遞迴監聽和非遞迴監聽Vue遞迴
- TNS-12537, TNS-12560, TNS-00507 Linux Error: 29: Illegal seek error When StartinLinuxError
- 監聽器和過濾器過濾器
- Spring Boot 事件和監聽Spring Boot事件
- oracle例項和監聽器Oracle
- 監聽 watch props物件屬性監聽 或深度監聽物件
- 動態監聽與靜態監聽
- TNS-12560: TNS:protocol adapter error 錯誤解決ProtocolAPTError
- TNS-12537, TNS-12560, TNS-00507 Linux Error: 29: Illegal seek error When Starting the ListenerLinuxError
- 在rhel5上啟動監聽器lsnrctl start報錯_Linux Error: 113: No route to hostLinuxError
- Flutter - 生命週期監聽和管理Flutter
- nginx建立和監聽套接字分析Nginx
- ASM例項配置監聽和TNSASM
- 資料庫監聽不定期出現異常故障處理資料庫
- 【監聽】兩庫互配靜態監聽
- ORACLE動態監聽與靜態監聽Oracle
- 【oracle】動態監聽與靜態監聽Oracle