How to determine undo usage in Oracle
Overview
Undo logs. Traditionally transaction undo information was stored in Rollback Segments until a commit or rollback statement was issued. Automatic undo management allows the DBA to specify how long undo information should be retained after commit, preventing “snapshot too old” errors on long running queries.
This is done by setting the UNDO_RETENTION parameter. The default is 900 seconds (5 minutes), and you can set this parameter to guarantee that Oracle keeps undo logs for extended periods of time.
Rather than having to define and manage rollback segments, you can simply define an Undo tablespace and let Oracle take care of the rest. Turning on automatic undo management is easy. All you need to do is create an undo tablespace and set UNDO_MANAGEMENT = AUTO.
With the below information gathered by SQL query, you may have a idea to prevent undo space is running out so quickly.
(More …)
Chandrasekar Sivasamy 9:12 pm on July 3, 2010 Permalink |
Thank you so much. It’s very useful. I have cleared my doubt.
Raj Gopal 10:12 pm on January 20, 2011 Permalink |
The query to calculate the required undo tablespace size is very helpful.