ITPub博客

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

原创 作者:PercyWang 时间:2008-01-08 23:33:52 0 删除 编辑
自从有了10g被该死的侦听器折磨好几次了,估计该遇到的问题全遇到了。。。
这个只是其中一个小小的问题...
[@more@]

好好的报表服务器的数据库突然有人说登陆不了了,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,原来被那些搞公司系统检查的人把机器名给改了,连个通知也没有!:mad:

Microsoft Windows [Version 5.2.3790]

(C) Copyright 1985-2003 Microsoft Corp.

C:Documents and SettingsAdministrator>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:oracleproduct10.2.0db_1networkadminlistener.ora

Log messages written to D:oracleproduct10.2.0db_1networkloglistener.log

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=.pipeEXTPROC1ipc

)))

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:oracleproduct10.2.0db_1networkadminlistener.ora

Log messages written to D:oracleproduct10.2.0db_1networkloglistener.log

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=.pipeEXTPROC1ipc

)))

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:oracleproduct10.2.0db_1networkadminlistener.ora

Listener Log File D:oracleproduct10.2.0db_1networkloglistener.log

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=.pipeEXTPROC1ipc)))

(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>

请登录后发表评论 登录
全部评论
  • 博文量
    127
  • 访问量
    1750467