[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Roll Back to update command / restore from another schema

Posted on 2006-06-17
7
Medium Priority
?
733 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
5 Comments
 
LVL 46

Accepted Solution

by:
Kent Olsen earned 320 total points
ID: 16928206
Hi itgi,

Do you have a good backup?


Kent
0
 
LVL 13

Assisted Solution

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

Assisted Solution

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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

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…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month19 days, 18 hours left to enroll

873 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