今天看昨天的数据库报告,发现大量SQL*Net more data to client等待事件,然后看SQL语句的执行时间,都有延时,可以断定昨天的网络出问题了。然后联系现场实施同事,他很惊讶的问我怎么知道的。
SQL*Net more data to client说明数据库在向客户端发送数据,而且是"more",不停的发送,如果网络状况不好,或者网络流量过大,都可能导致这一等待非常显著。
04-11 8:00-12:00的数据库报告:
Event | Waits | Time(s) | Avg Wait(ms) | % Total Call Time | Wait Class |
---|---|---|---|---|---|
SQL*Net more data to client | 2,324,565 | 11,818 | 5 | 43.2 | Network |
CPU time | 8,927 | 32.7 | |||
enq: TX - row lock contention | 4,511 | 955 | 212 | 3.5 | Application |
latch: enqueue hash chains | 106 | 876 | 8,266 | 3.2 | Other |
log file sync | 57,477 | 711 | 12 | 2.6 | Commit |