ORACLE SOS

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 6647|回复: 0

Linux Error: 104: Connection reset by peer

[复制链接]

95

主题

266

帖子

1719

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1719
发表于 2015-10-12 21:47:38 | 显示全部楼层 |阅读模式
-bash-3.2$ vi listener.ora
# listener.ora Network Configuration File: /Data/apps/oracle/11g/network/admin/listener.ora
# Generated by Oracle configuration tools.


LISTENER =
  (DESCRIPTION_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.101.19)(PORT = 1521))
      )
    )
  )

SID_LIST_LISTENER =
  (SID_LIST =
      (PROGRAM = extproc)
    )
      (SID_NAME = commentdb)
    )
  )


-bash-3.2$ lsnrctl start

LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 12-OCT-2015 21:01:08

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

Starting /Data/apps/oracle/11g/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.1.0.6.0 - Production
Log messages written to /Data/apps/oracle/diag/tnslsnr/odb211/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=odb211.untangdomain.com)(PORT=1521)))

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12547: TNS:lost contact
TNS-12560: TNS:protocol adapter error
  TNS-00517: Lost contact
   Linux Error: 104: Connection reset by peer


[root@odb211 ~]# 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.10.101.19 odb211.untangdomain.com odb211


除掉127.0.0.1前面注释
[root@odb211 ~]# 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.10.101.19 odb211.untangdomain.com odb211


[root@odb211 ~]# su - oracle
-bash-3.2$ lsnrctl start

LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 12-OCT-2015 21:03:29

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

Starting /Data/apps/oracle/11g/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.1.0.6.0 - Production
System parameter file is /Data/apps/oracle/11g/network/admin/listener.ora
Log messages written to /Data/apps/oracle/diag/tnslsnr/odb211/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.101.19)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.101.19)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.1.0.6.0 - Production
Start Date                12-OCT-2015 21:03:29
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /Data/apps/oracle/11g/network/admin/listener.ora
Listener Log File         /Data/apps/oracle/diag/tnslsnr/odb211/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.101.19)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "commentdb" has 1 instance(s).
  Instance "commentdb", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully



Q Q:107644445
Tel:13429648788
Email:dba@xifenfei.com
个人Blog(惜分飞)
提供专业ORACLE技术支持(数据恢复,安装实施,升级迁移,备份容灾,故障诊断,系统优化等)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|ORACLE SOS 技术论坛

GMT+8, 2024-12-5 10:46 , Processed in 0.023900 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表