1. <pre name="code" class="sql"><pre name="code" class="sql">UPDATE Business_Duebill
  2. SET RelativeSerialNo1 = :1,
  3. RelativeSerialNo2 = :2,
  4. CustomerID = :3,
  5. BusinessType = :4,
  6. MFCustomerID = :5,
  7. CustomerName = :6,
  8. SubjectNo = :7,
  9. BusinessSum = :8,
  10. BusinessCurrency = :9,
  11. ActualBusinessRate = :10,
  12. Balance = :11,
  13. NormalBalance = :12,
  14. OverdueBalance = :13,
  15. DullBalance = :14,
  16. BadBalance = :15,
  17. InterestBalance1 = :16,
  18. InterestBalance2 = :17,
  19. FineBalance1 = :18,
  20. FineBalance2 = :19,
  21. ActualMaturity = :20,
  22. FinishDate = :21,
  23. TABalance = :22,
  24. TAInterestBalance = :23,
  25. TATimes = :24,
  26. LcaTimes = :25,
  27. ExtendTimes = :26,
  28. AdvanceFlag = :27,
  29. PayBackAccount = :28,
  30. PayInterestAccount = :29,
  31. BailAccount = :30,
  32. PutOutAccount = :31,
  33. OperateOrgID = :32,
  34. MfOrgID = :33,
  35. UpdateDate = :34,
  36. Classify4 = :35,
  37. ReturnType = :36,
  38. BailPercent = :37,
  39. PaymentType = :38,
  40. TermsFreq = :39,
  41. BusinessStatus = :40,
  42. OperateUserID = :41,
  43. OverdueDate = :42,
  44. BillType = :43,
  45. RateFloat = :44,
  46. RateFloatType = :45,
  47. AdjustRateType = :46,
  48. THIRDPARTYZIP2 = :47,
  49. FinishType = :48
  50. WHERE SerialNo = :49
  51.  
  52. 出现了大量的SQL*Net more data from client
  53.  
  54. p1 p2
  55. 1 24-5?? -14 01.14.34.059 1571 SQL*Net more data from client 1952673792 5 0 0 -1 0 0
  56. 2 24-5?? -14 01.14.33.058 1571 SQL*Net more data from client 1952673792 4 0 0 -1 0 0
  57. 3 24-5?? -14 01.14.32.058 361 enq: WF - contention 1464205318 70 0 0 -1 0 0
  58. 4 24-5?? -14 01.14.32.058 1571 SQL*Net more data from client 1952673792 1 0 0 -1 0 0
  59. 5 24-5?? -14 01.14.31.057 1571 SQL*Net more data from client 1952673792 1 0 0 -1 0 0
  60. 6 24-5?? -14 01.14.30.056 1571 SQL*Net more data from client 1952673792 4 0 0 -1 0 0
  61. 7 24-5?? -14 01.14.29.056 1571 SQL*Net more data from client 1952673792 3 0 0 -1 0 0
  62. 8 24-5?? -14 01.14.28.055 361 db file sequential read 2 164307 1 0 -1 0 0
  63. 9 24-5?? -14 01.14.28.055 1571 SQL*Net more data from client 1952673792 11 0 0 -1 0 0
  64. 10 24-5?? -14 01.14.27.055 1571 SQL*Net more data from client 1952673792 2 0 0 -1 0 0
  65. 11 24-5?? -14 01.14.26.054 1571 SQL*Net more data from client 1952673792 3 0 0 -1 0 0
  66. 12 24-5?? -14 01.14.25.049 1571 SQL*Net more data from client 1952673792 1 0 0 -1 0 0
  67. 13 24-5?? -14 01.14.24.049 1571 SQL*Net more data from client 1952673792 5 0 0 -1 0 0
  68. 14 24-5?? -14 01.14.23.048 1571 SQL*Net more data from client 1952673792 2 0 0 -1 0 0
  69.  
  70. 当会话等待一个来自客户端的消息的到达时提交的SQL*Net more data from client(来自客户端的SQL*NET的消息)等待事件。一般而言,这意味着会话处于空闲状态。
  71.  
  72. 在不与使用键盘的终端用户进行交互的批处理程序中,若在此事件上的等待事件过多,则表示在应用程序代码中或网络层存在低效率因素。
  73.  
  74. 但是,该事件上的过高的等待事件并不降低数据库的性能,因此该事件清楚地指出可觉察到的数据库性能问题并不是真正的数据库问题。
  75.  
  76. P1 :Driver id: 服务器端和客户端连接使用的协议信息。
  77.  
  78. P2: #bytes: 服务器端接收到的来自客户端消息的字节数(通常是1,即使接收到的数据包中包含多余1字节的内容).
  79.  
  80. SQL*Net more data from client
  81. A while ago, OEM report some alert messages to us:
  82.  
  83. Wait class "Network" was consuming significant database time.
  84. Wait event "SQL*Net more data from client" in wait class "Network"
  85. was consuming significant database time.
  86. We also see a 30ms slower to render our web pages.
  87.  
  88. According to Oracle doc,
  89.  
  90. SQL*Net more data from client
  91. The server is performing another send to the client. The previous operation was also a send to the client.
  92.  
  93. It is not of much help.
  94.  
  95. The OEM gives a more clear indication:
  96.  
  97. Investigate the cause for high “SQL*Net more data from client” waits in Module “JDBC Thin Client”.
  98.  
  99. It is telling us that something is wrong with the JDBC drivers.
  100.  
  101. Chris May find a good article here
  102.  
  103. The cause of this event was a sequence of parse calls that passed excessively long SQL text strings through SQL*Net from the client to the server (instead of
  104.  
  105. using stored procedure calls to accomplish the same thing). The long SQL text strings wouldn’t fit into a single SQL*Net packet, so the Oracle kernel spent
  106.  
  107. a considerable amount of time awaiting second and subsequent SQL*Net packets during parse calls.
  108.  
  109. Hibernate, the ORM tools used by our application, generates long SQLs. Instead of select * from table, it use select col_1, col_2 from table.
  110.  
  111. After upgrading to latest JDBC driver, the problem fixed.

可以看到光wait就有将近13分钟,占CPU TIME的84%,而且平均等待事件达到177毫秒

  1.  
  1.  

奇葩的SQL*Net more data from client等待,导致批处理巨慢的更多相关文章

  1. SQL*Net more data to client

    The server process is sending more data/messages to the client. The previous operation to the client ...

  2. SQL*Net more data from client

    SQL*Net more data from client The server is waiting on the client to send more data to its client sh ...

  3. 一个session已经ACTIVE20多小时,等待事件SQL*Net more data from client

    问题描述: 一个session已经ACTIVE20多小时,等待事件SQL*Net more data from client 有一人session,从昨天上午11点多登陆(v$session.logi ...

  4. cosbench read异常解决办法。 Unable to verify integrity of data download. Client calculated content hash didn't match hash calculated by Amazon S3. The data may be corrupt.

    问题:cosbench read测试failed 报错如下 Cosbench v0.4.2.c4 against Ceph (Hammer) / radosgw / HAproxy's HTTP en ...

  5. sql System.Data.SqlClient.SqlError: 无法覆盖文件 'C:\Program Files\Microsoft SQL Server\MSSQL\data\itsm_Data.MDF'。数据库 'my1' 正在使用该文件的解决方案

    对数据库备份进行还原时遇到“sql System.Data.SqlClient.SqlError: 无法覆盖文件 'C:\Program Files\Microsoft SQL Server\MSSQ ...

  6. iReport 5.6.0 Error: net.sf.jasperreports.engine.JRException: Error executing SQL statement for : data 最优解决方案

    问题描述 近期学习iReport(个人使用的是最新版本的 iReport-5.6.0,MySQL是 5.5.56版本),遇到一些问题,在安装完成后,创建了数据库,配置了MySQL数据库连接信息,新建报 ...

  7. SQL to JSON Data Modeling with Hackolade

    Review: SQL to JSON data modeling First, let’s review, the main way to represent relations in a rela ...

  8. 【hbase】Unable to read additional data from client sessionid 0x15c92bd1fca0003, likely client has closed socket

    启动hbase ,验证出错 Master is initializing 查看zk日志,发现Unable to read additional data from client sessionid 0 ...

  9. Azure SQL 数据库仓库Data Warehouse (3) DWU

    <Windows Azure Platform 系列文章目录> 在笔者的上一篇文章中:Azure SQL 数据库仓库Data Warehouse (2) 架构 介绍了SQL DW的工作节点 ...

随机推荐

  1. HDU_2042——递归反推

    Problem Description 你活的不容易,我活的不容易,他活的也不容易.不过,如果你看了下面的故事,就会知道,有位老汉比你还不容易.重庆市郊黄泥板村的徐老汉(大号徐东海,简称XDH)这两年 ...

  2. 黑马程序员_<<IO流基本操作(Writer,Reader)>>

    --------------------ASP.Net+Android+IOS开发..Net培训.期待与您交流! -------------------- 1.概述 硬盘之间的文件的传输,硬盘中文件的 ...

  3. 基准测试之netperf

    使用 server端 [root@jiangyi01.sqa.zmf /home/ahao.mah/ALIOS_QA/tools/netperf] #netserver -p 10001 Starti ...

  4. Android笔记(一):从this关键字发散

    this指的是直接包含它的类的实例. 例如: public class MyClass{ int num; public MyClass(int num){ this.num = num; } } 这 ...

  5. Sea.js

    SeaJS与RequireJS最大的区别   执行模块的机制大不一样-----------------------------------由于 RequireJS 是执行的 AMD 规范, 因此所有的 ...

  6. Android学习笔记(二)之异步加载图片

    最近在android开发中碰到比较棘手的问题,就是加载图片内存溢出.我开发的是一个新闻应用,应用中用到大量的图片,一个界面中可能会有上百张图片.开发android应用的朋友可能或多或少碰到加载图片内存 ...

  7. c\c++复习基础要点08--c++单例模式

    单例模式有许多种实现方法,在c++中,甚至可以直接用一个全局变量做到这一点,但是这样的代码显得不优雅.使用全局对象能够保证方便地访问实例,但是不能保证只声明一个对象——也就是说除了一个全局实例外,仍然 ...

  8. Nuget找不到服务器

    Nuget的新地址 http://nuget-prod-v2gallery.trafficmanager.net/api/v2/

  9. android SlidingTabLayout实现ViewPager页卡滑动效果

    先来张效果图(能够滑动切换页卡) watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcGVuZ2t2/font/5a6L5L2T/fontsize/400/fi ...

  10. c# 操作PPT

    前段时间要做一个把指定图片放到新建的ppt的东西,在网上找了点资料看了一下,发现用C#做好像是最简单的一个,一下是在网上找的一段代码,直接贴进去就能够执行,可是在执行之前一定要加入dll支持:  项目 ...