环境:
redhat 4.6
10.2.0.1.0
故障现象:
[oracle@ocmdb ~]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 14-JUN-2013 10:40:33
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.1.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
解决办法:
1、检查listener.ora文件
[oracle@ocmdb admin]$ vi listener.ora
(PROGRAM = extproc)
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.1.0/db_1)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ocmdb)(PORT = 1521))
)
)
listener.ora文件配置正确
2、检查网络
[oracle@ocmdb ~]$ ping ocmdb
PING ocmdb (192.168.11.105) 56(84) bytes of data.
64 bytes from ocmdb (192.168.11.105): icmp_seq=0 ttl=64 time=0.022 ms
64 bytes from ocmdb (192.168.11.105): icmp_seq=1 ttl=64 time=0.030 ms
--- ocmdb ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.022/0.026/0.030/0.004 ms, pipe 2
[oracle@ocmdb ~]$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.017 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.025 ms
--- 127.0.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.017/0.021/0.025/0.004 ms, pipe 2
3、查看hosts文件
[root@ocmdb ~]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.11.105 ocmdb
文件缺少本地回环地址
4、添加该地址
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
192.168.11.105 ocmdb
5、重启listener
[oracle@ocmdb admin]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 14-JUN-2013 10:44:59
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.1.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.1.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ocmdb)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ocmdb)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 14-JUN-2013 10:44:59
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.1.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ocmdb)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
问题解决!