Solved

Excessive rollback time

Posted on 2009-04-03
3
809 Views
Last Modified: 2013-12-19
I executed an update on a single column in a table with 225 million records via a scheduled job.  After 3 hours, I decided to kill the session and modify the query to try and get it to run faster. The subsequent rollback is estimated to take 35 hours (select used_urec from v$transaction;). It doesn't seem like a query should take 10 times longer to rollback. Is it possible that one of the database parameters is misconfigured? The SGA is approximately 20 GB.
0
Comment
Question by:rostara
3 Comments
 
LVL 47

Accepted Solution

by:
schwertner earned 250 total points
ID: 24060563
There is a parameter retention_interval in the SPFILE that says how long the entries in the UNDO should be kept.
Normally it is very big.
In your case pute there a smaller value like 5 (minutes).
So the UNDO will shrink faster
0
 
LVL 40

Assisted Solution

by:mrjoltcola
mrjoltcola earned 250 total points
ID: 24062202
I also suggest maybe you need to run your db for this type of transaction.

1) Are you using explicit rollback segments or managed undo? Consider creating a specific large rollback segment in a tablespace specifically for this. Then use the rollback segment in the transaction. Put the tablespace on a different disk.

2) Do you have a lot of indexes, etc.? Maybe consolidating indexes would help overall. But a rollback should not take many times more than a query, which is why I think maybe you have IO contention (see 1).

0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question