楼主: jayli426

[讨论] 动态监听和静态监听可以同时存在吗?

[复制链接]
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
31#
发表于 2013-9-19 01:19 | 只看该作者
> 难道这99个session都是通过动态监听来连接的?

Exclude local connections first. (Not all connections go through Oracle NET or SQL*Net.) Among all network connections, there's a possibility some connected to your instance immediately after it was started but before PMON registered with the listener (this delay can be as long as 60 seconds). Those few must have used the statically registered service. If all network connections came in 60 seconds after the instance was up, then you know for sure all of them (again, excluding local connections) came in through dynamically registered service.

> 如何屏蔽动态注册?只让oracle有静态注册

Why is dynamic registration not good for you?

You can try what guoyJoe suggested. Or change listener port from the default 1521 to some other number.

使用道具 举报

回复
论坛徽章:
8
2010广州亚运会纪念徽章:壁球
日期:2010-11-11 18:03:082010广州亚运会纪念徽章:跆拳道
日期:2010-11-11 18:03:13ITPUB学员
日期:2011-04-14 09:58:10ITPUB十周年纪念徽章
日期:2011-11-01 16:21:152012新春纪念徽章
日期:2012-01-04 11:50:442013年新春福章
日期:2013-02-25 14:51:24暖羊羊
日期:2015-03-04 14:50:372015年新春福章
日期:2015-03-06 11:57:31
32#
 楼主| 发表于 2013-9-19 07:08 | 只看该作者
Yong Huang 发表于 2013-9-19 01:19
> 难道这99个session都是通过动态监听来连接的?

Exclude local connections first. (Not all connectio ...

Mr huang, 你的意思就是说 有了当PMON 动态注册服务后,后续network发起的连接都走动态注册服务进来,这是有文档说明吗?能否通过实例证明一下呢?
不过这个知识了解似乎实际意义也不大,就像你说的,如果一定想区分动态静态,还不如搞个local_listener,换个port搞注册

使用道具 举报

回复
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
33#
发表于 2013-9-19 21:18 | 只看该作者
> 有了当PMON 动态注册服务后,后续network发起的连接都走动态注册服务进来,这是有文档说明吗?能否通过实例证明一下呢?

Oracle note
Incorrect SYSDATE shown when connected via Listener in RAC (Doc ID 1390015.1)
says
"When the listener has two service registrations, one static and one dynamic, then the dynamic one will be used."

As I said earlier, you can verify this with "lsnrctl service" and watch the counters for established.

使用道具 举报

回复
论坛徽章:
1
三菱
日期:2013-10-20 23:05:05
34#
发表于 2013-9-21 14:50 | 只看该作者
静态注册和动态注册本来就可以同时存在,同时存在可能使以防万一,怕动态注册注册不上,加个静态就不怕了。静态注册可以作为dba 维护使用。

使用道具 举报

回复
论坛徽章:
6
ITPUB十周年纪念徽章
日期:2011-11-01 16:26:29咸鸭蛋
日期:2011-11-09 14:50:32咸鸭蛋
日期:2012-06-13 05:10:53三菱
日期:2013-09-17 09:52:46优秀写手
日期:2013-12-18 09:29:13马上加薪
日期:2014-10-15 18:26:41
35#
发表于 2013-9-22 09:21 | 只看该作者
学习了,各位。目前针对这个点已经具备清晰的思路了。多谢各位的讨论!

使用道具 举报

回复
panda_rabbit 该用户已被删除
36#
发表于 2013-9-24 13:23 | 只看该作者
默认有动态监听,配置了静态监听后,就两者同时存在了。

使用道具 举报

回复
论坛徽章:
0
37#
发表于 2014-2-26 09:28 | 只看该作者
我也在oracle10g安装中遇到这个问题,很是纠结,查了下,也没有什么好的解决办法,求解啊?
Listener Parameter File   /oracle/product/11.2.0/rdbms/network/admin/listener.ora
Listener Log File         /oracle/diag/tnslsnr/ZD3DG401/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=22.188.21.114)(PORT=1521)))
Services Summary...
Service "ORAZ11G" has 2 instance(s).
  Instance "ORAZ11G", status UNKNOWN, has 1 handler(s) for this service...
  Instance "oraz11g", status READY, has 1 handler(s) for this service...
Service "oraz11gXDB" has 1 instance(s).
  Instance "oraz11g", status READY, has 1 handler(s) for this service...
The command completed successfully

使用道具 举报

回复
论坛徽章:
7
娜美
日期:2018-09-21 08:59:27托尼托尼·乔巴
日期:2018-09-28 17:29:58秀才
日期:2018-11-13 14:57:26秀才
日期:2018-11-13 14:57:47秀才
日期:2018-11-13 15:07:02秀才
日期:2018-11-13 15:07:29秀才
日期:2019-03-04 14:01:25
38#
发表于 2018-6-7 15:25 | 只看该作者
基本搞懂了 mark

使用道具 举报

回复

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

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表