Undoing accidental update after two days
I am using Oracle 9i R2. Two days back I made an accidental update on a large table. I tried to find all sorts of ways to undo this update. I tried FlashBack query but the unwanted changes persist. What are the different ways to handle this type of situation if two or more days have passed?

    Requires Free Membership to View

    By submitting your registration information to SearchOracle.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchOracle.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Flashback Query will only be able to go as far back as the number of seconds specified by the UNDO_RETENTION parameter. It is unlikely that you have configured UNDO_RETENTION for 48 hours. You have two options, both of which require archived redo logs. One, restore from a backup prior to the change and then roll forward to the point in time before the change occurred. This will result in incomplete recovery and you will lose all changes since that time. Two, use Oracle's Log Miner to read the archived redo logs for the SQL statements to UNDO the transaction. I would favor the second option in this case.

This was first published in February 2007

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.