Oracle9i中一个特殊等待事件--null event
2004-10-26 17:40
459 查看
null event不是空事件,不是没有等待事件,而是Oracle忘记了刚才等待的事件的名字是什么了,但保留了该事件的真实情况。Oracle 的开发人员直到9.2.0.3才更新了这些事件名称。
那是不是我们每当遇到性能问题的时候都要patch到9.2.0.3呢?
我们已经知道他的真实情况依然在v$session_wait的P1、P2、P3参数里体现,所以,我们可以从这些参数顺藤摸瓜,找出这个null event 到底是什么等待事件。
下面是ITPUB上COPY过来的一些信息:
1. LCK processes to pick up extra or missed 'posts' (messages).
In all cases that can be identified the wait time is zero,
although on most ports this is changed to 1/100th second in
order to force the process to be rescheduled.
2. Multiple DB writers.
Two cases:
- When the master has sent i/o requests to the slaves, it
waits on this event for up to 6 seconds until the slaves
signal that the i/o is complete.
- The slaves wait on this event for up to 3 seconds whilst
waiting for requests from the master db writer.
目前已经被证实的会涉及到null event 的等待事件还有有SQL*Net message to client、 db file scattered (or sequential) read
待续
===========================
自己机器上的测试:
sid为12的null event的等待事件与sid为9的是一样的--”SQL*Net message from client“
============================================
那是不是我们每当遇到性能问题的时候都要patch到9.2.0.3呢?
我们已经知道他的真实情况依然在v$session_wait的P1、P2、P3参数里体现,所以,我们可以从这些参数顺藤摸瓜,找出这个null event 到底是什么等待事件。
下面是ITPUB上COPY过来的一些信息:
1. LCK processes to pick up extra or missed 'posts' (messages).
In all cases that can be identified the wait time is zero,
although on most ports this is changed to 1/100th second in
order to force the process to be rescheduled.
2. Multiple DB writers.
Two cases:
- When the master has sent i/o requests to the slaves, it
waits on this event for up to 6 seconds until the slaves
signal that the i/o is complete.
- The slaves wait on this event for up to 3 seconds whilst
waiting for requests from the master db writer.
目前已经被证实的会涉及到null event 的等待事件还有有SQL*Net message to client、 db file scattered (or sequential) read
待续
===========================
自己机器上的测试:
SQL> select sid,event,p1,p2,p3 from v$session_wait; SID EVENT P1 P2 P3 ---------- ------------------------------ ---------- ---------- ---------- 11 null event 2056367224 155 0 12 null event 1111838976 1 0 1 pmon timer 300 0 0 2 rdbms ipc message 300 0 0 3 rdbms ipc message 300 0 0 6 rdbms ipc message 180000 0 0 7 rdbms ipc message 300 0 0 4 rdbms ipc message 300 0 0 5 smon timer 300 0 0 9 SQL*Net message from client 1111838976 1 0 8 wakeup time manager 0 0 0 11 rows selected.
sid为12的null event的等待事件与sid为9的是一样的--”SQL*Net message from client“
============================================
相关文章推荐
- 使一个任务进入等待某事件发生状态, OSEventTaskWait()
- QEventLoop等待另外一个事件的停止,非常实用 good
- 使一个任务进入等待某事件发生状态, OSEventTaskWait()
- 初始化一个事件控制块,OSEventWaitListInit()
- C#多线程同步事件及等待句柄AutoResetEvent 和 ManualResetEvent
- Oracle OWI 等待事件视图(v$session_wait/v$session_event/v$system_event)
- #604 – 定义一个路由事件(Defining a New Routed Event)
- C#事件(event)的一个实例
- 局部QEventLoop帮助QWidget不消失(也就是有一个局部事件循环始终在运行,导致程序被卡住那里,但仍可以接受事件。说白了就是有一个while语句死活不肯退出,直到收到退出信号)
- [VB.NET]我想判断光标是否在A控件上,在就触发一个事件,没在也触发一个事件,请各位高人想个办法,在线等待
- [kernel]休眠等待一个事件结束或条件满足后再执行
- .Net C# - 如何获得一个事件(Event)的订阅者(Handler)的数量和列表?(例程)
- JAVA--第十二周任务之1.编写一个应用程序,要求编写一个Panel的子类MyPanel,MyPanel中有一个文本框和一个按钮,要求MyPanel的实例作为其按钮的ActionEvent事件的监视
- DBA_Oracle Event等待事件分析(概念)
- javascript中,在一个类里attache的event事件中,如果调用类的成员变量和方法
- 演示事件(Event)怎样使用以及怎样为用户控件添加一个事件(示例代码下载)
- 演示事件(Event)怎样使用以及怎样为用户控件添加一个事件(示例代码下载)
- java十二周实验.编写一个应用程序,要求编写一个Panel的子类MyPanel,MyPanel中有一个文本框和一个按钮,要求MyPanel的实例作为其按钮的ActionEvent事件的监视器,当单击
- c#学习笔记之九 事件(event)的使用,一个简单的例子揭示其设计理念
- 在WM_COMMAND中,lParam用来区分是命令消息还是控件通知消息:如果lParam为NULL,则这是个命令消息,否则lParam里面放的必然就是控件的句柄,是一个控件通知消息。对于wParam则是低位放的是控件ID,高位放的是相应的消息事件。