Академический Документы
Профессиональный Документы
Культура Документы
What should be the size of UNDO tablespace? Generally this question is vaguely
answered saying that sizing comes with experience (of DBA) or looking at load on
server or sometimes even by the number of ORA-1555 or out of space errors.
This paper is to help DBA’s in calculating the size of UNDO tablespace by using a
simple formula.
In my case one of the applications was going to production (live), and I had no idea
that how many transactions will happen against this database. All what I was told
that there will be optimum (transactional) activity on this database. The word
“optimum” itself is vague.
So I started with UNDO tablespace with size of 2GB and datafiles with autoextend
“on” .
Note:
In production, you must be very careful in using this (autoextend on) as the space
may grow to inifinity very fast. So my advice is either dont use this option, or use
with "maxsize" or continuously monitor space (which is tough).
This gives you ideal value for UNDO_RETENTION. To be on the safer size you should
add few more seconds to get the right value. So in my case, the size of undo
retention should be say 2000 secs.
UPS
------------------------------
8.11985583
V$undostat stores data for every 10 mins and begin/end times are start/end time
of those intervals. We multiplied it with 24*60*60 because the difference between
two dates will be in days and to get to seconds, we need it to multiply with
24hrs*60mins*60secs
Undo size needed = [8.12 x 2000 x 8192] + [30 x 8192] = 133283840 bytes =
127.11 MB