Oracle Goldengate并行复制

Oracle Goldengate并行复制

通常我们在做数据同步的时候,会用到oracle goldengate工具,也体会到了这个工具的强大。有时候面对大事务或者是出现应用进程延迟非常严重的时候可以考虑使用并行复制的功能。

在上一次的案例中,测试验证了非并行模式下的数据同步。在次就不全部测试了。根据上一次的文档调整为并行复制模式。

详细的测试验证请参考如下地址:

https://blog.csdn.net/bing_yuan/article/details/147239738?spm=1011.2415.3001.5331

调整为并行模式,抽取进程保持不变:

复制代码
add replicat repep, parallel, exttrail ./dirdat/ep, checkpointtable ggs.ckptab_scims

view param repep 

replicat repep
useridalias s_target
discardfile ./dirrpt/repep.dsc, append, megabytes 100
MAP_PARALLELISM 2
MIN_APPLY_PARALLELISM 2
MAX_APPLY_PARALLELISM 8
SPLIT_TRANS_RECS 10 
gettruncates
map scims.tscim ,target scims.tscim3;

相关参数解释:

复制代码
MAP_PARALLELISM

Configures number of mappers. This controls the number of threads used to read the trail file. The default value is 2.
配置映射器数量。这控制用于读取跟踪文件的线程数。默认值为 2。

APPLY_PARALLELISM

Configures number of appliers. This controls the number of connections in the target database used to apply the changes. The default value is 4.
配置应用器数量。这控制目标数据库中用于应用更改的连接数。默认值为 4。

MIN_APPLY_PARALLELISM | MAX_APPLY_PARALLELISM

The Apply parallelism is auto-tuned. You can set a minimum and maximum value to define the ranges in which the Replicat automatically adjusts its parallelism. There are no defaults. Do not use with APPLY_PARALLELISM at same time.
应用并行度是自动调整的。您可以设置最小值和最大值来定义 Replicat 自动调整并行度的范围。没有默认值。不要与应用并行度同时使用。

SPLIT_TRANS_REC

Specifies that large transactions should be broken into pieces of specified size and applied in parallel. Dependencies between pieces are still honored. Disabled by default.
指定将大事务拆分为指定大小的多个片段,并并行应用这些片段。片段之间的依赖关系仍然得到保持。默认情况下禁用。

重新启动进程

查看进程可以看到parallel关键字

测试验证数据同步正常。

相关推荐
RestCloud1 天前
SQL Server到Hive:批处理ETL性能提升30%的实战经验
数据库·api
RestCloud1 天前
为什么说零代码 ETL 是未来趋势?
数据库·api
ClouGence1 天前
CloudCanal + Paimon + SelectDB 从 0 到 1 构建实时湖仓
数据库
DemonAvenger2 天前
NoSQL与MySQL混合架构设计:从入门到实战的最佳实践
数据库·mysql·性能优化
AAA修煤气灶刘哥2 天前
后端人速藏!数据库PD建模避坑指南
数据库·后端·mysql
RestCloud2 天前
揭秘 CDC 技术:让数据库同步快人一步
数据库·api
得物技术2 天前
MySQL单表为何别超2000万行?揭秘B+树与16KB页的生死博弈|得物技术
数据库·后端·mysql
可涵不会debug2 天前
【IoTDB】时序数据库选型指南:工业大数据场景下的技术突围
数据库·时序数据库
ByteBlossom3 天前
MySQL 面试场景题之如何处理 BLOB 和CLOB 数据类型?
数据库·mysql·面试
麦兜*3 天前
MongoDB Atlas 云数据库实战:从零搭建全球多节点集群
java·数据库·spring boot·mongodb·spring·spring cloud