Task 4: Determining what journal receivers to use
You need all journal receivers that were attached to the journal for the length of time for which journaled changes need to be applied to the restored files.
- Ensure that all the journal receivers required for the apply journaled changes operation are available on the system.
If you have restored objects with partial transactions, you might also need earlier receivers. Refer to any CPI3731 messages that you received during the restore to find the earliest receiver that you need. You can also use the Display File Description (DSPFD) command for the files you just restored to determine the earliest receiver that is required.
- Restore all necessary journal receivers that are not already on the system. Use the Display Journal Receiver Attributes (DSPJRNRCVA) command to determine when a journal receiver was attached to and detached from a journal.
- Determine the name of the last journal receiver (the last receiver restored) and whether there are chain breaks by printing the receiver chain:
- Type WRKJRNA JRN(library-name/journal-name) OUTPUT(*PRINT) and press the Enter key. You receive a listing that shows the receiver directory and all the objects being journaled.
- Look at the receiver directory part of the listing. If you saved the currently attached journal receiver, your journal receiver directory should look similar to Figure 1. The journal receiver that was attached during the save procedure shows a status of Partial. The following example shows the displayed version of the receiver directory: Figure 1. Receiver directory–Saving attached receivers
Receiver Directory Total size of receivers (in kilobytes). . . . . . : 1507 Attach Save Size Number Receiver Library Date Date Status (K) 00001 RCVA0001 DSTJRN 06/08/xx 06/08/xx SAVED 42 00002 RCVA0002 DSTJRN 06/09/xx 06/09/xx SAVED 900 00003 RCVA0003 DSTJRN 06/09/xx 06/09/xx PARTIAL 92 01001 RCVA1003 DSTJRN 06/10/xx 00/00/00 ATTACHED 473If you save only detached journal receivers, your receiver directory should look similar to Figure 2:
Figure 2. Receiver directory–Saving detached receiversReceiver Directory Total size of receivers (in kilobytes). . . . . . : 1507 Attach Save Size Number Receiver Library Date Date Status (K) 00001 RCVA0001 DSTJRN 06/08/xx 06/08/xx SAVED 42 00002 RCVA0002 DSTJRN 06/09/xx 06/09/xx SAVED 900 00003 RCVA0003 DSTJRN 06/09/xx 06/09/xx SAVED 92 01001 RCVA1003 DSTJRN 06/10/xx 00/00/00 ATTACHED 473
- On the listing, mark the name of the last receiver with a status of SAVED or PARTIAL.
- Determine the chain of receivers to be used in the Apply Journaled Changes (APYJRNCHG) command from the Work with Receiver Directory listing. Mark the first and last receiver that you need, based on the date that you saved the objects being recovered. Notice that the first and last receiver are the same if only one journal receiver was restored. Note: While looking at the receiver directory, you should also look for any receiver chain breaks. You can determine a chain break by looking at the first two digits in the Number column on the Work with Receiver Directory display. You cannot apply journaled changes across receiver chain breaks. Therefore, you must write down the beginning and ending receiver names for each receiver chain. Then you need to run a series of apply journaled changes operations, one for each chain using these receivers. A chain break might mean that you are missing all or part of a journal receiver. (It was on the system and was not saved before the failure occurred.) Evaluate how applying journaled changes across a change break might affect the integrity of your data.
- Look at the part of the listing that shows what objects are currently being journaled. (You printed the listing in step 3a.) Compare it to your records of what objects should be journaled. Follow the procedures in the Printing system information topic before you save your system.
- For each physical file that should be journaled and does not appear on the current listing, type the following command:
STRJRNPF FILE(library-name/file-name) JRN(library-name/journal-name) - For each access path that should be journaled and does not appear on the current listing, type the following command:
STRJRNAP FILE(library-name/file-name) JRN(library-name/journal-name) - For each integrated file system object that should be journaled and does not appear on the current listing, type the following command:
STRJRN OBJ('object-path-name') JRN('journal-path-name') - For each library that should be journaled and does not appear on the current listing, type the following command:
STRJRNLIB LIB(library-name) JRN(library-name/journal-name) - For all other object types that should be journaled and do not appear on the current listing, type the following command:
STRJRNOBJ OBJ(library-name/object-name) OBJTYPE(object-type) JRN(library-name/journal-name) - The journal receiver that is currently attached might not match your naming conventions. Typically this is because the journal receiver was created when you restored the journal. If this is the case, create a new receiver that follows the same naming convention and receiver attributes as the last receiver but assign it a number of one greater. In the example shown on the Work with Receiver Directory display, you need to type the following command:
CRTJRNRCV JRNRCV(DSTJRN/RCVA0004) - Use the Change Journal (CHGJRN) command to detach the current receiver and attach the journal receiver you just created. In the example, you need to type the following command:
CHGJRN JRN($JRNLA/JRNA) JRNRCV(DSTJRN/RCVA0004)
Parent topic: Restoring changed objects and apply journaled changes
Related information: