In this Document
Applies to:
Oracle GoldenGate - Version 4.0.0 and later
Generic Linux
Solution
Problem
The GoldenGate "ggserr.log" file contains information about GoldenGate events, such as Process Startup, Shutdown, and Errors/Warnings. This file can grow very large. To recycle the file, you have to stop all GoldenGate processes.
Solutions
1. There is an enhancement request ( Bug 9426794) to allow recycling the "ggserr.log" file when the processes are running. In the meantime, you can use the following workaround:
1). Back up the "ggserr.log" file using the following command:
cp -p ggserr.log ggserr.log.bkup
2). Truncate the file using the following command:
cat /dev/null > ggserr.log
Note
For Windows, a Unix simulator (like cygwin) is required.
If the "ggserr.log" file is huge, step 1 may take a long time. Some new entries inserted between step 1 and 2 may be lost. If this is a concern, the lines at the end of the "ggserr.log" file can be backed up again between step 1 and 2.
Example
tail -500 > ggserr.log.bkup1
Veridata:
Similar functionality is available for the Veridata veridata.log.
See note 1385983.1 for details.
2. Another solution is to use logrotate (note 1466849.1)
References
NOTE:1466849.1 - How to Rotate GoldenGate ggserr.log using logrotate utility for Unix/Linux?