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 > Missing Log for Rollforward

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-15-11, 08:13
DB_N00b DB_N00b is offline
Registered User
 
Join Date: Jan 2010
Posts: 152
Missing Log for Rollforward

hello there!

I have a problem. I made a redirected restore and now i want to make the rollforward to make the database accessable.

Quote:

db2 "rollforward db rmdwh query status"

Rollforward Status

Input database alias = databasedwh
Number of nodes have returned status = 1

Node number = 0
Rollforward status = DB working
Next log file to be read = S0000014.LOG
Log files processed = -
Last committed transaction = 2011-01-01-03.00.00.000000 UTC



Quote:


db2 "rollforward db database stop"
SQL1276N Database "Database" cannot be brought out of rollforward pending state
until roll-forward has passed a point in time greater than or equal to
"2011-01-01-03.00.00.000000 UTC", because node "0" contains information later
than the specified time.

Reply With Quote
  #2 (permalink)  
Old 08-15-11, 08:15
DB_N00b DB_N00b is offline
Registered User
 
Join Date: Jan 2010
Posts: 152
Now I read something about the rollforward stop command.
I have no chance to get the log file back. is there an other way to make the database running? I am thankful for each help.
Reply With Quote
  #3 (permalink)  
Old 08-15-11, 16:59
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
What db2 version are you using? Check if the logs were included with this backup image.
Reply With Quote
  #4 (permalink)  
Old 08-16-11, 02:49
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
if it was an offline backup - you can rollforward stop
if online ?? or included in backup - specify the logpath to extract the logs while restoring or rerun the restore with option logs - will only extract logs
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #5 (permalink)  
Old 08-16-11, 03:12
DB_N00b DB_N00b is offline
Registered User
 
Join Date: Jan 2010
Posts: 152
The log was lost and so I was not able to made a restore ...
Thank you for your help.
Reply With Quote
  #6 (permalink)  
Old 08-16-11, 03:36
skchandra skchandra is offline
Registered User
 
Join Date: Nov 2010
Posts: 14
Quote:
if it was an offline backup - you can rollforward stop
if online ?? or included in backup - specify the logpath to extract the logs while restoring or rerun the restore with option logs - will only extract logs
To add more info on what przytula_guy said, information on backup image can be extracted by using,

Code:
db2ckbkp -H <backup_file_name>
Backup Mode ( 0=offline, 1=online)
Include Logs (0=exclude logs, 1=include logs


Thanks,
SK Chandra
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