Undo used by Batch Job [message #440612] |
Tue, 26 January 2010 03:42 |
chetanaZ
Messages: 132 Registered: October 2009 Location: UK
|
Senior Member |
|
|
Hi,
We have a batch job running for 4 hours in the evening - 18:30 till 22:30
If there are no database activities on the database after 22:30 till next day morning,
Is there a way to find out how much undo was used by this batch job previous evening?
meaning on 28/01/2010 morning can we find out how much undo was used by batch job which ran on the evening of 27/01/2010?
Thanks and Regards,
Chetana
|
|
|
|
Re: Undo used by Batch Job [message #440618 is a reply to message #440612] |
Tue, 26 January 2010 04:36 |
chetanaZ
Messages: 132 Registered: October 2009 Location: UK
|
Senior Member |
|
|
Hi Michel,
Many Thanks for the quick reply
Meaning if I execute following query on 28/01/2010 morning, I will get the undo (size), generated on 27/01/2010 evening?
select u.undoblks*8192/1024/1024 undosize_mb from v$undostat u
where
u.begin_time>to_date('27-01-2010 18:30:00','dd-mm-yyyy hh24:mi:ss') and
u.end_time<to_date('27-01-2010 22:30:00','dd-mm-yyyy hh24:mi:ss');
Also I assume I will need to give begin_time and end_time to match exactly with entries in v$undostat which are closer to my required begin/end_time. Right?
Thanks and Regards,
Chetana
|
|
|
|