bequeath_conn
对ORACLE中bequeath connections的理解
原文:
The following steps, which show the connection process for the bequeath
connections, are exhibited in Figure 2.1:
1.The client contacts the Oracle server after resolving the service name.
2.The server spawns a dedicated process and bequeaths control of the
connection to the process. The new process inherits all control information
of the spawned process, including the TCP/IP socket information
from the server that spawned the process.
3.The server process notifies the client to start sending information to it
by sending a RESEND packet to the client.
4.The client sends a CONNECT packet to the newly established server process.
5.The server responds back with an ACCEPT packet and now manages the client requests.
在WINDOWS平台下,默认是不产生bequeath connection的,为了产生bequeath connection,需要设置下下注册表
In order to have bequeathed sessions supported on Windows NT/2000, the
Registry setting USE_SHARED_SOCKET needs to be set. This setting can be set in
HKEY_LOCAL_MACHINE SOFTWAREORACLEHOMEX
where X is equal to the HOME that you are using, such as HOME0
. By default, this Registry setting is not
initialized and therefore Windows NT/2000 will use a redirect type connection
to establish communication when dedicated clients connections are used.
设置后要重启操作系统,而不能只重启数据库.
这样,1521端口才能被多个连接所使用,否则Server Process会随机选择一个端口,和client建立连接.不能穿过防火墙.
防火墙还有一个潜在的威胁是对于不活动的TCP连接会给你断线.网上有人因为这个原因查应用查了很长时间,结果是防火墙的原因,还被网管说他们的设计不合理.
以后的应用设计,最好是把应用服务器与数据库服务器放在一个网段中,而不是隔着网闸防火墙,可减少麻烦.
对Redirect Connections的理解
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/271063/viewspace-972516/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/271063/viewspace-972516/
最新文章
- 【eclipse】eclipse使用常见问题(持续更新)
- 9月机器学习开源项目Top10
- 将键值对当作实参传进函数
- 用户操作-登录代码实现
- 使用语句修改数据表结构
- mysql中alter语句卡死的一个解决方法
- 2021年下半年软考系统集成项目管理工程师真题及答案解析
- 1060驱动java,丽境1060数位板驱动下载
- 文件上传漏洞—蚁剑连接地址错误、一句话木马php语法错误
- 《5G无线技术演进白皮书》发布!
- 用 Web 技术为 Safari 编写扩展
- mysql 修改 frm_高性能MySQL:只修改.frm 文件
- S905L(P211)盒子刷android tv以及刷emuelec 4.4/4.5的向导/方法
- 实现页面上方实现输入关键字搜索出关联关键词内容的功能
- Spring、Mybatis整合Service优化思路,DAO层、Service层最终编码以及log4j日志的使用
- 6630变成QQ摄像头 可用数据线或蓝牙
- WEB集成管理与应用实例
- BI大数据到底是什么
- 西方耶稣中国颛顼是同一人?
- mysql 李玉婷网课配套笔记(五) 分页查询,库和表的管理