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 > Recovery without Log files

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-19-08, 01:42
r_thirumalai r_thirumalai is offline
Registered User
 
Join Date: Dec 2007
Posts: 11
Recovery without Log files

Hi,
I am having only 2 days online backup image. I have no log files with me. I am able to restore the Database with the backup image. How to bring the database up from rollforward pending state since I am not having any log file?
To be more precise, is ity possible to bring the database up from online backup image without log file,If so How?
Thanks
Reply With Quote
  #2 (permalink)  
Old 02-19-08, 08:27
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What DB2 version and OS are you using?

Andy
Reply With Quote
  #3 (permalink)  
Old 02-19-08, 08:50
r_thirumalai r_thirumalai is offline
Registered User
 
Join Date: Dec 2007
Posts: 11
Version is 8.1.0.136 Fixpack 15
o/s Unix
Reply With Quote
  #4 (permalink)  
Old 02-19-08, 08:54
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Do you use the INCLUDE LOGS clause in the backup command?

Andy
Reply With Quote
  #5 (permalink)  
Old 02-19-08, 09:49
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Use the WITHOUT ROLLING FORWARD option (see manual) to prevent the rollforward-pending state.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #6 (permalink)  
Old 02-19-08, 09:55
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Quote:
Originally Posted by stolze
Use the WITHOUT ROLLING FORWARD option (see manual) to prevent the rollforward-pending state.
Stolze,

This is an ONLINE backup you cannot use WITHOUT ROLLING FORWARD clause in this case. From the manual:

WITHOUT ROLLING FORWARD
Specifies that the database is not to be put in rollforward pending state after it has been successfully restored.

If, following a successful restore operation, the database is in rollforward pending state, the ROLLFORWARD command must be invoked before the database can be used again.

1 If this option is specified when restoring from an online backup image, error 1 SQL2537N will be returned.


Andy
Reply With Quote
  #7 (permalink)  
Old 02-19-08, 11:32
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Right. I skimmed too fast over the post and didn't notice that it was an online backup.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #8 (permalink)  
Old 02-19-08, 17:56
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
There are two options:

1. Call IBM support and beg them to help you (they "can" overrirde the rollforward pending flag if you convince them that data integrity issues will not be a problem and you will not sue them if you database is out of synch with uncommited data), or

2. Update your resume.
__________________
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
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