By default, data group file entries use the same file entry options as specified in the data group definition. In a data group configured for single-threaded database apply processing, if you configure an individual data group file entry to use keyed replication, the value in that entry overrides the value in the data group for the identified file.
If you want to use keyed replication for one or more individual data group file entries defined for a data group, you need the following:
-
Before you change a data group file entry to support keyed replication, do the following:
-
Verify that the data group to which the entry belongs has a numeric value for the Number of DB apply sessions (NBRDBAPY) parameter.
-
If the file is not being journaled correctly (for example the data group file entry is not set as described in Step 4), you will need to end journaling for the file entries.
-
-
The data group definition used for replication must have a Data group type of *ALL or *DB.
-
DB journal entry processing must have Before images as *SEND for source send configurations. When using remote journaling, all journal entries are sent.
-
The data group file entry must have File and tracking ent. options set as follows:
-
To override the defaults from the data group definition to use keyed replication on only selected data group file entries, verify that you have the value you need specified for the Journal image (*BOTH is recommended) and specify *KEYED for the Replication type.
-
If you are using keyed replication at the data group level, the data group file entries can use the default value *DGDFT for both Journal image and Replication type.
Note: You can use any of the following ways to configure data group file entries for keyed replication:-
Use either procedure in topic Loading file entries to add or modify a group of data group file entries. If you are modifying existing file entries in this way, you should specify *UPDADD for the Update option parameter.
-
Use topic Adding a data group file entry to create a new file entry.
-
Use topic Changing a data group file entry to modify an existing file entry.
-
-
The files identified by the data group file entries for the data group must be eligible for keyed replication. See Verifying key attributes.
-
After you have changed individual data group file entries, you need to start journaling for the file entries using Starting journaling for physical files.