sql net message from|to client與sql execution count
----如下語句在某會話執行120次
update t_network set a=a+1;
update t_network set a=a+1;
update t_network set a=a+1;
update t_network set a=a+1;
update t_network set a=a+1;
update t_network set a=a+1;
update t_network set a=a+1;
update t_network set a=a+1;
update t_network set a=a+1;
update t_network set a=a+1;
update t_network set a=a+1;
update t_network set a=a+1;
update t_network set a=a+1;
update t_network set a=a+1;
update t_network set a=a+1;
update t_network set a=a+1;
update t_network set a=a+1;
--檢視某會話的事件
EVENT TOTAL_WAITS TIME_WAITED AVERAGE_WAIT
---------------------------------------------------------------- ----------- ----------- ------------
SQL*Net message to client 143 0 0
SQL*Net message from client 142 4748 33.44 --sql*net message from client猛增和to client
Disk file operations I/O 3 0 0.08
log file sync 1 0 0.07
--如果把上述的120次執行的sql用plsql實現又是如何呢
SQL> begin
2 for i in 1..125 loop
3 update t_network set a=a+1;
4 commit;
5 end loop;
6 end;
7 /
PL/SQL procedure successfully completed.
SQL> /
EVENT TOTAL_WAITS TIME_WAITED AVERAGE_WAIT
---------------------------------------------------------------- ----------- ----------- ------------
SQL*Net message to client 15 0 0
SQL*Net message from client 14 1727 123.38 --總的等待次數及總的等待時間大為下降
Disk file operations I/O 2 0 0.07
log file sync 1 0 0.11
SQL>
小結:如果上述的sql*net message from/to client大量上升,表示sql執行次數很高,從這塊入手處理下問題
這就是為何要用plsql封裝重複執行的sql原因,不然oracle與客戶端多次互動,會影響客戶的響應感覺與響應時間
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-761562/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SQL*Net message from clientSQLclient
- select hang住等待SQL*Net message from ClientSQLclient
- SQL*Net message from client 事件產生的原因分析SQLclient事件
- SQL* Net message to client 和SQL * Net more data to client等待事件SQLclient事件
- [20161208]SQL*Net message from clientSQLclient
- 0824SQL/Net message from client 丟包模擬SQLclient
- SQL*Net more data from clientSQLclient
- 【等待事件】SQL*Net message from dblink事件SQL
- Retrieve SQL and Execution Plan from AWR SnapshotsSQL
- 0124奇怪的SQL*Net message from dblinkSQL
- Oracle的SQL*Net more data from client 等待事件分析OracleSQLclient事件
- SQL*Net break/reset to clientSQLclient
- Script to generate AWR report from remote sql clientREMSQLclient
- SQL*Net break/reset to client等待SQLclient
- 20180126模擬SQL*Net message from dblinkSQL
- 【等待事件】SQL*Net more data to client事件SQLclient
- 【等待事件】SQL*Net vector date to client事件SQLclient
- SDU&SQL*NET MORE data to clientSQLclient
- [20190622]收集SQLNet Message From Client資訊.txtSQLclient
- Parallel Execution of SQL StatementsParallelSQL
- [20180918]等待事件SQL/Net more data from client.txt事件SQLclient
- 【等待事件】SQL*Net more data from dblink事件SQL
- SQL*Net more data from dblink Reference NoteSQL
- SQL Server、Oracle中CASE 與COUNT合用計數SQLServerOracle
- zt_oracle11g sql baseline與sql execution plan執行計劃OracleSQL
- 診斷network網路SQL*Net more data to client_awrSQLclient
- SQL Server中count(*)和Count(1)的區別SQLServer
- Flink SQL Client初探SQLclient
- Connect SQL Server from Linux Client using Windows Authentication and troubleshoot stepsSQLServerLinuxclientWindows
- SAP ABAP SQL的execution plan和cacheSQL
- SQL*Net more data to client 等待事件造成的效能問題SQLclient事件
- SQL語句case when外用sum與count的區別SQL
- SQL*Net more data from dblink引起library cache pinSQL
- ABP Framework Consuming HTTP APIs from a .NET ClientFrameworkHTTPAPIclient
- 【SQL】Using Oracle's Parallel Execution FeaturesSQLOracleParallel
- Flink SQL Client綜合實戰SQLclient
- High Version Count Issues(SQL高Version Count) (文件 ID 296377.1)SQL
- Sql優化(二) 快速計算Distinct CountSQL優化