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 > Restoring Dropped Table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-26-04, 20:51
Bill Hopgood Bill Hopgood is offline
Registered User
 
Join Date: Jan 2004
Location: Dunedin, New Zealand
Posts: 8
Restoring Dropped Table

Hello,

I'm trying to restore from backup a couple of dropped tables.

DB2 8.1 FP4 for Windows.

I can do an online database or tablespace restore rolling forward but the tables never appear in the table space once the restore is completed.

There are no error messages or anything.

I'm quite new at this so could I be missing something?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 01-26-04, 22:43
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I hope I understand your situation correctly, but if you restore and then roll forward to the end of the logs, drop table statements will be reapplied (the tables will be dropped). You need to roll forward to a point in time before you dropped the tables.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 01-26-04, 23:15
Bill Hopgood Bill Hopgood is offline
Registered User
 
Join Date: Jan 2004
Location: Dunedin, New Zealand
Posts: 8
That is what I thought was happening too Marcus.

Trouble is that I can't seem to pick the time to roll forward too.

Quite frustrating really. I managed to get everything completely messed up at one stage with Rollforward pending, Bankup Pending, unable to connect type messages, you must do a full online backup etc.

I must say that the whole restore process is quite conveluted to the novis like me!

Thanks for your help.
Reply With Quote
  #4 (permalink)  
Old 01-27-04, 10:47
cchattoraj cchattoraj is offline
Registered User
 
Join Date: Mar 2003
Posts: 343
Well then do this - give the database a time a year ago to rollforward to - the database will return the minimum point in time for rollforward (which is the max of db or any tablespace in the db). Use that timestamp to rollforward to and don't forget to use the 'and stop' clause.

Hope this helps.
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