;
当源端数据库与目标数据库不在一个网络中,可以在一个中介系统里创建投递进程,该进程在整个部署中成为一个二传手。
源端数据库的投递进程读取本local trail后投递(写到)到中介系统中的trail,中介系统中的投递进程(二传手)读取中介系统中的trail投递到目标端。
在配置中需要修改的地方如下:
在源端的投递进程参数中需要将RMTHOST的IP设置为中介地址,RMTTRAIL需要设置为中介trial路径
在中介系统中需要配置如下内容:
1,配置管理进程Manager process,方法同源库相同。
2,在Manager参数文件中使用PURGEOLDEXTRACTS来控制trail删除策略
3,配置投递进程组,取名为pump_2
ADD EXTRACT , EXTTRAILSOURCE , BEGIN
EXTTRAILSOURCE:该参数指定中介系统中trail文件路径
4,使用ADD RMTTRAIL指定目标数据库trail位置
ADD RMTTRAIL , EXTRACT
EXTRACT:该参数指明刚刚创建的“中介投递进程”将数据写入目标数据库的trail文件。
下面看看投递进程的配置文件
-- Identify the data pump group:
EXTRACT
-- Note that no database login parameters are required in this case.
-- State whether or not source and target definitions are identical: SOURCEDEFS | ASSUMETARGETDEFS
-- Specify the target definitions file if SOURCEDEFS was used: TARGETDEFS
-- Specify decryption if input trail is encrypted:
DECRYPTTRAIL
-- Specify the name or IP address of the target system
-- and optional encryption of data over TCP/IP:
RMTHOST , MGRPORT , ENCRYPT -- Specify the remote trail and encryption options on the target system: ENCRYPTTRAIL []
RMTTRAIL
-- Allow mapping, filtering, conversion or pass data through as-is; [PASSTHRU | NOPASSTHRU]
-- Specify tables to be captured: