Locate Server Workload for a Defined Timeframe
Retrieve Stats for a Day from Statspack tables
select to_char ( trunc ( b.snap_time ) , 'DD-MM-YYYY' ) , statistic# , name , sum ( value ) from STATS$SYSSTAT A , stats$snapshot B where a.snap_id = b.snap_id and trunc ( b.snap_time ) > trunc ( sysdate - 30 ) and a.statistic# = 54 < Replace with Stats Number Below > group by trunc ( b.snap_time ) , statistic# , name order by trunc ( b.snap_time );
Please replace statistic from Type of stats
Select * from STATS$SYSSTAT where name like '%XXX%'
9 session logical reads
Physical Reads
54 Physical Reads
56 Physical reads direct
58 physical read bytes
39 physical read total bytes
42 physical write total bytes
66 physical write bytes
66 physical writes
CPU Related
355 OS Wait-cpu (latency) time
328 parse time cpu
8 recursive cpu usage
Rollback Related –
176 transaction tables consistent read rollbacks
180 rollbacks only – consistent read gets
181 cleanouts and rollbacks – consistent read gets
187 transaction rollbacks
5 user rollbacks
239 IMU CR rollbacks
186 rollback changes – undo records applied
Leave a Reply
You must be logged in to post a comment.