0
点赞
收藏
分享

微信扫一扫

❤️Oracle TOP5事件解读,性能优化必备技能❤️


作者:IT邦德
中国DBA联盟(ACDU)成员,目前从事DBA及程序编程
(Web\java\Python)工作,主要服务于生产制造
现拥有 Oracle 11g OCP/OCM、
Mysql、Oceanbase(OBCA)认证
分布式TBase\TDSQL数据库、国产达梦数据库以及红帽子认证
从业8年DBA工作,在数据库领域有丰富的经验
B站主播Oracle、Mysql、PG实战课程,请搜索:jeames007

擅长Oracle数据库运维开发,备份恢复,安装迁移,性能优化、故障应急处理等。

❤️Oracle TOP5事件解读,性能优化必备技能❤️_sql

文章目录

  • ​​前言​​
  • ​​1.理类:Administrative​​
  • ​​2.应用程序类:Application​​
  • ​​3.群集类:Cluster​​
  • ​​4.提交确认类:Commit​​
  • ​​5.并发类:Concurrency​​
  • ​​6.配置类:Configuration​​
  • ​​7.空闲类:Idle​​
  • ​​8.网络类:Network​​

前言


TOP5 这个部分也是AWR报告中非常重要的部分,从这里可以看出等待时间在前五位的是什么事件, 基本上就可以判断出性能瓶颈在什么地方

通常,在没有问题的数据库中,CPU time总是列在第一个,其他几类重要影响性能的事件分析如下

❤️Oracle TOP5事件解读,性能优化必备技能❤️_等待事件_02


❤️Oracle TOP5事件解读,性能优化必备技能❤️_数据库_03

1.理类:Administrative

此类等待事件是由于DBA的管理命令引起的,这些命令要求用户处于等待状态,比如,重建索引。
【Waits resulting from DBA commands that cause users to wait
(for example, an index rebuild)】

2.应用程序类:Application

此类等待事件是由于用户应用程序的代码引起的(比如:锁等待)
【Waits resulting from user application code
(for example, lock waits caused by row level locking or explicit lock commands)】

3.群集类:Cluster

此类等待事件和真正应用群集RAC的资源有关。(比如:gc cr block busy等待事件)
【Waits related to Real Application Cluster resources
(for example, global cache resources such as 'gc cr block busy'

4.提交确认类:Commit

此类等待事件只包含一种等待事件
--在执行了一个commit命令后,等待一个重做日志写确认(也就是log file sync)
【This wait class only comprises one wait event - wait for redo log write confirmation after a commit (that is, 'log file sync')】

5.并发类:Concurrency

此类等待事件是由内部数据库资源引起的,比如闩锁。
【Waits for internal database resources (for example, latches)】
Row Cache Objects --Oracle用于控制内存并发的串行锁机制

6.配置类:Configuration

此类等待事件是由数据库或实例的不当配置造成的,
比如,重做日志文件尺寸太小,共享池的大小等。
【Waits caused by inadequate configuration of database or instance resources
(for example, undersized log file sizes, shared pool size)】

7.空闲类:Idle

此类等待事件意味着会话不活跃,等待工作。
比如,sql * net messages from client。
【Waits that signify the session is inactive, waiting for work
(for example, 'SQL*Net message from client')】

8.网络类:Network

和网络环境相关的一些等待事件,比如sql* net more data to dblink。
【Waits related to network messaging
(for example, 'SQL*Net more data to dblink')】

如果觉得文章对你有帮助,点赞、收藏、关注、评论,一键四连支持
您的批评指正是我写作的最大动力!

❤️ 技术交流可以 关注公众号:IT邦德 ❤️


举报

相关推荐

0 条评论