Hi. I'm trying to clone a database across servers. No matter how I attempt it end up with a db in "roll forward pending state" but I can't roll it forward due to error SQL1265N - The archive log file "S#######.LOG" is not associated with the current log sequence for database "$DB_NAME" on node "#".
I'm using the following commant to back up my db:
Code:
db2 backup db $DB_NAME online include logs
And restore it with the following:
Code:
db2 restore db $DB_NAME from /home/db2inst1 taken at $TIMESTAMP logtarget /home/db2inst1/logs/ redirect
db2 restore db $DB_NAME continue
That runs fine. But then I end up with a db that I can't connect to until it rolls forward to the end of logs. And it claims no association to the logs I have. I thought using include logs would make sure it grabbed the right ones, but it doesn't appear to have fixed anything.
For what it's worth, heres the query status:
Code:
$ db2 rollforward database $DB_NAME query status
Rollforward Status
Input database alias = $DB_NAME
Number of nodes have returned status = 1
Node number = 0
Rollforward status = DB pending
Next log file to be read = S0000194.LOG
Log files processed = -
Last committed transaction = 2009-05-13-18.59.00.000000 UTC
Any help will be appreciated. Thanks.