Solved

Roll Back to update command / restore from another schema

Posted on 2006-06-17
7
721 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:
Kent Olsen earned 80 total points
ID: 16928206
Hi itgi,

Do you have a good backup?


Kent
0
 
LVL 13

Assisted Solution

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

Assisted Solution

by:sachinwadhwa
sachinwadhwa earned 80 total points
ID: 16934084
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
ID: 16935120
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
ID: 16937941
The DB2 Recovery Expert can also perform logical undo. Costs $$ though.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
the encoding configuration of DB2 V8.02 3 443
SQL UPDATE QUERY PROBLEM 5 188
remove db2tschg.his file 1 129
Getting missing rows 16 65
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

839 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