某个事例listener时断时通,如何解决(急)

[复制链接]
查看11 | 回复7 | 2005-6-27 01:01:25 | 显示全部楼层 |阅读模式
例子如下:
1。监听状态
[oracle@zltechcenter apps]$ lsnrctl
LSNRCTL for Linux: Version 8.1.7.0.0 - Production on 15-MAY-2004 23:12:34
(c) Copyright 1998 Oracle Corporation.All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=zltechcenter)(PORT=1521)
))
STATUS of the LISTENER
------------------------
Alias
LISTENER
Version
TNSLSNR for Linux: Version 8.1.7.0.0 - Production
Start Date
15-MAY-2004 22:09:47
Uptime
0 days 1 hr. 2 min. 48 sec
Trace Level
off
Security
OFF
SNMP
OFF
Listener Parameter File /oracle/product/8.1.7/network/admin/listener.ora
Listener Log File /oracle/product/8.1.7/network/log/listener.log
Services Summary...
orcl
has 1 service handler(s)
orcl
has 2[/COLOR]service handler(s)
The command completed successfully
LSNRCTL>

2。客户端连接
ora-12545 连接因对象主机或对象不存在而失败。

3。停止监听
LSNRCTL> stop
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=zltechcenter)(PORT=1521)
))
The command completed successfully
4。启动监听
LSNRCTL> start
Starting /oracle/product/8.1.7/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 8.1.7.0.0 - Production
System parameter file is /oracle/product/8.1.7/network/admin/listener.ora
Log messages written to /oracle/product/8.1.7/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=zltechcenter)(PORT=1521)
))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=zltechcenter)(PORT=1521)
))
STATUS of the LISTENER
------------------------
Alias
LISTENER
Version
TNSLSNR for Linux: Version 8.1.7.0.0 - Production
Start Date
15-MAY-2004 23:16:23
Uptime
0 days 0 hr. 0 min. 0 sec
Trace Level
off
Security
OFF
SNMP
OFF
Listener Parameter File /oracle/product/8.1.7/network/admin/listener.ora
Listener Log File /oracle/product/8.1.7/network/log/listener.log
Services Summary...
orcl
has 1 service handler(s)
The command completed successfully
LSNRCTL>
5。这时,远程客户端可以连接了。
但等一会,又回出现开始的样子。
奇怪的是,在服务器的本机任何时候都可以连接,怀疑是否是网络的问题,但不知道如何查询。
同时,其他实例启动和连接都正常。
6。 监听器脚本如下:
# LISTENER.ORA Network Configuration File: /oracle/product/8.1.7/network/admi
istener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = zltechcenter)(PORT = 1521))
)
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /oracle/product/8.1.7)
(SID_NAME = orcl)
)
回复

使用道具 举报

千问 | 2005-6-27 01:01:25 | 显示全部楼层
这个问题,奇怪的是在服务器本机可以通过主机串连接,不会说监听的问题,但在其他机器上,就连接不过来。
同时,我这个服务器上安装了很多实例,并且这些实例可以通过远程连接。
以前这个实例是没有问题的,就是做过一次实验,多机器同时并发连接过一次。之后,就出现了这个问题了。
回复

使用道具 举报

千问 | 2005-6-27 01:01:25 | 显示全部楼层
想起来了,我修改了工作模式:由专用模式改为了共享模式。难道这个有关系吗?
回复

使用道具 举报

千问 | 2005-6-27 01:01:25 | 显示全部楼层
确实是这个共享模式引起的,但为什么出出现这个情况呢?
回复

使用道具 举报

千问 | 2005-6-27 01:01:25 | 显示全部楼层
呵呵,你在客户端的hosts文件里加上
zltechcenter 这台机器的IP
这样就可以了。
回复

使用道具 举报

千问 | 2005-6-27 01:01:25 | 显示全部楼层
这个问题我改为MTS也遇到,是机器名解析的问题
回复

使用道具 举报

千问 | 2005-6-27 01:01:25 | 显示全部楼层
忘了说了,我的客户端是winXP,那么这个HOSTS文件在哪里呢?
回复

使用道具 举报

千问 | 2005-6-27 01:01:25 | 显示全部楼层
我这里没有XP,我的WIN2K是在
winnt\system32\driver\etc
下面
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行