您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息

Oracle wait event 等待事件

2024/4/20 17:54:08发布8次查看
等待事件的概念大概是从oracle 7.0.12中引入的,大致有100个等待事件。在oracle 8.0中这个数目增大到了大约150个,在oracle 8i中
等待事件的源起
等待事件的概念大概是从oracle 7.0.12中引入的,大致有100个等待事件。在oracle 8.0中这个数目增大到了大约150个,,在oracle 8i中大约有220个事件,在oracle 9ir2中大约有400个等待事件,而在最近oracle 10gr2中,大约有874个等待事件。
虽然不同版本和组件event, '%b0%b2%d7%b0'); target=_self>安装可能会有不同数目的等待事件,但是这些等待事件都可以通过查询v$event_name视图获得:
sql> select * from v$version;
banner
----------------------------------------------------------------
oracle database 10g enterprise edition release 10.2.0.1.0 - prod
pl/sql release 10.2.0.1.0 - production
core 10.2.0.1.0 production
tns for 32-bit windows: version 10.2.0.1.0 - production
nlsrtl version 10.2.0.1.0 – production
sql> select count(*) from v$event_name;
count(*)
----------
872
oracle的等待事件,主要可以分为两类,即空闲(idle)等待事件和非空闲(non-idle)等待事件。
1). 空闲等待事件指oracle正等待某种工作,在诊断和优化数据库的时候,不用过多注意这部分事件。
2). 非空闲等待事件专门针对oracle的活动,指数据库任务或应用运行过程中发生的等待,这些等待事件是在调整数据库的时候需要关注与研究的。
下面来看一下oracle 10gr2中主要分类及各类等待事件的个数:
sql> select wait_class#,wait_class_id,wait_class,count(*) as count
2 from v$event_name
3 group by wait_class#,wait_class_id,wait_class
4 order by wait_class#;
wait_class# wait_class_id wait_class count
----------- ------------- ------------------------------ ----------
0 1893977003 other 588
1 4217450380 application 12
2 3290255840 configuration 23
3 4166625743 administrative 46
4 3875070507 concurrency 24
5 3386400367 commit 1
6 2723168908 idle 62
7 2000153315 network 26
8 1740759767 user i/o 17
9 4108307767 system i/o 24
10 2396326234 scheduler 2
11 3871361733 cluster 47
12 rows selected.
常见的空闲事件有:
•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
一些常见的非空闲等待事件有:
•db file scattered read
•db file sequential read
•buffer busy waits
•free buffer waits
•enqueue
•latch free
•log file parallel write
• log file sync
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录