The "expected 4 bytes but got 0" condition signifies that the GoldenGate process reached a Relative Byte Address (RBA) where it expected to find metadata, but instead encountered the end of the file.
Ensure the dirdat directory has enough space to prevent partial writes. ogg-01184 expected 4 bytes but got 0 bytes in trail
Host trail files on stable, high-performance filesystems to reduce the risk of I/O related corruption. OGG-01184 - Oracle GoldenGate Error Messages The "expected 4 bytes but got 0" condition
Restart the Pump; it will automatically rebuild and re-send the missing trail files from the source. OGG-01184 - Oracle GoldenGate Error Messages Restart the
If the corruption is at the very end of a trail file and the next trail file exists, you can skip the corrupted record:
In remote trail scenarios, network interruptions during a transfer can result in a partial file being written to the target system. Step-by-Step Troubleshooting and Resolution 1. Identify the Corrupted Trail File and RBA