Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Measuring Rollback Usage
First, queries don't generate rollback. Only DML does that.
Second, v$rollstat joined with v$transaction will give you what you are after -in cunningly named fields like UBABLK and UBAREC. At least, you can use that to work out how much rollback a given transaction is generating. Whether that stuff is then being read by anyone else is much more difficult to work out (ie, I don't know a way of doing it... and I suspect there isn't a way, because if there were, we'd never have Snapshot Too Old errors).
Regards
HJR
-- --------------------------------------------------------------------------- Opinions expressed are my own, and not those of Oracle Corporation Oracle DBA Resources: http://www.geocities.com/howardjr2000 --------------------------------------------------------------------------- "Greg Stark" <greg-spare-1_at_mit.edu> wrote in message news:877l6czn50.fsf_at_HSE-MTL-ppp62193.qc.sympatico.ca...Received on Thu Nov 09 2000 - 19:54:38 CST
>
> Is there any way to measure how much rollback is being generated by each
> query, and for each how much of that rollback is actually being read?
>
> The goal here is to maximize the time that useful rollback is kept
available
> by finding queries generating lots of rollback that isn't actually being
read,
> and isolate that rollback in a separate rollback segment.
>
> --
> greg