notes_gg

Upload: nick-santos

Post on 08-Mar-2016

9 views

Category:

Documents


0 download

DESCRIPTION

notes on gg

TRANSCRIPT

  • MANAGER with recommended/required params

    PORT 7809DYNAMICPORTLIST 7810-7820, 7830AUTOSTART ER t*AUTORESTART ER t*, RETRIES 4, WAITMINUTES 4STARTUPVALIDATIONDELAY 5PURGEOLDEXTRACTS /data/goldengate/dirdat/tt*, USECHECKPOINTS, MINKEEPHOURS 2

    =================================================OBEY file

    ADD EXTRACT myext, TRANLOG, BEGIN nowSTART EXTRACT myext

    ADD REPLICAT myrep, EXTTRAIL /data/goldengate/dirdat/aaSTART REPLICAT myrep

    INFO EXTRACT myext, DETAILINFO REPLICAT myrep, DETAIL

    =================================================

    EDIT PARAMS ./GLOBALS

    =================================================EXTRACT PARAMS

    -- Extract group nameEXTRACT capt-- Extract database user login, with password encryption specificationsUSERID ogg, PASSWORD AACAAAAAAAAAAAJAUEUGODSCVGJEEIUGKJDJTFNDKEJFFFTC &AES128, ENCRYPTKEY securekey1-- Discard fileDISCARDFILE /ggs/capt.dsc, PURGE-- Remote host to where captured data is sent in encrypted format:RMTHOST sysb, MGRPORT 7809, ENCRYPT AES192 KEYNAME mykey-- Encryption specification for trail dataENCRYPTTRAIL AES192 KEYNAME mykey1-- Remote trail on the remote hostRMTTRAIL /ggs/dirdat/aa-- TABLE statements that identify data to capture.TABLE FIN.*;TABLE SALES.*;

    =================================================EXTRACT PARAMS (REPORTING w/ Datapump)-- 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-- optional encryption:ENCRYPTTRAIL EXTTRAIL -- Specify tables to be captured:

  • TABLE .;

    =================================================DPUMP PARAMS (REPORTING w/ Datapump)ADD EXTRACT , EXTTRAILSOURCE , BEGIN

    ADD RMTTRAIL , EXTRACT =================================================

    =================================================DPUMP PARAMS (REPORTING w/ Datapump)-- Identify the data pump group:EXTRACT -- Specify database login information if using NOPASSTHRU:[SOURCEDB ][, USERID ][, PASSWORD []]-- 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:TABLE .;=================================================

    REPLICAT PARAMS

    -- Replicat group nameREPLICAT deliv-- Replicat database user login, with password encryption specificationsUSERID ogg, PASSWORD AACAAAAAAAAAAAJAUEUGODSCVGJEEIUGKJDJTFNDKEJFFFTC &AES128, ENCRYPTKEY securekey1-- File containing definitions of source objectsSOURCEDEFS /ggs/dirdef/defs-- Discard fileDISCARDFILE /ggs/deliv.dsc, PURGE-- Decryption specification for encrypted trailDECRYPTTRAIL AES192 KEYNAME mykey1-- Error handling rulesREPERROR DEFAULT, ABEND-- Ignore INSERT operationsIGNOREINSERTS-- MAP statement to map source objects to target objects and-- specify column mappingMAP "fin"."accTAB", TARGET "fin"."accTAB",COLMAP ("Account" = "Acct","Balance" = "Bal","Branch" = "Branch");-- Get INSERT operationsGETINSERTS-- MAP statement to map source objects to target objects and-- filter to apply only the 'NY' branch data.MAP "fin"."teller", TARGET "fin"."tellTAB",WHERE ("Branch" = 'NY');

  • @CASE (PRODUCT_CODE, "CAR", "A car", "TRUCK", "A truck")

    -- 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 if input trail is encrypted:DECRYPTTRAIL -- Specify error handling rules:REPERROR (, )-- Specify tables for delivery:MAP ., TARGET .[, DEF ];

    =================================================

    REPLICAT PARAMS(Reporting w/ dpump)