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 > redirected restore rollforward pending

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-19-10, 09:33
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
redirected restore rollforward pending

Could use some help here. I know I am missing something stupid. I am performing a redirected restore to a machine and can't get out of rollforward pending state. I have a full offline backup and perform
Code:
db2 restore db portaldb taken at 20100818201154 redirect without prompting
I am not doing a set tablespace containers because of using automatic storage. Then issue
Code:
db2 restore db portaldb continue
That finishes sucessfully, but I am in roll forward pending and cannot get it complete.
I tried the same thing with an online backup that included logs and still same issue. Thanks for any help.
Dave
Reply With Quote
  #2 (permalink)  
Old 08-19-10, 10:30
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
You don't need redirect / restore continue if your tablespaces are using automatic storage.

For rollforward pending state, when restoring from an offline db backup - specify "without rolling forward" on the restore command or issue "db2 rollforward db <db name> stop" after the restore.
Reply With Quote
  #3 (permalink)  
Old 08-19-10, 10:39
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
hi Bella,
Thanks for the info. I tried what you suggested, but the rollforward fails with the following reason cannot be brought out of rollforward pending state until roll-forward has passed a point in time greater than or equal to "time", because node "0" contains information later than the specified time.
Reply With Quote
  #4 (permalink)  
Old 08-19-10, 10:44
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Quote:
Originally Posted by dav1mo View Post
hi Bella,
Thanks for the info. I tried what you suggested, but the rollforward fails with the following reason cannot be brought out of rollforward pending state until roll-forward has passed a point in time greater than or equal to "time", because node "0" contains information later than the specified time.
Then you will need to rollforward to that time (and stop). Make sure that the you have the necessary log files in the appropriate location on the server before you do the rollforward.

Andy
Reply With Quote
  #5 (permalink)  
Old 08-19-10, 10:59
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by dav1mo View Post
rollforward fails with the following reason cannot be brought out of rollforward pending state until roll-forward has passed a point in time greater than or equal to "time", because node "0" contains information later than the specified time.
Were you using an offline db image?
Reply With Quote
  #6 (permalink)  
Old 08-20-10, 11:29
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
all Fixed

Thought I'd give an update to the problem being resolved. I had mentioned redirected restore, but had, also, attempted just a restore and still had the same issue. It turns out due to the logarchmeth being used here, we were unable to just restore the db onto a different machine without rolling forward. The resolution was to use ROLLFORWAD DB dbname COMPLETE. The AND COMPLETE key word did not work.
Dave
Reply With Quote
  #7 (permalink)  
Old 08-20-10, 12:52
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by dav1mo View Post
It turns out due to the logarchmeth being used here, we were unable to just restore the db onto a different machine without rolling forward. The resolution was to use ROLLFORWAD DB dbname COMPLETE.

If a db is using archival logging, then restore from an offline backup will put it in a rollforward pending state by default. You need to tell db2 that you don't want to apply the logs by specifying "without rolling forward" on the restore command. If you forget to specify "without rolling forward" during the restore, then you can take the db out of rollforward pending state without applying the logs using "db2 rollforward db <db name> stop" or "db2 rollforward db <db name> complete" (it doesn't matter if you specify stop or complete - the same thing).

Online backup is different and you always have to apply the minimum number of logs during rollforward.
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