关于 OGG Loading data from file to Replicat同步含有lob字段表

关于 OGG "Loading data from file to Replicat"同步含有lob字段表的部分记录的关键参数

首先说明一点:Loading data with an Oracle GoldenGate direct load 这个方法,对含有如下数据类型的table,是无法使用的:

LOBs, LONGs, user-defined types (UDT), or any other large data type that is greater than 4 KB in size.

因此,遇到如下需求时,就不得不用OGG "Loading data from file to Replicat"这个方法来做:

1. db版本是10gR2(本文的测试环境是10.2.0.5),因为10gR2的impdp无remap_table功能

2. 含有lob字段的表(t1),同步出一部分数据到相同user下(确切的说是本数据库中的相同user下),只是换一个表名(t1_temp)

当然,如上的需求,还可以用hvr数据同步软件来做。此时,hvr的优势就显示出来了:hvr不形成落地文件(不形成落在文件系统上的文件),就可以直接将所需要同步的row 插入到t1_temp表中。

OGG "Loading data from file to Replicat"这个方法 是先由OGG的extract进程形成落地文件(形成落在文件系统上的文件),然后再由OGG的replicat进程读取这些文件,转成sql语句,在数据库中执行这些语句。

当然还可以用OGG "Loading data from file to database utility"来做。

本文所说的关键参数是OGG的extract进程的参数:

table test.t1_temp, SQLPREDICATE "where xh= '11'"

也可以这么写

table test.t1_temp, SQLPREDICATE "where xh in (select xh from test.highgo_sync_row_xh)"

其中,, test.highgo_sync_row_xh 保存了需要同步的xh的值。

可是我要如何在浅薄的纸上为你画上我所有的命轮?

关于 OGG Loading data from file to Replicat同步含有lob字段表

相关文章:

你感兴趣的文章:

标签云: