SQL*Net Wait Events
admin
2023-05-10 10:01:55
0

What is a Wait Event ?

During the normal functioning of a database, an Oracle process will occasionally have to wait for something. These waits are recorded the RDBMS performance tables (V$views) where they are categorized into wait events.

There are two types of wait events, idle waits and non-idle waits. Non-idle waits indicate that a process is waiting for a resource that is temporarily unavailable, while idle waits simply mean that process has no work to do.

What is the meaning of SQL*Net Idle events ?

There are two type of SQL*Net events, SQL*Net client events and SQL*Net dblink events.

Often SQL*Net idle events are raised as a possible problem, due the large values seen for the events in database performance reports.

Elapsed times include waiting on following events: 
Event waited on              Times  Max. Wait  Total Waited 
-----------------------------Waited ---------- ------------ 
SQL*Net message to client    10000        0.00         0.00 
SQL*Net message from client  10000        0.01         4.91


SQL*Net client
Generally, the SQL*Net client events represent idle events. That is when the client is infact waiting / doing no work and can be useful in indicating what is not the bottleneck. An example of this type of event is the most commonly encountered idle wait-event 'SQL*Net message from client'.

One possible exception to this is the SQL*Net break/reset to client event.

SQL*Net break/reset to client
The server is sending a break or reset message to the client. The session running on the server is waiting for a reply from the client.These waits are caused by an application attempting to:

  • Select from a closed cursor

  • Select on a cursor after the last row has already been fetched and no data has been returned

  • Select on a non-existent table

  • Insert a duplicate row into a uniquely indexed table

  • Issuing a query with invalid syntax

  • If the value, v$session_wait.p2, for this parameter equals 0, it means a reset was sent to the client. A non-zero value means that the break was sent to the client.

SQL*Net message from dblink
This event signifies that the session has sent a message to the remote node and is waiting for a response from the database link. This time could go up because of the following:

  • Network bottleneck, For information, see "SQL*Net message from client".

  • Time taken to execute the SQL on the remote node

It is useful to see the SQL being run on the remote node. Login to the remote database, find the session created by the database link, and examine the SQL statement being run by it.

  • Number of round trip messages

Each message between the session and the remote node adds latency time and processing overhead. To reduce the number of messages exchanged, use array fetches and array inserts.

Oracle Net server tracing can also assist in confirming what is happening for the dblink.
Note 746917.1 How to Enable Oracle Net Tracing for Database links.


In summary, Client events should not be considered for performance measure unless values are extremely high.

For more information on RDBMS performance and events see Oracle documentation and articles such as

http://www.oracle.com/technology/products/manageability/database/pdf/OWPerformanceMgmtPaper.pdf

http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/waitevents003.htm#sthref3189

相关内容

热门资讯

沈伯洋不认“抗中保台”?徐巧芯... 海峡导报综合报道 民进党13日正式征召民进党民代沈伯洋参选台北市长,蓝绿对决态势至此成形。对此,国民...
宝马线上股东大会“技术故障”背... 【文/观察者网 张家栋 编辑/高莘】当地时间5月13日,据德国《世界报》报道,宝马集团年度股东大会因...
线上预约+线下收购,十部门联合... 2026年夏粮旺季收购即将全面启动。近日,国家发展改革委、国家粮食和物资储备局等十部门联合发出通知,...
赖清德再度缺席弹劾案审查会,国... 台民意机构于5月14日继续召开针对台湾地区领导人赖清德弹劾案的第二次审查会,赖清德与13日一样未出席...
伊朗学者:特朗普访华或影响美伊... 美国总统特朗普访问中国之际,美伊停火谈判和霍尔木兹海峡危机仍未解决。伊朗学者法拉吉扎德在接受凤凰卫视...
日本版星链军事侦察网启用 日本防卫政务官若林洋平今天(5月14日)在日本国会参议院内阁委员会上称,为确保作为“反击能力”手段的...
外交部:美方务必慎之又慎处理台... 5月14日,外交部发言人郭嘉昆主持例行记者会。有记者就台湾问题提问,郭嘉昆表示,习近平主席与特朗普总...
世卫组织:全球卫生进展失衡 急... 世界卫生组织13日发布的《2026年世界卫生统计》报告显示,全球卫生领域近年来虽取得一定进展,但进展...
储量2356.87亿立方米!我... 【大河财立方消息】据中国石化,中国石化四川资阳东峰页岩气田2356.87亿立方米探明地质储量通过自然...
英国拟将中国敬业集团旗下的英钢... 有记者问:近日有英国媒体报道称,英国政府将通过相关立法,将中国敬业集团旗下的英国钢铁公司国有化。请问...