ADD EXTRACT , {TRANLOG | INTEGRATED TRANLOG}, BEGIN
4,在源端,使用ADD EXTTRAIL命令来创建一个本地trail ADD EXTTRAIL , EXTRACT 使用参数EXTRACT将提取组ext和trail相链接。提取组将信息写入trail,投递组从trail中读取。 5,在源端,使用EDIT PARAMS命令为初级提取组创建一个参数文件。 -- Identify the Extract group:EXTRACT
-- Specify database login information as needed for the database:
[SOURCEDB ][, USERID ][, PASSWORD []] -- Specify the local trail that this Extract writes to
-
- and encryption options:
ENCRYPTTRAIL EXTTRAIL
-- Specify tables to be captured:
TABLE .
;
EXTTRAIL用于指定本地trail
配置数据泵投递组 在源头端,使用ADD EXTRACT 命令为每一个目标系统创建数据泵。在这里我们取名为pump_1,pump2. ADD EXTRACT , EXTTRAILSOURCE , BEGIN ADD EXTRACT , EXTTRAILSOURCE , BEGIN EXTRACT参数用于将远程trail连接到不同的投递组。被指定的投递组将信息写入相对应的trail文件。 8,在源端,使用EDIT PARAMS命令为每一个数据泵提取组创建参数文件。 Data pump_1
-- Identify the data pump group:
EXTRACT
-- Specify database login information if using NOPASSTHRU:
[SOURCEDB ][, USERID ][, PASSWORD []] -- Specify decryption options if input trail is encrypted.DECRYPTTRAIL
-- Specify the name or IP address of the first target system
-- and optional encryption of data over TCP/IP:
RMTHOST , MGRPORT , ENCRYPT
-- Specify remote trail and encryption options on first target system:
ENCRYPTTRAIL
RMTTRAIL
-- Allow mapping, filtering, conversion or pass data through as-is:
[PASSTHRU | NOPASSTHRU]
-- Specify tables to be captured:
TABLE .
;
Data pump_2
-- Identify the data pump group:
EXTRACT -- Specify database login information if using NOPASSTHRU:
[SOURCEDB ][, USERID ][, PASSWORD []] -- Specify decryption options if input trail is encrypted.DECRYPTTRAIL
-- Specify the name or IP address of the second target system
-- and optional encryption of data over TCP/IP:
RMTHOST , MGRPORT , ENCRYPT
-- Specify remote trail and encryption options on second target system:
ENCRYPTTRAIL RMTTRAIL
-- Allow mapping, filtering, conversion or pass data through as-is:
[PASSTHRU | NOPASSTHRU]
-- Specify tables to be captured:
TABLE .
-- Identify the Replicat group:
REPLICAT
-- State whether or not source and target definitions are identical:
SOURCEDEFS | ASSUMETARGETDEFS
-- Specify database login information as needed for the database:
[TARGETDB ][, USERID ][, PASSWORD []] -- Specify decryption options if input trail is encrypted.DECRYPTTRAIL
-- Specify error handling rules:
REPERROR (, )
-- Specify tables for delivery:
MAP .
, TARGET .
[, DEF ];
Target_2
-- Identify the Replicat group:
REPLICAT
-- State whether or not source and target definitions are identical:
SOURCEDEFS | ASSUMETARGETDEFS
-- Specify database login information as needed for the database:
[TARGETDB ][, USERID ][, PASSWORD []] -- Specify decryption options if input trail is encrypted.DECRYPTTRAIL
-- Specify error handling rules:REPERROR (, )
-- Specify tables for delivery:
MAP .