Ogg-01184 Expected 4 Bytes But Got 0 Bytes In Trail New! -
Alter the Replicat process to start at Relative Byte Address 0 of the trail file sequence: GGSCI > alter replicat REP1, extseqno 124, extrba 0 Use code with caution.
Identify the specific trail file, sequence number, and RBA mentioned in the ggserr.log or the process report file. Example: ./dirdat/no000007, seqno 7, RBA 246849346 Step 2: Check for Process Termination
2026-05-31 12:00:00 ERROR OGG-01184 Expected 4 bytes, but got 0 bytes, in trail ./dirdat/et000015, seqno 15, reading record trailer token at RBA 45612398. Use code with caution.
Oracle GoldenGate processes data in structured blocks within trail files. Every record or block descriptor expects a specific header size (often 4 bytes) to determine the length of the trailing data. ogg-01184 expected 4 bytes but got 0 bytes in trail
If it abends immediately with the same RBA, the corruption is real.
ERROR OGG-01184 Expected 4 bytes, but got 0 bytes, in trail ./dirdat/xx000000, seqno XX, reading record trailer token at RBA XXXXXXX.
There are only a few scenarios that generate a got 0 bytes error in a closed file. We must rule them out like suspects in a lineup. Alter the Replicat process to start at Relative
2026-06-03 17:34:29 ERROR OGG-01184 Expected 4 bytes, but got 0 bytes, in trail ./dirdat/no000007, seqno 7, reading record trailer token at RBA 246849346. Use code with caution.
Resolving this error requires a methodical approach. Follow these steps in order to minimize data loss and get your replication back online.
The GoldenGate process was reading a trail file and expected to find a 4-byte record trailer (a marker indicating the end of a record). Instead, it encountered 0 bytes (an empty space or end of file) at a specific Relative Byte Address (RBA). Use code with caution
-- For Extract (writing trail) TRAILCHKSUMBLOCKCHECK YES TRAILCHKSUMCHECK YES
The checkpoint file does not match the actual data in the trail file. 3. Troubleshooting and Solutions Step 1: Analyze the Error Message
If the physical file size is smaller than or exactly equal to the RBA reported by the error, the trail file has been prematurely truncated. Step 3: Check for Zombie Processes on Target
Action. Contact Oracle Support. The trail file may be corrupted. Oracle Help Center OGG-01184 Expected 4 bytes, but got 0 bytes - Oracle
Start the Extract to overwrite or cleanly continue writing the transaction streams. Best Practices for Prevention