Solved

Excessive rollback time

Posted on 2009-04-03
3
812 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 48

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
exp/imp 25 99
how to trim oracle sql sentence in unix 17 69
Error in creating a view. 8 32
Reference datasets inside PL/SQL cursor and dumping queried datasets 3 33
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 …
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

740 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