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