Swap journal receivers

An important task for journal management is to swap (or change) journal receivers. You typically swap journal receivers when they reach their storage threshold. You can swap journal receivers either with iSeries™ Navigator or with the Change Journal (CHGJRN) command. If you use system journal-receiver management, the system changes journal receivers for you.

You can use iSeries Navigator or the Change Journal (CHGJRN) command to change the attributes of the journal. You also use the iSeries Navigator or the CHGJRN command to change the receiver for a journal (detach the current receiver, create and attach a new receiver) and to reset the sequence number for journal entries.

When you swap a journal receiver, the old journal receiver becomes detached. When you detach a journal receiver, you cannot reattach it to any journal. You can do these things with a detached journal receiver:

You must swap journal receivers to change the following journaling attributes:

Related concepts
Manual versus system journal-receiver management
Threshold (disk space) for journal receivers
Work with inoperable journal receivers
Work with IBM-supplied journals
Swap journal receiver operations with remote journals
Related tasks
Save your server while it is active
Recover a damaged journal receiver
Details: Recovery for remote journaling scenario

Swap a journal receiver with iSeries Navigator

To swap a journal receiver with iSeries Navigator, without changing options proceed as follows:
  1. In the iSeries Navigator window, expand the system you want to use.
  2. Expand Databases.
  3. Expand the database that you want to work with and Schemas.
  4. Right-click the journal you want to use and select Swap Receivers. The system generates a new name when it creates the receiver.

Change options when you swap a journal receiver with iSeries Navigator

To change options when you swap a journal receiver with iSeries Navigator proceed as follows:
  1. In the iSeries Navigator window, expand the system you want to use.
  2. Expand Databases.
  3. Expand the database that you want to work with and Schemas.
  4. Double-click the journal you want to use.
  5. Select Swap receivers and the journaling options you want to use.
  6. Start of changeClick OK. The Journal properties dialog closes. The new journal receiver is automatically created and attached.End of change

The CHGJRN command

Use JRNRCV(*GEN) on the Change Journal (CHGJRN) command to create the new receiver with the same attributes as the currently attached receiver, and in the same library. These attributes include the owner, private authorities, public authority, object auditing, ASP identifier, threshold, and text.

You must use the CHGJRN command to change the journaling options to one of the following:

  • Specify a journal receiver-size option.
  • Specify that objects allow journal entries to have minimized entry-specific data.
  • Specify a different journal receiver threshold value using the Journal Receiver Threshold (THRESHOLD) parameter in combination with the JRNRCV(*GEN) parameter.
  • Specify the data that is included in the fixed-length portion of the journal entries.
  • Specify the time to delay the next attempt to automatically attach or delete a new journal receiver with system journal receiver management.
  • Specify journal caching.
  • Specify journal standby state.
  • Change the journal recovery count.
  • Change the journal object limit.
CAUTION:
If you use save-while-active operations to save objects before they reach a commitment boundary, ensure that you save the journal receiver after you detach it. If you delete the journal receiver before it is saved, you can lose the ability to recover any pending transactions for those objects.