Solved

Roll Back to update command / restore from another schema

Posted on 2006-06-17
7
716 Views
Last Modified: 2007-12-19
Hi,

I have run an update command without giving where clause. So my entire Table is updated by given value. Any body help me how to roll back it or restore from back up.

it is very urgent.

regards
0
Comment
Question by:itgi
7 Comments
 
LVL 45

Accepted Solution

by:
Kdo earned 80 total points
Comment Utility
Hi itgi,

Do you have a good backup?


Kent
0
 
LVL 13

Assisted Solution

by:ghp7000
ghp7000 earned 80 total points
Comment Utility
only thing you can do is to restore from a backup
0
 
LVL 7

Assisted Solution

by:sachinwadhwa
sachinwadhwa earned 80 total points
Comment Utility
restore from last night's backup !

and if its a mission critical table...best of luck in your job search!
0
 
LVL 18

Assisted Solution

by:daveslash
daveslash earned 80 total points
Comment Utility
It's pretty simple.

If you're running with any commitment control level except *NONE or *NC, you can manually issue a ROLLBACK command.

Since it's been a couple days since you posted the question, that may not be viable.

If you're running on DB2 for iSeries (a.k.a AS/400 or System i), then you could check the journaling data for the table.

Outside of those options, you'll need to restore from backup.

Good luck!
DaveSlash
0
 
LVL 2

Assisted Solution

by:srielau
srielau earned 80 total points
Comment Utility
The DB2 Recovery Expert can also perform logical undo. Costs $$ though.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now