ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 一次关于解决数据库侦听的小经历

一次关于解决数据库侦听的小经历

原创 Linux操作系统 作者:bq_wang 时间:2008-01-08 23:32:58 0 删除 编辑


各位老大,别见笑!


自从有了10g被该死的侦听器折磨好几次了,估计该遇到的问题全遇到了


这个只是其中一个小小的问题...


好好的报表服务器的数据库突然有人说登陆不了了,PL/SQLdeveloper登陆报Ora-12541:TNS:没有监听器的错误,而SQLPlus以本机登陆却是好好的,百思不得其解;因项目原因还是自己动手尽快解决吧。

1.手工在windows的服务中重启tns监听服务,起不来
2.Check windowsapplication日志,未发现有价值消息
3.Check windowssystem日志,未发现有价值消息
4.手工在命令行方式下查看lsnrctl statuslsnrctl start,发现在start过程中TNS-12545: Connect failed because target host or object does not exist
5.核对机器名和listener.ora中的机器名发现不一致,修改好重新启动,一切OK

NND,原来被那些搞公司系统检查的人把机器名给改了,连个通知也没有!

 

Microsoft Windows [Version 5.2.3790]

(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>lsnrctl

LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 03-JAN-2008 09:54:54

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

Welcome to LSNRCTL, type "help" for information.

LSNRCTL> status

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))

TNS-12541: TNS:no listener

 TNS-12560: TNS:protocol adapter error

  TNS-00511: No listener

   32-bit Windows Error: 2: No such file or directory

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PRCSGI00883.ad.infosys.c

om)(PORT=1521)))

TNS-12541: TNS:no listener

 TNS-12560: TNS:protocol adapter error

  TNS-00511: No listener

   32-bit Windows Error: 61: Unknown error

LSNRCTL> start

Starting tnslsnr: please wait...

 

TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production

System parameter file is D:\oracle\product\10.2.0\db_1\network\admin\listener.ora

Log messages written to D:\oracle\product\10.2.0\db_1\network\log\listener.log

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc

)))

Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PRCSGI00883.ad.inf

osys.com)(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

   32-bit Windows Error: 49: Unknown error

 

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

 

--Modify the IP address in listener.ora then start

LSNRCTL> start

Starting tnslsnr: please wait...

 

TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production

System parameter file is D:\oracle\product\10.2.0\db_1\network\admin\listener.ora

Log messages written to D:\oracle\product\10.2.0\db_1\network\log\listener.log

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc

)))

Listeningon: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRCSGI01177.ad.infosys.com)(PORT=1521)))

 

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))

STATUS of the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production

Start Date                03-JAN-2008 09:57:02

Uptime                    0 days 0 hr. 0 min. 3 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   D:\oracle\product\10.2.0\db_1\network\admin\listener.ora

Listener Log File         D:\oracle\product\10.2.0\db_1\network\log\listener.log

Listening Endpoints Summary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRCSGI01177.ad.infosys.com)(PORT=152

1)))

Services Summary...

Service "PLSExtProc" has 1 instance(s).

  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...

The command completed successfully

LSNRCTL>

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

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

注册时间:2007-12-07

  • 博文量
    412
  • 访问量
    1116654