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 > how to skip rollforward

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-14-09, 08:19
db2aix db2aix is offline
Registered User
 
Join Date: Jul 2009
Location: USA
Posts: 50
how to skip rollforward

Hello, I need to extract data for 2-3 tables, but the only backup image I have is online. Is there a way to skip the roll forward and connect to the database?
Thx
Reply With Quote
  #2 (permalink)  
Old 08-14-09, 09:49
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You must have the logs that were active during the on-line backup. Do you use the "include logs" option when taking the backup?
__________________
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 08-14-09, 10:43
db2aix db2aix is offline
Registered User
 
Join Date: Jul 2009
Location: USA
Posts: 50
The image is several months old so I don't know if the "include logs" option was used. Is there a way to check?
Reply With Quote
  #4 (permalink)  
Old 08-14-09, 10:52
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by db2aix
The image is several months old so I don't know if the "include logs" option was used. Is there a way to check?
Try "db2ckbkp -H"
Reply With Quote
  #5 (permalink)  
Old 08-14-09, 13:22
db2aix db2aix is offline
Registered User
 
Join Date: Jul 2009
Location: USA
Posts: 50
db2ckbkp shows:
Includes Logs -- 0

So, logs are not included.


Any other option to get data from this backup image?
Reply With Quote
  #6 (permalink)  
Old 08-14-09, 13:56
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
No, if you have an online backup image without the transaction logfiles it is useless, sorry.
Reply With Quote
  #7 (permalink)  
Old 08-14-09, 19:31
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by db2aix
Any other option to get data from this backup image?

What you can do is to restore this online image and then use db2dart /ddel option to dump the data into ASCII files. You need to supply several parameters including the table/tablespace id which you can obtain from running db2dart <db name>. ddel option doesn't dump all column data types (it will warn which columns it will not be able to dump). If you're unable to get the data using db2dart or don't have the DDL to recreate the tables, then you can try opening a pmr to get help (may be a billable service...)
Reply With Quote
  #8 (permalink)  
Old 08-14-09, 23:13
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Correction: db2dart /ddel will dump data into delimited ASCII (DEL format)
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