Chinaunix首页 | 论坛 | 博客
  • 博客访问: 360845
  • 博文数量: 86
  • 博客积分: 1460
  • 博客等级: 上尉
  • 技术积分: 848
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-12 14:07
文章分类

全部博文(86)

文章存档

2017年(36)

2016年(17)

2015年(1)

2013年(12)

2012年(2)

2011年(1)

2010年(1)

2009年(16)

我的朋友

分类: LINUX

2016-06-09 18:54:38

OGG How Do I Recycle The "ggserr.log" File? (文档 ID 967932.1) 转到底部转到底部

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?
阅读(1613) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~