Oracle空闲等待事件和非空闲等待事件


  Oracle的等待事件是衡量Oracle运行状况的重要依据及指标。等待事件的概念是在Oracle7.0.1.2中引入的,大致有100个等待事件。在Oracle 8.0中这个数目增加到了大约150个,在Oracle8i中大约有200个事件,在Oracle9i中大约有360个等待事件。主要有两种类别的等待事件,即空闲(idle)等待事件和非空闲(non-idle)等待事件。

  空闲事件指Oracle正等待某种工作,在诊断和优化数据库的时候,我们不用过多注意这部分事件。

  常见的空闲事件有:

  • dispatcher timer
  • lock element cleanup
  • Null event
  • parallel query dequeue wait
  • parallel query idle wait - Slaves
  • pipe get
  • PL/SQL lock timer
  • pmon timer- pmon
  • rdbms ipc message
  • slave wait
  • smon timer
  • SQL*Net break/reset to client
  • SQL*Net message from client
  • SQL*Net message to client
  • SQL*Net more data to client
  • virtual circuit status
  • client message

  非空闲等待事件专门针对Oracle的活动,指数据库任务或应用运行过程中发生的等待,这些等待事件是我们在调整数据库的时候应该关注与研究的。

  一些常见的非空闲等待事件有:

  • db file scattered read
  • db file sequential read
  • buffer busy waits
  • free buffer waits
  • enqueue
  • latch free
  • log file parallel write
  • log file sync

 

相关内容