暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Oracle 撤消和重做统计

ASKTOM 2020-05-01
608

问题描述

我正在构建Grafana仪表板,以展示我们关心高级管理层的Oracle RAC数据库统计数据。我需要每小时由数据库服务生成的重做的细分?您能否就我如何从数据字典中获取此信息提供帮助。我也在看撤销统计数据。我想要按数据库服务对撤消段的消耗进行细分。我希望发现数据的趋势,以便我们可以调整我们的应用程序,确定哪些过程正在加速撤消和重做。我知道有一些复杂的方法可以得到这个,但我正在寻找你的专家建议。

专家解答

如果您查看v $ service_stats,则可以看到我们在服务级别为您自动收集的统计信息

SQL> select distinct stat_name from v$service_stats order by 1;

STAT_NAME
----------------------------------------------------------------
DB CPU
DB time
Main function call count
application wait time
cluster wait time
concurrency wait time
db block changes
execute count
gc cr block receive time
gc cr blocks received
gc current block receive time
gc current blocks received
logons cumulative
opened cursors cumulative
parse count (total)
parse time elapsed
physical reads
physical writes
redo size
session cursor cache hits
session logical reads
sql execute elapsed time
user I/O wait time
user calls
user commits
user rollbacks
workarea executions - multipass
workarea executions - onepass
workarea executions - optimal


因此,您将使用DBA_HIST_SERVICE_STAT在间隔内自动收集

如果您可以将自己限制在这一点上,那将使事情变得容易得多,因为您不需要 “自己滚动”。

您可以从上面的列表中看到,您将直接通过 “重做大小” 获得重做,但我们不收集撤消,但我认为 “db块更改” 和 “用户提交” 应该足够了。
文章转载自ASKTOM,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论