ITPub博客

首页 > Linux操作系统 > Linux操作系统 > DBA那些事儿 (4). Connection reset by peer

DBA那些事儿 (4). Connection reset by peer

原创 Linux操作系统 作者:yxyup 时间:2009-08-29 21:47:34 0 删除 编辑

Listener配置遇到的问题,记录之.

1.错误现象

oracle@dbatest1:/u01/oracle11g/product/11.1/network/admin #lsnrctl start

LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 29-AUG-2009 00:44:49

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

Starting /u01/oracle11g/product/11.1/bin/tnslsnr: please wait...

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dbatest1)(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
oracle@dbatest1:/u01/oracle11g/product/11.1/network/admin #


2.解决方法
在hosts文件中加入" 127.0.0.1    loopback localhost " 后解决,如下,

[root@dbatest1 tmp]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
10.100.2.100   dbatest1
127.0.0.1               loopback localhost

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7364032/viewspace-613552/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
暂无介绍

注册时间:2007-12-06

  • 博文量
    163
  • 访问量
    1319199