Thursday 31 March 2011

TNS-12541,12560,00511, LINUX ERROR: 111: Connection refused

[oracle@testbox admin]$ lsnrctl status

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 31-MAR-2011 10:15:30

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=testbox.localdomain)(PORT=1522)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
[oracle@testbox admin]$ lsnrctl start

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 31-MAR-2011 10:15:40

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

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

TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
-------------------------------------------------------
Amend /etc/hosts as below
[oracle@testbox admin]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
192.168.0.138 testbox.localdomain testbox
#::1 localhost6.localdomain6 localhost6
--------------------------------------------------------
[oracle@testbox admin]$ lsnrctl status

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 31-MAR-2011 10:21:36

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=testbox.localdomain)(PORT=1522)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 31-MAR-2011 10:21:12
Uptime 0 days 0 hr. 0 min. 24 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=testbox.localdomain)(PORT=1522)))
Services Summary...
Service "fwlive.testbox.localdomain" has 1 instance(s).
Instance "fwlive", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully


No comments: