bequeath_conn

对ORACLE中bequeath connections的理解[@more@]

对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/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值