欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

GoldenGateperformancetuning

程序员文章站 2022-05-03 20:41:33
...

ogg同步的时候,有时候我们会遇见非常大的表。这时候我们可以使用多个replicat进程通过range参数进行分割分别应用到目标端数据库中 例如: replicat rep2: MAP scott.emp, TARGET scott.emp, FILTER (@RANGE (1,3)); replicat rep3: MAP scott.emp, TARGET

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}] [, ...])