ITPub博客

首页 > Linux操作系统 > Linux操作系统 > TNS-12545

TNS-12545

原创 Linux操作系统 作者:frog-qs 时间:2010-05-28 16:14:08 0 删除 编辑

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博客 ” ,链接:https://blog.itpub.net/22779291/viewspace-663937/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-10-27

  • 博文量
    132
  • 访问量
    273851