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 > Online backup Rollforward error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-01-04, 10:15
JDCam JDCam is offline
Registered User
 
Join Date: Feb 2004
Posts: 9
Online backup Rollforward error

Db2 7.1 FP10

I am using an online backup to restore a live database onto a development machine. The restore has been sucessfull, but I am having problems with the roll forward.

Because an online backup was used, log files were not captured. I have copied ALL log files in the production dir to my development server.

"rollforward db JDS_LIVE stop" results in the following error:

Database "JDS_LIVE" cannot be brought out of roll forward pending state until roll-forward has passed a point in time greater than or equal to "2004-03-31-04.32.53.000000", because node "0" contains information later than the specified time

My online backup has a time stamp of 20040330230004

Obviously coming from a production server, I have logfiles dated before and after both of the quoted date/times. I have tried many combinations of log files before / after both dates, but get the same error.

The log files from what date range should I be including in the rollforward ..... Or am I doing something else wrong

Cam
Reply With Quote
  #2 (permalink)  
Old 04-01-04, 10:33
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Re: Online backup Rollforward error

Quote:
Originally posted by JDCam


The log files from what date range should I be including in the rollforward ..... Or am I doing something else wrong

Cam
On the production machine, do a "LIST HISTORY BACKUP ALL FOR <dbname>".

That will tell you what log files are needed (Earliest-Current).
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #3 (permalink)  
Old 04-01-04, 11:57
JDCam JDCam is offline
Registered User
 
Join Date: Feb 2004
Posts: 9
My appologies ... I am learning as I go here

I have done the list history command as you instruct. Under the entry matching the Online backup I am using I see the files identified as:
Earliest: S0000259.log
Current: S0000261.log

I have copied the 3 files 259,260 and 261 to the log directory on the test machine (no other log files there). I reran the same statement and received the same error message as before.

Is it just the files from this particular online backup I need to worry about, or anything before or after it. ? Is it all files since the last Offline backup ??

Cam
Reply With Quote
  #4 (permalink)  
Old 04-01-04, 12:12
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally posted by JDCam
My appologies ... I am learning as I go here

I have done the list history command as you instruct. Under the entry matching the Online backup I am using I see the files identified as:
Earliest: S0000259.log
Current: S0000261.log

I have copied the 3 files 259,260 and 261 to the log directory on the test machine (no other log files there). I reran the same statement and received the same error message as before.

Is it just the files from this particular online backup I need to worry about, or anything before or after it. ? Is it all files since the last Offline backup ??

Cam
No, those should be enough to get it consistent.

Is this what you're issuing?
ROLLFORWARD DATABASE <dbname> TO END OF LOGS AND STOP

If so, try add OVERFLOW LOG PATH pointing to the directory where the logs are, maybe there's some mix-up there.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #5 (permalink)  
Old 04-01-04, 12:29
JDCam JDCam is offline
Registered User
 
Join Date: Feb 2004
Posts: 9
It has completed sucessfully !!

I was using:
rollforward db JDS_LIVE stop

As per your message I tried again using:
rollforward db JDS_LIVE to end of logs and stop

That seemed to do the trick

Thanks !!
Reply With Quote
  #6 (permalink)  
Old 04-01-04, 12:31
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally posted by JDCam
It has completed sucessfully !!

I was using:
rollforward db JDS_LIVE stop

As per your message I tried again using:
rollforward db JDS_LIVE to end of logs and stop

That seemed to do the trick

Thanks !!
Oops, I should have caught that from the start...
__________________
--
Jonathan Petruk
DB2 Database Consultant
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