首页 > 编程知识 正文

sqltransientconnection,oracle sqlnet.ora

时间:2023-05-05 17:32:20 阅读:107989 作者:2291

状态变量的定义

Aborted_clients

客户端关闭时由于连接未正确关闭而中断的连接数

thenumberofconnectionsthatwereabortedbecausetheclientdiedwithoutclosingtheconnectionproperly。

Aborted_connects

连接MySQL服务器失败的次数。

thenumberoffailedattemptstoconnecttothemysqlserver。

参考链接:

3359 dev.MySQL.com/doc/ref man/5.5/en/server-status-variables.html

状态变量的数值分析

显示变量值

showglobalstatuslike ' aborted _ connects '

showglobalstatuslike ' aborted _ clients '

Aborted_connects

如果客户端无法连接到mysql服务器,则服务器会增加Aborted_connect变量的值,并在每次失败时将变量的值增加1。

在以下情况下,Aborted_connect变量的值会增加:

l由于客户端没有访问数据库的权限,连接失败

l客户端密码错误导致连接失败

连接失败,因为连接数据包“connection packet”未包含正确的信息

l获取连接包需要额外的connect_timeout系统变量的设置时间而导致的连接失败,即连接超时(变量值showglobalvariableslike ' connect _ time out );

Aborted_clients

如果客户端连接成功,但未通过正确的方法断开连接,或者断开连接,则服务器会增加Aborted_clients状态变量的值,并增加1,然后在错误日志中记录Aborted connection消息。

在以下情况下,Aborted_clients状态变量的值会增加:

l在客户端关闭之前,没有调用mysql_close ()

由于LL客户端“已睡着”,因此即使超过wait_timeout或interactive_timeout的设置时间(秒),也未向服务器发出任何请求。

l客户端程序在数据传输过程中突然终止。

引起aborted connections或aborted clients的其他原因

在l Linux上使用的以太网协议。 包括半双工和全双工。 某些Linux以太网驱动程序存在此错误。 youshouldtestforthisbugbytransferringahugefileusingftpbetweentheclientandservermachines.ifatransfergoesinburst-pause-burse youareexperiencingalinuxduplexsyndrome.switcheduplexmodeforbothyournetworkcardandhub/switchtoeitherfullduplexortohalfdupuplexortohalfduplfduplexduplexmexmorethoreshorexmexmex

l由于线程类库有问题,读取被中断。

l TCP/IP配置错误。

l Ethernets、hubs、switches、cables等故障,这些只能更换硬件。

参考链接:

3359 dev.MySQL.com/doc/ref man/5.5/en/communication-errors.html

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。