暂无图片
暂无图片
2
暂无图片
暂无图片
暂无图片
达梦的等待事件.docx
336
10页
5次
2022-12-24
5墨值下载
作为一名
oracle DBA
日常运维最关注就是等待事件,
这几天有空就会去分析下达梦的等待事件。
如何分析达梦的等待事件,官方资料基本没有。
网上资料也是太少了,也许分析等待事件对于达梦运维帮助不大。
不过既然达梦有这个等待事件,一定是有道理的,
只是目前我们在如何采集、分析方面一无所知。所以今天简单的做个测试下。
一、等待事件概念
1.1.
什么是等待事件
所谓等待事件,是当一个进程连接到数据库之后,进程所经历的种种等待就开始被记录。等待事件
主要可以分为两大类,即空闲
(idle)
等待事件和非空闲
(non-idle)
等待事件:
空闲
(idle)
等待事件:达梦会话正在等待某种工作,在诊断和优化数据库时,通常无需过多关注这
类等待事件。
非空闲
(non-idle)
等待事件:专门针对达梦会话的活动,指数据库任务或应用运行过程中发生的等
待,这类等待事件是诊断优化性能问题时必须关注的事件。
DM8
中的等待事件有
49
个。
我们可以通过
v$event_name
视图来查看等待事件的相关信息。
select * from V$EVENT_NAME
EVENT# EVENT WAIT_CLASS# WAIT_CLASS
0 dbfile read 0 User I/O
1 dbfile multi read 0 User I/O
2 dbfile read wait 0 User I/O
3 dbfile flush wait 0 User I/O
4 dbfile remote read 1 System I/O
5 instance recovery read 1 System I/O
6 dbfile remote write1 System I/O
7 dbfile discard write 1 System I/O
8 dbfile ckpt write 1 System I/O
9 dbfile extend 1 System I/O
10 shared memory pool busy 2 Concurrency
11 buffer busy wait 2 Concurrency
12 dict cache busy 2 Concurrency
13 plan cache busy 2 Concurrency
14 redo log system busy 2 Concurrency
15 redo log buffer busy 2 Concurrency
16 kernel busy 2 Concurrency
17 table lock busy 2 Concurrency
18 tid lock busy 2 Concurrency
19 parallel bdta pool busy 2 Concurrency
20 iid system busy 2 Concurrency
21 session system busy2 Concurrency
22 public vpool busy 2 Concurrency
23 pseg queue busy 2 Concurrency
24 pseg stack busy 2 Concurrency
25 bp latch wait 2 Concurrency
26 page s latch wait 2 Concurrency
27 page x latch wait 2 Concurrency
28 rlog flush wait 3 Rlog
29 commit wait 4 Transaction
30 table lock wait 4 Transaction
31 trxid lock wait 4 Transaction
32 dead lock 4 Transaction
33 transaction system busy 2 Concurrency
34 transaction view busy 2 Concurrency
35 purge system busy 2 Concurrency
of 10
5墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜