用SQL_TRACE对Oracle进行诊断(二)

本文解析了SQLTrace文件中各项指标的含义,包括调用次数、CPU时间、执行时间等,并详细解释了这些指标如何帮助诊断SQL性能问题。

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

分析SQL Trace文件各项的含义

OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS

call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse      345      0.17       0.90         22        730          0           0
Execute    679      0.20       2.68         72       1416        451         110
Fetch     1408      0.07       1.41         68       2388          1        1039
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total     2432      0.45       5.00        162       4534        452        1149

其中各项含义如下:

********************************************************************************
count    = number of times OCI procedure was executed
cpu      = cpu time in seconds executing
elapsed  = elapsed time in seconds executing
disk     = number of physical reads of buffers from disk
query    = number of buffers gotten for consistent read
current  = number of buffers gotten in current mode (usually for update)
rows     = number of rows processed by the fetch or execute call

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值