LSNRCTL> start
Starting /home/oracle/product/10.1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.1.0.3.0 - Production
System parameter file is /home/oracle/product/10.1/config/listener.ora
Log messages written to /home/oracle/product/10.1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MT)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
TNS-12547: TNS:lost contact
TNS-12560: TNS:protocol adapter error
TNS-00517: Lost contact
Linux Error: 104: Connection reset by peer
这非常奇怪,在公司的时候一切正常,同样为什么在PC机就有问题呢,上网baidu,google了许多资料,基本都是说listener.log文件大小大于2G,但我删除这个listener.log文件,还是不行,尝试了许多办法后,想是不是listnert.ora文件没有问题,而是系统的配置问题,例如hosts,protocals等文件等,于是尝试修改hosts,
127.0.0.1 MT localhost.localdomain
#127.0.0.1 MT localhost
为,即增加localhost的alias
#127.0.0.1 MT localhost.localdomain
127.0.0.1 MT localhost
然后尝试lsnrctl start启动listener,果然成功拉!