Parse CPU to Parse Elapsd% >100%

本文通过SQL查询展示了Oracle数据库中解析CPU时间和解析耗时的关系,并针对一个高出预期的百分比进行了讨论。通过查询v$sysstat视图获取了parsetimecpu和parsetimeelapsed的具体数值,发现两者之间的计算结果出现了较大偏差。Metalink工程师认为这是由计算误差引起的。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

SQL> select round(cpu.value / elapsed.value * 100, 2) "Parse CPU to Parse Elapsd %:"
2 from v$sysstat cpu, v$sysstat elapsed
3 where cpu.name = 'parse time cpu'
4 and elapsed.name = 'parse time elapsed';

Parse CPU to Parse Elapsd %:
----------------------------
32955.43

SQL> select * from v$sysstat where name like '%parse time%';

STATISTIC# NAME CLASS VALUE STAT_ID
---------- ------------------------------ ---------- ---------- ----------
336 parse time cpu 64 4299741367 206905303
337 parse time elapsed 64 13047396 1431595225

parse time cpu

64

Total CPU time used for parsing (hard and soft) in 10s of milliseconds

3

parse time elapsed

64

Total elapsed time for parsing, in 10s of milliseconds. Subtract "parse time cpu" from the this statistic to determine the total waiting time for parse resources

开了个SR 问Metalink, Metalink 工程师说 这个是计算误差导致的,我要他们详细的官方文档,没得, TNND 忽悠哥哥

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值