I have asked a similar question before, but am still not very clear on
this......expec ting some insights on this one....
Ok, so these are the two pieces of information regarding archived logs
during a rollforward recovery in a recoverable database:
1. OVERFLOWLOGPATH configuration parameter can specify a location for
DB2 to find log files that are needed for rollforward operations.
2. The database configuration file parameter 'userexit' specifies
whether the database manager invokes a user exit program to retrieve
log
files during rollforward recovery of databases.
So, it seems that the algorithm during a rollforward recovery is:
1. Check the active log path directory for the required logs. If logs
are not found here, go to step 2.
2. Check to see if OVERFLOWLOGPATH db. Config. Parm. is specified (or
OVERFLOW LOG PATH parameter is specified in the ROLLFORWARD DATABASE
command).
a. If OVERFLOWLOGPATH is specified, see if the required log files
exist
there. If log files are not present there then check if 'userexit' is
enabled.
i. If 'userexit' is enabled, invoke the userexit to find the location
of the log files. If log found in the location given by userexit,
continue with the rollforward operation else give the 'log not found'
error.
ii. If 'userexit' is diabled, give the 'log not found' error.
b. If OVERFLOWLOGPATH is not specified, check if 'userexit' is
enabled.
i. If 'userexit' is enabled, invoke the userexit to find the location
of the log files. If log found in the location given by userexit,
continue with the rollforward operation else give the 'log not found'
error.
ii. If 'userexit' is diabled, give the 'log not found' error.
So, basically, the sequence is: active log path directory,
OVERFLOWLOGPATH directory and lastly the 'userexit'.
Is my understanding correct or flawed.
TIA
Raquel.
this......expec ting some insights on this one....
Ok, so these are the two pieces of information regarding archived logs
during a rollforward recovery in a recoverable database:
1. OVERFLOWLOGPATH configuration parameter can specify a location for
DB2 to find log files that are needed for rollforward operations.
2. The database configuration file parameter 'userexit' specifies
whether the database manager invokes a user exit program to retrieve
log
files during rollforward recovery of databases.
So, it seems that the algorithm during a rollforward recovery is:
1. Check the active log path directory for the required logs. If logs
are not found here, go to step 2.
2. Check to see if OVERFLOWLOGPATH db. Config. Parm. is specified (or
OVERFLOW LOG PATH parameter is specified in the ROLLFORWARD DATABASE
command).
a. If OVERFLOWLOGPATH is specified, see if the required log files
exist
there. If log files are not present there then check if 'userexit' is
enabled.
i. If 'userexit' is enabled, invoke the userexit to find the location
of the log files. If log found in the location given by userexit,
continue with the rollforward operation else give the 'log not found'
error.
ii. If 'userexit' is diabled, give the 'log not found' error.
b. If OVERFLOWLOGPATH is not specified, check if 'userexit' is
enabled.
i. If 'userexit' is enabled, invoke the userexit to find the location
of the log files. If log found in the location given by userexit,
continue with the rollforward operation else give the 'log not found'
error.
ii. If 'userexit' is diabled, give the 'log not found' error.
So, basically, the sequence is: active log path directory,
OVERFLOWLOGPATH directory and lastly the 'userexit'.
Is my understanding correct or flawed.
TIA
Raquel.
Comment