在OGG中循环使用ggserr.log的方法:

參考原文:

OGG How Do I Recycle The "ggserr.log" File? (Doc ID 967932.1)

适用于:

Oracle GoldenGate - Version 4.0.0 and later

Generic Linux

问题

GoldenGate的 ggserr.log 日志文件包含有关 GoldenGate 事件的信息。比方:进程启动。关闭,error 。warning。该文件可能会变的非常大。为了循环使用该文件,你不得不停止全部的GoldenGate进程。

解决方式:

1.有一个需求是:在GoldenGate进程执行时。循环使用ggserr.log,在此种情况下。你能够用例如以下的方法:

          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

注意:

在windows环境中, 须要使用unix 模拟器(比方cygwin)来完毕上述操作。

假设ggserr.log非常大。上一步可能须要非常长时间,在此时间之内。注意,这个时间是指在1)和2)之间存在时间差,在step1 和step2之间插入的条目会丢失。

假设要求不能丢失不论什么条目。那么在ggserr.log最末尾的行(指在step1和step2之间新插入的行)能够被再次备份。

样例:

tail -500 > ggserr.log.bkup_2

对于veridata:

Similar functionality is available for the Veridata veridata.log.

See note 1385983.1 for details.

2. 另外的一个解决方式是 use logrotate (note 1466849.1)

--->注意:note 1466849.1  是指:How to Rotate GoldenGate ggserr.log using logrotate utility for Unix/Linux?

(Doc ID 1466849.1)

【翻译自mos文章】在Oracle GoldenGate中循环使用ggserr.log的方法的更多相关文章

  1. 【翻译自mos文章】Oracle GoldenGate 怎么在源头的传输进程和目的端的server/collector进程之间分配 port?

    Oracle GoldenGate 怎么在源头的传输进程和目的端的server/collector进程之间分配 port? 来源于: How Does GoldenGate Allocates Por ...

  2. 【翻译自mos文章】oracle db 中的用户账户被锁--查看oracle用户的尝试次数

    參考原文: Users Accounts Getting Locked. (Doc ID 791037.1) 事实上这个文章是为oracle 别的软件产品写的,只是涉及到user 锁定问题.那还是跟d ...

  3. 【翻译自mos文章】oracle支持在RDBMS HOME 下的 符号链接( Symbolic Links)吗?

    oracle支持在RDBMS HOME 下的 符号链接( Symbolic Links)吗? 參考原文: Does Oracle support Symbolic Links in the RDBMS ...

  4. 【翻译自mos文章】检查$ORACLE_HOME是否是RAC的HOME的方法以及relink RAC的Oracle binary的方法

    检查$ORACLE_HOME是否是RAC的HOME的方法以及relink RAC的Oracle binary的方法 来源于: How to Check Whether Oracle Binary/In ...

  5. 【翻译自mos文章】在10g中,当发生ORA-00020时,sqlplus登陆会报“connected to an idle instance”

    在10g中.当发生ORA-00020时,sqlplus登陆会报"connected to an idle instance" 来源于: Sqlplus Logon Reports ...

  6. 【翻译自mos文章】多租户中的service管理

    来源于: Service Management For Multitenant (文档 ID 2009500.1) APPLIES TO: Oracle Database - Enterprise E ...

  7. 【翻译自mos文章】在12c中Create or Truncate Table时非常慢,等待事件为 DFS Lock Handle wait

    来源于: Create or Truncate Table Slow in 12c While Waiting for DFS Lock Handle wait (文档 ID 2085308.1) A ...

  8. 【翻译自mos文章】11.2.0.4及更高版本号的asm实例中MEMORY_TARGET 和 MEMORY_MAX_TARGET的默认值和最小值

    [翻译自mos文章]11.2.0.4及更高版本号的asm实例中MEMORY_TARGET 和 MEMORY_MAX_TARGET的默认值和最小值 来源于: Default and Minimum ME ...

  9. Oracle GoldenGate中HANDLECOLLISIONS参数使用详解

    Oracle GoldenGate中HANDLECOLLISIONS参数使用详解   HANDLECOLLISIONS 是一个 replicat 进程参数,主要在 initial load 中使用.在 ...

随机推荐

  1. oracle表空间操作语句

    1.查看所有表空间及表空间大小: select tablespace_name ,sum(bytes) / 1024 / 1024 as MB from dba_data_files group by ...

  2. golangWEB框架gin学习之路由群组

    原文地址:http://www.niu12.com/article/42 package main import ( "github.com/gin-gonic/gin" &quo ...

  3. linux上虚拟显示器和火狐浏览器的使用学习记录

    Ubuntu 14.04 sudo apt-get firefox sudo apt-get install python-pip sudo apt-get install xvfb# xserver ...

  4. Solr6.6.0 用 SimplePostTool索引文件 中文乱码

    在用SimplePostTool工具导入CSV文件,文件内容如下: 启动solr ,利用命令导入:java -Dtype=text/csv -Dc=solr_test -jar post.jar .. ...

  5. volatile型变量自增操作的隐患

      用FindBugs跑自己的项目,报出两处An increment to a volatile field isn't atomic.对应报错的代码例如以下: volatile int num = ...

  6. 集合—ArrayList

    ArrayList也叫作数组列表 public static void main(String[] args) { List list1 = new ArrayList<String>() ...

  7. Docker核心技术

    Docker核心技术 1.cgroup 即controller group,其重要概念是子系统,首先挂载子系统,然后才有control group.例如cpu子系统,挂载至系统之后,创建一个cgrou ...

  8. 2017.11.21 查询某个字段为null的记录

    注意,不使用 = null, 而是 is null. select fd_username, fd_tenantid, fd_validity from t_user WHERE fd_validit ...

  9. testform

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T ...

  10. [Spring boot] Integrating with h2 database

    In pom.xml add dependency: <dependencies> <dependency> <groupId>org.springframewor ...