有一套oracle-mysql的ogg同步系统,今天发现数据没有同步成功,检查源端没有问题
接着检查目标端发现rep1进程处于 ABENDED 非正常状态
查看错误日志发现如下内容:
2015-01-20 17:07:36 ERROR OGG-01172 Oracle GoldenGate Delivery for MySQL, rep1.prm: Discard file (/tol/ogg/dirrpt/rep4.dsc)
exceeded max bytes (1294967296).
2015-01-20 17:07:36 ERROR OGG-01668 Oracle GoldenGate Delivery for MySQL, rep1.prm: PROCESS ABENDING.
2015-01-20 17:13:13 INFO OGG-00987 Oracle GoldenGate Command Interpreter for MySQL: GGSCI command (ogg): info all.
这个错误的意思是 /tol/ogg/dirrpt/rep4.dsc文件已经达到了设定的size,临时解决可以清空这个文件,或者加大rep1进程的megabytes参数的大小
接着查看了一下这个文件的内容,发现很多如下错误信息:
[SQL error 1197]Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; increase this mysqld variable and try again
检查发现mysql的 max_binlog_cache_size参数设置过小,后调整到2G,目前使用还算稳定。
接着检查目标端发现rep1进程处于 ABENDED 非正常状态
查看错误日志发现如下内容:
2015-01-20 17:07:36 ERROR OGG-01172 Oracle GoldenGate Delivery for MySQL, rep1.prm: Discard file (/tol/ogg/dirrpt/rep4.dsc)
exceeded max bytes (1294967296).
2015-01-20 17:07:36 ERROR OGG-01668 Oracle GoldenGate Delivery for MySQL, rep1.prm: PROCESS ABENDING.
2015-01-20 17:13:13 INFO OGG-00987 Oracle GoldenGate Command Interpreter for MySQL: GGSCI command (ogg): info all.
这个错误的意思是 /tol/ogg/dirrpt/rep4.dsc文件已经达到了设定的size,临时解决可以清空这个文件,或者加大rep1进程的megabytes参数的大小
接着查看了一下这个文件的内容,发现很多如下错误信息:
[SQL error 1197]Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; increase this mysqld variable and try again
检查发现mysql的 max_binlog_cache_size参数设置过小,后调整到2G,目前使用还算稳定。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23249684/viewspace-1408496/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23249684/viewspace-1408496/