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

在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的方法,布布扣,bubuko.com

时间: 2024-08-07 04:32:44

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

【翻译自mos文章】Oracle GoldenGate(OGG) trail file的最大大小

Oracle GoldenGate(OGG) trail file的最大大小 参考原文: what's the OGG trail size limit? (文档 ID 1348080.1) 适用于: Oracle GoldenGate - Version: 10.4.0.99 and later   [Release: 10.4.0 and later ] Information in this document applies to any platform. 目标: 在AIX 平台下,做i

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

参考原文: Users Accounts Getting Locked. (Doc ID 791037.1) 其实这个文章是为oracle 别的软件产品写的,不过涉及到user 锁定问题,那还是跟db有关系. 该文章我就不全部翻译了,只翻译最有用的一点: ---lcount列是记录oracle用户用错误的密码登陆db的登陆的次数. Select lcount from SYS.USER$ where name ='<USERNAME>' [翻译自mos文章]oracle db 中的用户账户被锁

【翻译自mos文章】oracle数据库中 基本的表压缩和高级压缩之间的区别

基本的表压缩和高级压缩之间的区别, 摘录自mos文章Difference Between Basic Table Compression And Advanced Compression (Doc ID 1548187.1) 适用于: Oracle Database - Enterprise Edition - Version 10.2.0.5 and later Information in this document applies to any platform. 目标: What is

【翻译自mos文章】Oracle GoldenGate 对IBM大型机 z/OS 2.1 和DB2 v11的支持

GoldenGate 对IBM大型机 z/OS 2.1 和DB2 v11的支持 来源于: GoldenGate Support for z/OS 2.1 and DB2 v11 (文档 ID 1941364.1) 适用于: Oracle GoldenGate - Version 12.1.2.1.2 and later Information in this document applies to any platform. 目标: 需要知道是否有一个GoldenGate版本能支持 IBM大型机

【翻译自mos文章】rac数据库中,HC_&lt;SID&gt;.dat文件被其他Oracle_Home下的实例所使用。

rac数据库中,HC_<SID>.dat文件被其他Oracle_Home下的实例所使用. 参考原文: RAC database HC_<SID>.dat is used by instance of different Oracle_Home (Doc ID 1618161.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.0 and later Information in this document ap

【翻译自mos文章】oracle数据库的最大数据容量限制和表空间的最大数据容量限制

oracle数据库的最大数据容量限制和表空间的最大数据容量限制 参考原文: What Is The Maximum Tablespace Size And Database Limit For An Oracle Database ? (Doc ID 1372905.1) 适用于: Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.2.0.3 [Release 10.1 to 11.2] Oracle Database -

【翻译自mos文章】在rac中,使用asmcmd命令从 文件系统 move system datafile 到asm磁盘组的方法

在rac中,使用asmcmd命令从 文件系统  move system datafile 到asm磁盘组的方法. 参考原文: How to move a SYSTEM datafile from filesystem to the ASM diskgroup using ASMCMD on RAC. (Doc ID 1607292.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.1 to 11.2.0.3 [Releas

【翻译自mos文章】oracle密码管理策略

oracle密码管理策略 参考原文: Oracle Password Management Policy (Doc ID 114930.1) 细节: 密码管理通过使用profile来建立. 当密码过期后,如果user有能力独立地从 end-user application(前台业务软件)修改密码的话,通常的推荐是只指派给这些schemas 一个profile,该profile有  password aging an expiration features . 通常这意味着application(

【翻译自mos文章】oracle linux 和外部存储系统 的关系

oracle  linux 和外部存储系统 的关系 参考原文: Oracle Linux and External Storage Systems (Doc ID 753050.1) 适用范围: Linux OS - Version Oracle Linux 4.4 to Oracle Linux 6.0 with Unbreakable Enterprise Kernel [2.6.32] [Release OL4U4 to OL6] Linux x86-64 Linux x86 Linux