Use logdump to skip the bad header:
GGSCI> FILEVIEW /ggs/dirdat/mt000001 FILEVIEW shows the raw trail file content in hex and ASCII. If at a certain position you see 0000 0000 where a non-zero length is expected, the file is corrupted. logdump is the most powerful tool for trail file analysis. ogg-01184 expected 4 bytes but got 0 bytes in trail
GGSCI> SEND REPLICAT <rep_name> STATS GGSCI> INFO REPLICAT <rep_name>, DETAIL GGSCI> SEND REPLICAT <rep_name> GETPOS For the trail file directly: Use logdump to skip the bad header: GGSCI>
echo "open /ggs/dirdat/aa000001" > check.cmd echo "n" >> check.cmd echo "EOF" >> check.cmd ./logdump < check.cmd > output.txt grep "Expected 4 bytes" output.txt Always stop GoldenGate processes gracefully before system shutdown: SEND REPLICAT <
GGSCI> INFO EXTRACT *, TASKS GGSCI> LAG EXTRACT *, REPLICAT * In Extract and Replicat parameters, add: