If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How to recover lost data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-02-10, 11:15
Rajesh1203 Rajesh1203 is offline
Registered User
 
Join Date: Aug 2010
Posts: 38
How to recover lost data

One of my developer deleted all the data from a table using 'delete from tablename' statement,how can I recover this data?

it happened in test db though, but want to get familiarize so that if such situation comes in production I can face it.

Alternative is to bring the data from prod and put it here. but I want to recover the lost data.

hope I am clear about what I need.

Thanks
Rajesh.
Reply With Quote
  #2 (permalink)  
Old 11-02-10, 11:23
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Have you heard of back up and restore ability?
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #3 (permalink)  
Old 11-02-10, 11:38
Rajesh1203 Rajesh1203 is offline
Registered User
 
Join Date: Aug 2010
Posts: 38
Quote:
Originally Posted by Cougar8000 View Post
Have you heard of back up and restore ability?
I have a last night's backup but that is full db back up. I dont want to restore the entire Db but just recover the table's data.

Can I just restore this table from the full backup?
Reply With Quote
  #4 (permalink)  
Old 11-02-10, 14:30
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by Rajesh1203 View Post
Can I just restore this table from the full backup?
Sure. Restore the backup into a new database, export the missing table data, then load it into the old database.
Reply With Quote
  #5 (permalink)  
Old 11-02-10, 18:13
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Or you can restore selected tablespaces into a new db if you're using v9.x (check "Database rebuild" in the manual)
Reply With Quote
  #6 (permalink)  
Old 11-03-10, 10:22
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
And when you are done review access on your tables.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On