启动监听报错TNS-12547: TNS:lost contact

   今天晚上,遇到一个问题,想从xp的客户端连接到Linux下的ORACLE服务器,首先启动监听器,出现以下错误
  
[oracle@localhost admin]$ lsnrctl start
   
  LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 22-JUN-2009 21:43:27

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

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

TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.126)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
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=TCP)(HOST=192.168.1.126)(PORT=1521)))
TNS-12547: TNS:lost contact
 TNS-12560: TNS:protocol adapter error
  TNS-00517: Lost contact
   Linux Error: 104: Connection reset by peer

 

 首先怀疑是listener.ora日志文件太大了,查看后,排除这种情况
  第二种可能是/etc/hosts写错了  发现这里的IP地址写错了,修正为
   192.168.1.126   localhost.localdomain   localhost
  启动监听器 成功正常

 

   注意:有时候sqlnet.ora是有ip限制的,如果本机的地址没加到那,可能导致这监听器起不来

你可能感兴趣的:(oracle,linux,tcp,服务器,File,XP)