"Translated from MoS article" method of recycling Ggserr.log in Oracle Goldengate

Source: Internet
Author: User
Tags log log

Ways to recycle Ggserr.log in Ogg:

Reference text:
OGG How does I Recycle the "Ggserr.log" File? (Doc ID 967932.1)

Suitable for:
Oracle goldengate-version 4.0.0 and later
Generic Linux

Problem
GoldenGate's Ggserr.log log file includes information about the GoldenGate event, such as: Process start, shutdown, error, warning. The file may become very large. In order to recycle the file, you have to stop all the goldengate processes.

Solution:
1. One requirement is that when the goldengate process runs, the loop uses Ggserr.log, in which case you can use the following method:

          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


Attention:
In a Windows environment, you need to use a UNIX emulator (such as Cygwin) to do this.


If the Ggserr.log is large, the previous step may take a long time, within this time, notice that the time difference between 1 and 2 is present, and the entries inserted between Step1 and Step2 are lost.
If you do not want to lose any entries, the last line at Ggserr.log (referring to the newly inserted row between Step1 and Step2) can be backed up again.

Example:

tail-500 > Ggserr.log.bkup_2


For Veridata:
Similar functionality is available for the Veridata Veridata.log.
See note 1385983.1 for details.

2. Another solution is use logrotate (note 1466849.1)

---> Note: the note 1466849.1 means: How to Rotate GoldenGate ggserr.log using logrotate utility for Unix/linux? (Doc ID 1466849.1)


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.