Journal management on IBM i
- To release space; this applies to all journal receivers
- To improve the performance when starting (STRMQM)
- To improve the performance of recreating objects (RCRMQMOBJ)
Before deleting a journal receiver, you must take care that you have a backup copy and that you no longer need the journal receiver.
Journal receivers can be removed from the queue manager library after they have been detached from the journals and saved, provided that they are available for restoration if needed for a recovery operation.
It is important to know how far back in the journals IBM MQ is likely to need to go, in order to determine when a journal receiver that has been backed up can be removed from the queue manager library, and when the backup itself can be discarded.
- AMQ7460
- Startup recovery point. This message defines the date and time of the startup entry from which IBM MQ replays the journal in the event of a startup recovery pass. If the journal receiver that contains this record is available in the IBM MQ libraries, this message also contains the name of the journal receiver containing the record.
- AMQ7462
- Oldest media recovery entry. This message defines the date and time of the oldest entry to use
to re-create an object from its media image.
The journal receiver identified is the oldest one required. Any other IBM MQ journal receivers with older creation dates are no longer needed. If only stars are displayed, you need to restore backups from the date indicated to determine which is the oldest journal receiver.
JJJJJJJJJJLLLLLLLLLLYYYYMMDDHHMMSSmmm
where:JJJJJJJJJJ
- Is the oldest receiver name that IBM MQ still needs.
LLLLLLLLLL
- Is the journal receiver library name.
YYYY
- Is the year of the oldest journal entry that IBM MQ needs.
MM
- Is the month of the oldest journal entry that IBM MQ needs.
DD
- Is the day of the oldest journal entry that IBM MQ needs.
HH
- Is the hour of the oldest journal entry that IBM MQ needs.
SS
- Is the seconds of the oldest journal entry that IBM MQ needs.
mmm
- Is the milliseconds of the oldest journal entry that IBM MQ needs.
RCDMQMIMG OBJ(*ALL) OBJTYPE(*ALL) DSPJRNDTA(*YES)
can
save startup time for IBM MQ and reduce the number of
local journal receivers you need to save and restore for recovery. IBM MQ for IBM i does not refer to the journal receivers
unless it is performing a recovery pass either for startup, or for recreating an object. If it finds
that a journal it requires is not present, it issues message AMQ7432
to the queue
manager message queue (QMQMMSG), reporting the time and date of the journal entry it requires to
complete the recovery pass.
If this happens, restore all journal receivers that were detached after this date from the backup, to allow the recovery pass to succeed.
Keep the journal receiver that contains the startup entry, and any subsequent journal receivers, available in the queue manager library.
Keep the journal receiver containing the oldest Media Recovery Entry
, and any
subsequent journal receivers, available at all times, and either present in the queue manager
library or backed-up.
- If the journal receiver named in AMQ7460 is not advanced, this indicates that there is an incomplete unit of work that needs to be committed or rolled back.
- If the journal receiver named in AMQ7462 is not advanced, this indicates that there are one or more damaged objects.