Just before you start the initial synchronization, establish a known start point for replication by changing journal receivers. The information gathered in this procedure will be used when you start replication for the first time.
From the source system, do the following:
-
Quiesce your applications before continuing with the next step.
-
For each data group that will replicate from a user journal, use the following command to change the user journal receiver. Record the new receiver names shown in the posted message. On a command line, type:
(installation-library-name)/CHGDGRCV DGDFN(data-group-name) TYPE(*DB)
-
Change the system journal receiver and record the new receiver name shown in the posted message. On a command line, type:
CHGJRN JRN(QAUDJRN) JRNRCV(*GEN)
-
When you synchronize the database files and objects between systems, record the time at which you submit the synchronization requests as this information is needed when determining the journal location at which to initially start replication. Resources for synchronizing identifies available options.
-
Identify the synchronization starting point in the source user journal. This information will be needed when starting replication.
-
Specify the source user journal for library/journal_name, specify the date of the first synchronize request for mm/dd/yyyy, and specify a time just before the first synchronize request for hh:mm:ss in the following command:
DSPJRN JRN(library/jounal_name) RCVRNG(*CURRENT) FROMTIME('mm/dd/yyyy' 'hh:mm:ss')
Note: You can also specify values for the ENTTYP parameter to narrow the search. Table 75 shows values which identify save actions associated with synchronizing.Common values for using ENTTYPJournaled Object Type
Journal Code
Common ENTTYP Values
File
F
MS, SS
Data Area
E
ES, EW
Data Queue
Q
QX, QY
IFS object
B
FS, FW
-
Record the exact time and the sequence number of the journal entry associated with the first synchronize request. Typically, a synchronize request is represented by a journal entry for a save operation.
-
Type
5
(Display entire entry) next to the entry and press Enter. -
Press
F10
(Display only entry details). -
The Display Journal Entry Details display appears. Page down to locate the Receiver name. This should be the same name as recorded in Step 2.
-
-
Identify the synchronization starting point in the source system journal. This information will be needed when starting replication.
- Specify the date from Step 5a for mm/dd/yyyy and specify the
time from Step 5b for hh:mm:ss in the following
command:
DSPJRN JRN(QSYS/QAUDJRN) RCVRNG(*CURRENT) FROMTIME('mm/dd/yyyy' 'hh:mm:ss')
- Record the sequence number associated with the first journal entry with the specified time stamp.
- Type
5
(Display entire entry) next to the entry and press Enter. - Press
F10
(Display only entry details). - The Display Journal Entry Details display appears. Page down to locate the Receiver name. This should be the same name as recorded in Step 3.
- Specify the date from Step 5a for mm/dd/yyyy and specify the
time from Step 5b for hh:mm:ss in the following
command: