Read the log again from an earlier point¶
Who needs this
Only Db2 for i and MySQL and MariaDB agents can start from a position you choose. For the other sources, skip this page.
A Capture Agent normally resumes reading the source log where it stopped. You can instead set where it starts next time:
- Db2 for i: from a date and time, for one journal or all of them.
- MySQL and MariaDB: from a binlog file and offset, or from a date and time, for example after switching to another source server.
Use it to read again journal entries already processed and pruned from the staging tables, so SQDR can process them again.
Set the start position¶
- Stop the agent.
- Click Startup Mode in the agent's header, keep Normal selected and click Set Journal Position... (Db2 for i) or Set Log Position... (MySQL, MariaDB and Aurora MySQL).
- Set the position, in the source system's time zone, and save. The new position is saved at once for the agent's next start, and the startup mode is set back to Normal.
- Start the agent.
Specify Journal Startup Position (Db2 for i)¶
The journal list includes remote journals. On Save, a message lists any journal whose position couldn't be changed.
When the agent starts, the journal's worker starts from the timestamp and writes it to the agent log with the last committed Stelo Capture transaction id, for example:
INFO RemoteJournalReader.initializeServiceProgram:MYLIB.QSQJRN Starting from specific timestamp:2013-07-20-16.47.50.000000. Use "TransactionId": 0000000000000017EB42 as client read/replay position.
Use that transaction id as the position for a Replay, in the Data Replicator Manager, of the groups that replicate from the journal (see Replay).
Specify Binlog Startup Position (MySQL and MariaDB)¶
Start using timestamp. starts from the binlog events at or after that time.