首页 > 代码库 > GoldenGate performance tuning

GoldenGate performance tuning

ogg同步的时候,有时候我们会遇见非常大的表。这时候我们可以使用多个replicat进程通过range参数进行分割分别应用到目标端数据库中

例如:
replicat rep2:

MAP scott.emp, TARGET scott.emp, FILTER (@RANGE (1,3));

replicat rep3:

MAP scott.emp, TARGET scott.emp, FILTER (@RANGE (2,3));

replicat rep4:

MAP scott.emp, TARGET scott.emp, FILTER (@RANGE (3,3));

 

默认通过主键range的,这里也可以指定其他列,语法:
@RANGE ({range}, {total ranges} [, {column}] [, {column}] [, ...])


    GoldenGate performance tuning