| |
|
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.
|
 |

08-21-10, 15:24
|
|
Registered User
|
|
Join Date: Aug 2010
Posts: 43
|
|
|
db2, wichs logs I need in a rollforward to end of logs?
|
|
Hello, I need your help
How many logs I need for rollfordward database?
I execute rollforward an proccess 87 logs, but I didn't have the next log!!!! S000400.LOG
Could you help me please?
|
|

08-21-10, 15:32
|
|
Registered User
|
|
Join Date: May 2003
Location: USA
Posts: 5,196
|
|
At a minimum you will need the logs that were active during the online backup. But the exact number of logs needed depends on whether you roll forward to:
- end of logs,
- a specific time, or
- minimum roll forward time (END OF BACKUP).
You can also try the NORETRIEVE option, which sometimes limits the number of logs that will be required.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
|
|

08-21-10, 18:29
|
|
Registered User
|
|
Join Date: Aug 2010
Posts: 43
|
|
|
|
Thaks Marcus A,
I execute db2 "rollforward db <db name> to end of logs and stop overflow log path (<dir where you copied the logs>) noretrieve"
Then... I will need the logs that were active during the online backup?
but....I had a backup from 20080514, and my last log 20080516!!!, I will try one more time with other backup that I have more LOGS...7 days.
What do yo thing?
|
|

08-21-10, 19:25
|
|
Registered User
|
|
Join Date: May 2003
Location: USA
Posts: 5,196
|
|
Do you need to rollforward to end of logs, or do you just need to restore the backup and rollforward the logs to the end of backup? If the later is true (and you have DB2 9.5+) then rollforward to END OF BACKUP.
If you don't have a DB2 version that supports END OF BACKUP option, then rollforward to 2000-01-01.01.01.01.000000 and DB2 will give you an error telling you the minimum rollforward time, and then resubmit the rollforward with the minimum rollforward time that DB2 tells you.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
|
|

08-21-10, 20:44
|
|
Registered User
|
|
Join Date: Aug 2010
Posts: 43
|
|
I only need connecto to my db
I just need execute rollfordwar to any time...only finish and connect
I will try with your advice
|
|

08-21-10, 21:08
|
|
Registered User
|
|
Join Date: Aug 2010
Posts: 43
|
|
What do you thing?
What is the correct command?
|
|

08-21-10, 21:21
|
|
Registered User
|
|
Join Date: May 2003
Location: USA
Posts: 5,196
|
|
Rollforward to END OF BACKUP AND STOP as described above.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
|
|

08-21-10, 22:07
|
|
Registered User
|
|
Join Date: Aug 2010
Posts: 43
|
|
ohhh no, my version don't accept to end of backup, I have 8.2 version.
I will try with end of logs again, but now I have more LOGS.
Thaks Marcus...I will tell you when finish.
Maybe I will need your help again.
|
|

08-21-10, 23:44
|
|
Registered User
|
|
Join Date: May 2003
Location: USA
Posts: 5,196
|
|
Quote:
Originally Posted by hozkr hozoryo
ohhh no, my version don't accept to end of backup, I have 8.2 version.
I will try with end of logs again, but now I have more LOGS.
Thaks Marcus...I will tell you when finish.
Maybe I will need your help again.
|
I gave you the alternative to use if you can't use END OF BACKUP. Read my post above.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
|
|

08-22-10, 09:14
|
|
Registered User
|
|
Join Date: Aug 2010
Posts: 43
|
|
I tried whit your other suggestion, but when I execute rollforward to <date>, return me that other parameter was espected.
what problems could I have with end of logs? I hava more LOGS.
attempt to reach the current date?
When give me the error, that the last logs not found I can try with other parameters?
Coul yo give the correct sintax?
thank
|
|

08-23-10, 20:31
|
|
Registered User
|
|
Join Date: Aug 2010
Posts: 43
|
|
Marcus Thanks for your help
I appreciate it!!!
I restored my db.
If you need anything and if I can help you, only ask.
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|