Solved

Roll Back to update command / restore from another schema

Posted on 2006-06-17
7
718 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

816 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

10 Experts available now in Live!

Get 1:1 Help Now