The DB2LOADREC registry variable is used to identify the file with the load copy location information. This file is used during roll-forward recovery to locate the load copy. It contains information about:
If the location file does not exist, or no matching entry is found in the file, the information from the log record is used.
The information in the file may be overwritten before roll-forward recovery takes place.
In a partitioned database environment, the load copy location file must exist at each database partition server, and the file name (including the path) must be the same.
Following is an example of the location file. The first five parameters must have valid values, and are used to identify the load copy. The entire structure is repeated for each load copy recorded.
TIMestamp 19950725182542 * Time stamp generated at load time SCHema PAYROLL * Schema of table loaded TABlename EMPLOYEES * Table name DATabasename DBT * Database name DB2instance TORONTO * DB2INSTANCE BUFfernumber NULL * Number of buffers to be used for recovery SESsionnumber NULL * Number of sessions to be used for recovery TYPeofmedia L * Type of media - L for local device A for Tivoli Storage Manager (TSM, formerly ADSM) O for other vendors LOCationnumber 3 * Number of locations ENTry /u/toronto/dbt.payroll.employes.001 ENT /u/toronto/dbt.payroll.employes.002 ENT /dev/rmt0 TIM 19950725192054 SCH PAYROLL TAB DEPT DAT DBT DB2 TORONTO SES NULL BUF NULL TYP A TIM 19940325192054 SCH PAYROLL TAB DEPT DAT DBT DB2 TORONTO SES NULL BUF NULL TYP O SHRlib /@sys/lib/backup_vendor.a
Notes:
If you run LOAD COPY NO, and do not take a backup copy of the database or affected table spaces after running the load operation, you cannot restore the database or the table spaces to a point in time that is more recent than the load operation. That is, you cannot use roll-forward recovery to rebuild the database or the table spaces to their state after the load operation. You can only restore the database or the table spaces to a point in time that precedes the load operation.
If you want to use a particular load copy, the load time stamps are recorded in the recovery history file for the database. In a partitioned database environment, the recovery history file is local to each database partition.