Hi all,
I'm trying to setup a standby server using log shipping.
The live database has a user exit in place, which archives the closed
logs and ships them to the standby server.
The standby server, checks for new logs, and, if any, simply
rollforward to the end of logs.
Most of the time everything looks fine with the only weird thing that
if i do a rollforward query status i see something like:
Input database alias = abc
Number of nodes have returned status = 1
Node number = 0
Rollforward status = DB working
Next log file to be read = S0000530.LOG
Log files processed = S0000462.LOG - S0000528.LOG
Last committed transaction = 2004-12-08-00.27.36.000000
As you can see the last file processed is S0000528.LOG
and Next log file to be read is S0000530.LOG. Where is S000529.LOG ?
Next time the rollforward happens you would see something like:
Input database alias = abc
Number of nodes have returned status = 1
Node number = 0
Rollforward status = DB working
Next log file to be read = S0000531.LOG
Log files processed = S0000462.LOG - S0000529.LOG
Last committed transaction = 2004-12-08-00.28.40.000000
But since everything works i'm not so worry about.
The real problem i have is sometimes on a rollforward i get an error
like:
QL1265N The archive log file "S0000536.LOG" is not associated with the
current log sequence for database "ADOPT" on node "0".
At this point there is nothing i can do, it simply stops with this
error.
The query status looks like:
Input database alias = abc
Number of nodes have returned status = 1
Node number = 0
Rollforward status = DB working
Next log file to be read = S0000536.LOG
Log files processed = S0000462.LOG - S0000535.LOG
Last committed transaction = 2004-12-08-11.10.04.000000
And I don't know if it's a coincidence but the next log file to be read
is really 1 after the last log processed (the way it's supposed to be).
Any idea ??
I'm running db2 V 8.1 with fixpak 7a (which takes it the 8.2) on linux
x86 32 bit.
I'm running out of ideas. Any help will be greatly appriciated.
Thanks in advance
Fabrizio