SQL*Net more data to client 等待事件造成的效能問題
客戶在升級程式時當機.原因是因為select * from application_versions是查詢這個語句時當機,因為在
application_versions表中儲存了幾十個更新程式的檔案是以blob型別來儲存的,當客戶登入系統時會檢查更新並下載這些程式檔案.
下面是執行升級時所執行語句的跟蹤資訊
TKPROF: Release 11.2.0.3.0 - Development on Thu Oct 11 11:56:47 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Trace file: /database/diag/rdbms/xxdyb/xxdyb1/trace/xxdyb1_ora_802824_Jy_Trace_20121011.trc
Sort options: default
********************************************************************************
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
********************************************************************************
SQL ID: cf06fwacdmgfk Plan Hash: 1546270724
select 'x'
from
dual
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 0 0 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.00 0.00 0 0 0 1
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 85 (INSUR_TEST)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
1 1 1 FAST DUAL (cr=0 pr=0 pw=0 time=3 us cost=2 size=0 card=1)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT MODE: ALL_ROWS
1 FAST DUAL
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 2 0.00 0.00
SQL*Net message from client 2 0.01 0.01
********************************************************************************
SQL ID: fdjxawa50ppb3 Plan Hash: 2249315794
select *
from
application_version
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 100 0.52 1137.37 0 18010 1 99
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 102 0.52 1137.37 0 18010 1 99
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 85 (INSUR_TEST)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
---------- ---------- ---------- ---------------------------------------------------
99 99 99 TABLE ACCESS FULL APPLICATION_VERSION (cr=9409 pr=0 pw=0 time=710 us cost=2495 size=4512 card=96)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT MODE: ALL_ROWS
99 TABLE ACCESS MODE: ANALYZED (FULL) OF 'APPLICATION_VERSION'
(TABLE)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 101 0.00 0.00
SQL*Net message from client 101 10.60 184.38
SQL*Net more data to client 34094 10.73 1136.87
********************************************************************************
但在透過應用程式程式上傳這個程式檔案並儲存在application_versions表中是速度很快.
SQL*Net more data to client 這個等待事件是指示資料庫在不斷地傳送資料到客戶端時的網路問題.
後經地檢查傳送是華為交換機的問題,但上傳更新程式到資料庫中網路沒有問題,但是下載時網路出問題.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26015009/viewspace-746374/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【等待事件】SQL*Net more data to client事件SQLclient
- SQL* Net message to client 和SQL * Net more data to client等待事件SQLclient事件
- Oracle的SQL*Net more data from client 等待事件分析OracleSQLclient事件
- 【等待事件】SQL*Net more data from dblink事件SQL
- SQL*Net more data from clientSQLclient
- [20180918]等待事件SQL/Net more data from client.txt事件SQLclient
- SDU&SQL*NET MORE data to clientSQLclient
- 【等待事件】SQL*Net vector date to client事件SQLclient
- [20180925]等待事件SQLNet more data from client 6.txt事件SQLclient
- [20180922]等待事件SQLNet more data from client 4.txt事件SQLclient
- [20180920]等待事件SQLNet more data from client 3.txt事件SQLclient
- [20180926]等待事件SQLNet more data from client 7.txt事件SQLclient
- 診斷network網路SQL*Net more data to client_awrSQLclient
- SQL*Net break/reset to client等待SQLclient
- 檢視造成等待事件的具體SQL語句事件SQL
- SQL*Net more data from dblink Reference NoteSQL
- 由row cache lock等待事件引起的效能問題事件
- 未提交事務造成的等待事件事件
- select hang住等待SQL*Net message from ClientSQLclient
- SQL*Net more data from dblink引起library cache pinSQL
- 【等待事件】SQL*Net message from dblink事件SQL
- mysql 字符集造成的效能問題MySql
- SQL*Net message from client 事件產生的原因分析SQLclient事件
- 閒聊oracle SQL*Net相關的空閒等待事件OracleSQL事件
- Dynamic Parameters造成的linked server效能問題Server
- 【效能調整】等待事件(三) 常見等待事件(一)事件
- 【效能調整】等待事件(四) 常見等待事件(二)事件
- 索引分裂造成的index contention等待事件的診斷索引Index事件
- pl/sql + client 版本位數問題SQLclient
- 【效能調整】等待事件(一)事件
- 【效能調整】等待事件(二)事件
- 等待事件效能診斷方法事件
- 基於等待事件的效能診斷事件
- SQL*Net break/reset to clientSQLclient
- 【效能調整】等待事件(五)log相關等待事件
- SGA設定過大造成的系統效能問題
- [異常等待事件latch undo global data]分析事件
- [轉載]Oracle等待事件Data file init writeOracle事件