TNS-12545

oracle@linux-f4ib:~> lsnrctl start

LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 28-MAY-2010 15:59:39

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

Starting /opt/oracle/product/11gR1/db/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Log messages written to /opt/oracle/product/11gR1/db/network/log/listener.log
Error listening on: (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12545: Connect failed because target host or object does not exist
 TNS-12560: TNS:protocol adapter error
  TNS-00515: Connect failed because target host or object does not exist
   Linux Error: 11: Resource temporarily unavailable

Listener failed to start. See the error message(s) above...

查看报错文件:
oracle@linux-f4ib:~/product/11gR1/db/network/log> more listener.log

TNSLSNR for Linux: Version 10.2.0.1.0 - Production on 28-MAY-2010 15:38:10

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

Log messages written to /opt/oracle/product/11gR1/db/network/log/listener.log
Trace information written to /opt/oracle/product/11gR1/db/network/trace/listener.trc
Trace level is currently 0

Started with pid=24485
Error listening on: (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12545: Connect failed because target host or object does not exist
 TNS-12560: TNS:protocol adapter error
  TNS-00515: Connect failed because target host or object does not exist
   Linux Error: 11: Resource temporarily unavailable

TNSLSNR for Linux: Version 10.2.0.4.0 - Production on 28-MAY-2010 15:58:12

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

Log messages written to /opt/oracle/product/11gR1/db/network/log/listener.log
Trace information written to /opt/oracle/product/11gR1/db/network/trace/listener.trc
Trace level is currently 0

Started with pid=28047
Error listening on: (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12545: Connect failed because target host or object does not exist
 TNS-12560: TNS:protocol adapter error
  TNS-00515: Connect failed because target host or object does not exist
   Linux Error: 11: Resource temporarily unavailable

TNSLSNR for Linux: Version 10.2.0.4.0 - Production on 28-MAY-2010 15:59:28

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

Log messages written to /opt/oracle/product/11gR1/db/network/log/listener.log
Trace information written to /opt/oracle/product/11gR1/db/network/trace/listener.trc
Trace level is currently 0
第一时间想到的是/etc/hosts文件可能有问题。查看,没有主机信息,添加进去。能够成功启动。
more /etc/hosts
#
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.
# Syntax:
#   
# IP-Address  Full-Qualified-Hostname  Short-Hostname
#

127.0.0.1       localhost
# special IPv6 addresses
::1             localhost ipv6-localhost ipv6-loopback

fe00::0         ipv6-localnet

ff00::0         ipv6-mcastprefix
ff02::1         ipv6-allnodes
ff02::2         ipv6-allrouters
ff02::3         ipv6-allhosts

vi /etc/hosts
#
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.
# Syntax:
#   
# IP-Address  Full-Qualified-Hostname  Short-Hostname
#

127.0.0.1       localhost
218.61.60.155   linux-f4ib
# special IPv6 addresses
::1             localhost ipv6-localhost ipv6-loopback

fe00::0         ipv6-localnet

ff00::0         ipv6-mcastprefix
ff02::1         ipv6-allnodes
ff02::2         ipv6-allrouters
ff02::3         ipv6-allhosts
启动:
oracle@linux-f4ib:~> lsnrctl start

LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 28-MAY-2010 16:12:27

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

Starting /opt/oracle/product/11gR1/db/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Log messages written to /opt/oracle/product/11gR1/db/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linux-f4ib)(PORT=1521)))

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Start Date                28-MAY-2010 16:12:27
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Log File         /opt/oracle/product/11gR1/db/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linux-f4ib)(PORT=1521)))
The listener supports no services
The command completed successfully

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22779291/viewspace-663937/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22779291/viewspace-663937/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值