本帖最后由 zf_ora 于 2013-4-8 21:42 编辑
我用AWR报告截取一节点的快照,间隔是1小时,显示DBTime是426.94分钟。
DB Name DB Id Instance Inst num Release RAC Host
YCDB 3121355900 ycdb1 1 10.2.0.4.0 YES szcore_db1
Snap Id Snap Time Sessions Cursors/Session
Begin Snap: 38251 07-Apr-13 13:00:52 569 12.7
End Snap: 38252 07-Apr-13 14:00:39 596 12.3
Elapsed: 59.79 (mins)
DB Time: 426.94 (mins)
同样我去数据库的DBA_HIST_SYSSTAT中根据快照号38251 和 38252得出的一节点的DB TimeVALUE 是:- SQL> SELECT value1-value2 FROM
- 2 (
- 3 SELECT STAT_NAME,
- 4 SNAP_ID,
- 5 INSTANCE_NUMBER,
- 6 VALUE VALUE1,
- 7 LAG(VALUE, 1) OVER(ORDER BY SNAP_ID) VALUE2
- 8 FROM DBA_HIST_SYSSTAT
- 9 WHERE SNAP_ID IN (38251, 38252)
- 10 AND STAT_NAME = 'DB time'
- 11 AND INSTANCE_NUMBER = 1
- 12 ORDER BY INSTANCE_NUMBER
- 13 )
- 14 WHERE snap_id=38252;
- VALUE1-VALUE2
- -------------
- 3944167
复制代码 那么这个差值3944167 和AWR给出的 426.94 (mins)是如何转换的呢?是否有不一致的情况出现?
|