TNS-12547 TNS-12560 TNS-00517解決辦法

孤竹星發表於2015-01-03
今天啟動監聽lsnrctl start 發現報錯TNS-12547  TNS-12560 TNS-00517
[oracle@ogg1 ~]$ lsnrctl start


LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 03-JAN-2015 18:40:10


Copyright (c) 1991, 2013, Oracle.  All rights reserved.


Starting /u01/app/oracle/product/11.2/db_1/bin/tnslsnr: please wait...


TNSLSNR for Linux: Version 11.2.0.4.0 - Production
System parameter file is /u01/app/oracle/product/11.2/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/ogg1/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ogg1)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))


Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ogg1)(PORT=1521)))
TNS-12547: TNS:lost contact
 TNS-12560: TNS:protocol adapter error
  TNS-00517: Lost contact
   Linux Error: 104: Connection reset by peer
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused

在網上找到了解決方法,具體原因不清楚
解決辦法:檢視/etc/hosts 檔案內容
[root@ogg1 ~]# cat /etc/hosts
127.0.0.1       ogg1
192.168.3.213   ogg1

將127.0.0.1 後面新增localhost
[root@ogg1 ~]# vi /etc/hosts
127.0.0.1      ogg1 localhost 
192.168.3.212  ogg1



來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28282660/viewspace-1388593/,如需轉載,請註明出處,否則將追究法律責任。

相關文章