oracle dcd设置,Oracle DCD 测试

官方文档摘要:

When the timer expires, SQL*Net on the server sends a "probe" packet to the

client. (In the case of a database link, the destination of the link

constitutes the server side of the connection.) The probe is essentially an

empty SQL*Net packet and does not represent any form of SQL*Net level data,

but it creates data traffic on the underlying protocol.

If the client end of the connection is still active, the probe is discarded,

and the timer mechanism is reset. If the client has terminated abnormally,

the server will receive an error from the send call issued for the probe, and

SQL*Net on the server will signal the operating system to release the

connection's resources.

当定时器设定的时间到了之后, 服务器上的SQL*Net 发送一个探测包到客户端.(如果是数据库联接, 目的端的服务器发送探测包到另一端). 探测包是由空的SQL*Net包组成, 不体现SQL*Net层任何数据, 但会在下一层的网络协议中产生数据流量.

如果客户端的联接仍然是活动的, 探测包被丢弃. 计时装置复位. 如果客户端异常断掉. 服务器将收到由发送探测包的调用发出的错误. SQL*Net 将会通知操作系统释放联接占用的资源.

测试:

sqlnet.ora 配置如下:

[img]http://www.orasql.com/bbs/download/file.php?id=36[/img]

在客户端tcpdump host 192.168.0.228 (服务器ip) 每2分钟服务器向客户端发送length=10的一个数据包,客户端回应。

[img]http://www.orasql.com/bbs/download/file.php?id=37[/img]

trace文件中相关信息如下:

[img]http://www.orasql.com/bbs/download/file.php?id=38[/img]

[img]http://www.orasql.com/bbs/download/file.php?id=39[/img]

在监控中未动SDL Developer,第一次是这样,服务器不断向客户端发包,但是客户端未回应,SQL Developer中执行SQL提示:连接关闭。

[img]http://www.orasql.com/bbs/download/file.php?id=40[/img]

[img]http://www.orasql.com/bbs/download/file.php?id=41[/img]

第二次 从15:42:45开始到16:22:44 ,未动SQL Developer,数据包正常,连接正常

在16:24:11 杀掉SQL Developer进程,客户端主动向服务器发包,连接断开。

[img]http://www.orasql.com/bbs/download/file.php?id=42[/img]

「喜欢文章,快来给作者赞赏墨值吧」 赞赏

【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

请登录后发表评论

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值