暂无图片
请教用ogg同步mysql到kafka的问题
我来答
分享
看戏
2019-08-06
请教用ogg同步mysql到kafka的问题

请问使用ogg同步mysql到kafka端,在我数据初始化之后,我如何指定从某个检查点开始继续同步呢

oracle可以使用scn,在源端的extract进程中添加这样的文件进行同步,table test.t1,SQLPREDICATE 'AS OF SCN 1051618';

那么mysql是使用pos么?具体的extract进程需要如何配置呢

我来答
添加附件
收藏
分享
问题补充
1条回答
默认
最新
llzx373

参考官方文档如下:


https://docs.oracle.com/en/middleware/goldengate/core/18.1/hetergeneous-db/preparing-and-configuring-system-oracle-goldengate.html#GUID-A2FDBF55-48DA-4C7F-9F1F-152275206D71


Positioning Extract to a Specific Start Point

You can position the ADD EXTRACT and ALTER EXTRACT commands to a specific start point in the transaction logs with the following command.

{ADD | ALTER EXTRACT} group, VAM, LOGNUM log_num, LOGPOS log_pos                    

group is the name of the Oracle GoldenGate Extract group for which the start position is required.

log_num is the log file number. For example, if the required log file name is test.000034, this value is 34. Extract will search for this log file.

log_pos is an event offset value within the log file that identifies a specific transaction record. Event offset values are stored in the header section of a log record. To position at the beginning of a binlog file, set the log_pos as 4. The log_pos 0 or 1 are not valid offsets to start reading and processing.

In MySQL logs, an event offset value can be unique only within a given binary file. The combination of the position value and a log number will uniquely identify a transaction record and cannot exceed a length of 37. Transactional records available after this position within the specified log will be captured by Extract. In addition, you can position an Extract using a timestamp.


暂无图片 评论
暂无图片 有用 0
打赏 0
回答交流
Markdown


请输入正文
提交
相关推荐
装不同版本的MySQL,需要添加新的环境变量吗?
回答 1
已采纳
windows下?需要的,home路径不一样如果是linux,tar包安装其实不用改环境变量,但是启动时需要指定my.cnf
mysql使用过程中会突然自己退出?
回答 2
先看错误日志吧,/diskDB/mysql/log/mysql.log另外,为什么要用nohup起db呢?可以用service/systemd托管啊
MySQL的RPM包的用途说明
回答 1
已采纳
server所有服务器的二进制文件,配置和数据库common服务器端和客户端通用文件client连接到数据库库服务器的所有客户端组件devel编译mysql程序需要的库libs共享库libscompa
mysql中有子事务的概念吗?savepoint方式属于子事务吗?
回答 1
MySQL中有子事务的概念,但是和PostgreSQL中的Savepoint不是一个意思。在MySQL中,可以使用SAVEPOINT语句来保存当前事务的状态,以便在需要时恢复到该状态。SAVEPOIN
mysql有没有sqlserver的ROW_NUMBER () 开窗函数?
回答 1
已采纳
8.0后,有了哈。
Oracle,PostgreSQL,Mysql中浮点型如何产生inf、-inf,NaN?
回答 1
把你的报错信息,SQL语句,执行的数据库搞出来看看
mysql源库中要改表结构,这时该如何处理?
回答 1
敢问你的源库是什么意思?是原库主库的意思吗?
mysql做数据库开发,写存储过程, 用什么比较好?
回答 5
sqlyog,navicat都是蛮好的工具。如果熟练的话,使用文本编辑器也是可以的。
MGR架构可以直接在其中一个节点像传统的mysql主从架构一样,mysqldump热备吗?
回答 1
可以
关于delete-master-logs
回答 1
deletemasterlogs是备份完后,就删除binlog(执行的命令参考PURGEBINARYLOGSTO'mysqlbin.000276'),不会做binlog的备份(它也不知道往哪备啊)