xifenfei 发表于 2015-10-12 21:47:38

Linux Error: 104: Connection reset by peer

-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


# 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前面注释
# 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


# 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


页: [1]
查看完整版本: Linux Error: 104: Connection reset by peer