The Clear pending and Clear error prompts on the STRDG command provide flexibility when starting a data group by allowing you to optionally reset error status conditions on data group file entries and discard pending journal entries that are stored in the journal log space. Clear pending resets the starting point for all data group file entries and object entries. Clear error clears the hold log spaces.
When clearing pending entries, you can optionally specify which system to use for determining database file network relationships when distributing files among database apply sessions. The System for DB file relations (DBRSYS) prompt identifies which system is used to assign data group file entries to apply sessions when the start request specifies to clear pending entries in all apply sessions.
The following table shows the processing that occurs based on the selection made for the Clear pending (CLRPND) and Clear error (CLRERR) prompts. The Clear pending and Clear error prompts work independently. For example, when CLRPND(*NO) is selected, no clear pending processing occurs.
CLRPND |
CLRERR |
Processing Description |
Notes |
---|---|---|---|
*NO |
*NO or *CLRPND |
Data groups start with regular processing:
|
When CLRPND is *NO, the value *CLRPND is the same as *NO for CLRERR. |
*NO |
*YES |
|
See Log spaces |
*YES |
*NO |
Note: CLRPND(*YES) will not start a data group when there are open
commit cycles on files defined to the data group.
|
See File entry apply session assignment See Single apply session processing See Log spaces |
*YES |
*YES or *CLRPND |
Note: CLRPND(*YES) will not start a data group when there are open
commit cycles on files defined to the data group.
|
See File entry apply session assignment See Single apply session processing See Log spaces When CLRPND is *YES, the value *CLRPND is the same as *YES for CLRERR. |
File entry states: Files in specific states will not reset to active when you specify *YES on the Clear Error prompt. If you have set data group file entries to any of these states, the following process exception applies: Note: The only states that can be set using the Set Data Group File
Entry (SETDGFE) command are *HLD, *RLSWAIT, *ACTIVE, and *HLDIGN.
All other states are the result of internal processing.
|
|||
File entry apply session assignment: For configured files that have temporal table relationships (base to history files), MIMIX assigns the files to the same apply session. Files may be reassigned to different apply sessions when a conversion to or from multithreaded database apply processing is performed by the Convert RG for Multithreading (CVTRG) command. In environments that are not configured for multithreaded database apply processing, clear pending processing attempts to load-balance the data group file entries among the defined apply sessions when the data group being started is configured for single-threaded database apply processing and when starting a data group following a conversion from multithreaded to single-threaded processing. If the requested apply session in the data group file entry definition is *ANY, or if it is *DGDFT and the requested apply session for the data group definition is *ANY, then the apply session to which the data group file entry is assigned may be changed when processing occurs. For data groups configured to replicate through the user journal and which replicate temporal tables or use basic support for constraints, the requested apply session may be ignored to ensure that related files are handled by the same apply session. For data groups configured to allow target constraint management, configured files with foreign key constraints may be automatically assigned to different apply sessions. The value specified for System for DB file relations (DBRSYS) determines the system used to determine database file relationships while assigning files to apply sessions. This parameter is evaluated only when the start request specifies to clear pending entries for all database apply sessions. The default value, *TGT, uses the target system to determine the file relationships. |
|||
Single apply session processing: In most situations, you will perform clear pending processing on all apply sessions belonging to a data group by specifying *ALL or *DBALL on the Start processes (PRC) prompt. MIMIX also supports the ability to perform clear pending processing on a single apply session, which is useful for recovery purposes in certain error situations. The System for DB file relations (DBRSYS) parameter is ignored when the start request specifies a specific apply session. To perform clear pending processing on a single apply session, specify PRC(*DBAPY) and the specific apply session (APYSSN). |
|||
Log spaces: Because they have not been applied, journal entries that exist in the journal log space are considered pending. Journal entries that exist in the hold log space, however, are considered in error. The Clear pending and Clear error prompts affect which log spaces are deleted (and recreated) when a data group is started. |