Running the Resync function
Use the Resync function to synchronize index pointer segments that are in secondary index databases with the pointers that are in the primary DEDB database. FPA runs the Resync function as a standard z/OS® batch job. You must specify an EXEC statement and DD statements that define the input and output data sets in your JCL.
Considerations before running a Resync job:
- With online synchronization, if the DEDB is updated while the secondary index databases are being updated, the DEDB and the secondary index databases might be out of synchronization after the job. In such a case, run the Resync job again to synchronize the databases.
- Only the direct update method and offline synchronization support secondary index databases that contain non-unique keys. If the secondary index databases contain non-unique keys, use the direct update method or offline synchronization.
Three methods to synchronize secondary index databases
The Resync function supports three methods for synchronizing secondary index databases. Each method involves running one or more Resync jobs in corresponding Resync modes, which are controlled by the RESYNCMODE keyword of the INDEXBLD command.
For online synchronization, the following three methods are supported. For offline synchronization, only the verify update method is supported.
- Verify update method (RESYNCMODE=VERIFYUPDATE)
- The Resync function scans the DEDB areas and their secondary index
databases to identify out-of-sync pointers in the secondary index
databases. Then to update the secondary index databases, the function
inserts and deletes the identified pointer segments. This method involves
the following processes:
- Area scan process: Scans the DEDB areas and generates records in the unverified resync pointer segment record data sets.
- Sort process: Starts DFSORT and sorts the records in the unverified resync pointer segment record data sets.
- Verify update process: Scans the secondary index databases, compares the pointer segment records in the secondary index databases to the records in the unverified resync pointer segment record data sets, and updates the secondary index databases.
- Direct update method (RESYNCMODE=DIRECTUPDATE)
- The Resync function scans only the DEDB areas and inserts all
pointer segments into the secondary index databases. The Resync function
does not scan the secondary index databases because it assumes that
the secondary index databases are empty or do not contain any index
segments for the scanned DEDB areas. This method involves the following
processes:
- Area scan process: Scans the DEDB areas and generates records in the unverified resync pointer segment record data sets.
- Direct update process: Reads the unverified resync pointer segment records and updates the secondary index databases.
- Two-step method (RESYNCMODE=VERIFY and RESYNCMODE=UPDATE)
- Using this method, you run two Resync jobs. The first job (verify
step) scans the DEDB areas and their secondary index databases, and
the second job (update step) updates the secondary index databases.
- Verify step: Scans the DEDB areas and their secondary index databases, generates intermediate pointer segment records, uses DFSORT to sort the records, and identifies out-of-sync pointers. The records are stored in the resync pointer segment record data sets and used in the subsequent update step.
- Update step: Reads the out-of-sync pointers in the resync pointer segment records, and updates the secondary index databases.