0% found this document useful (0 votes)
1K views

Setting Up A GoldenGate Replication With Mapping Between Different Columns

Setting up a GoldenGate replication with mapping between different columns

Uploaded by

doyenblog
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

Setting Up A GoldenGate Replication With Mapping Between Different Columns

Setting up a GoldenGate replication with mapping between different columns

Uploaded by

doyenblog
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Setting up a GoldenGate replication with mapping between different

columns
How to do it...
Once you have modified the EMP table in the target environment, you can follow the following
steps to set up a replication between these tables.
Steps to be performed in the source environment are as follows:
1. Create a parameter file for defgen:
./ggsci
EDIT PARAMS defs
DEFSFILE ./dirdef/defs.def
USERID ggs_admin@dboratest, PASSWORD ******
TABLE SCOTT.EMP;
TABLE SCOTT.DEPT;
TABLE SCOTT.BONUS;
TABLE SCOTT.DUMMY;
TABLE SCOTT.SALGRADE;

2. Generate the definitions file:


./defgen paramfile ./dirprm/defs.prm

3. Push the definitions file to the target server using scp:


scp ./dirdef/defs.def stdby1-ol6-112:/u01/app/ggate/dirdef/

4. The Extract process parameter file should look as follows:


EXTRACT EGGTEST1
USERID GGATE_ADMIN@DBORATEST, PASSWORD GGATE_ADMIN
EXTTRAIL /u01/app/ggate/dirdat/st
TABLE scott.*;

5. The Datapump process parameter file should look as follows:


EXTRACT PGGTEST1
USERID GGATE_ADMIN@DBORATEST, PASSWORD GGATE_ADMIN
RMTHOST stdby1-ol6-112 , MGRPORT 8809
RMTTRAIL /u01/app/ggate/dirdat/rt
TABLE scott.*;

6. Start the Extract and Datapump processes.


Steps to be performed in the target environment are as follows:

1. Edit the Replicat process configuration as follows:


./ggsci
EDIT PARAMS RGGTEST1
REPLICAT RGGTEST1
USERID GGATE_ADMIN@TGORTEST, PASSWORD GGATE_ADMIN
DISCARDFILE /u01/app/ggate/dirrpt/RGGTEST1.dsc,append,MEGABYTES
500
SOURCEDEFS ./dirdef/defs.def
MAP SCOTT.BONUS, TARGET SCOTT.BONUS;
MAP SCOTT.SALGRADE, TARGET SCOTT.SALGRADE;
MAP SCOTT.DEPT, TARGET SCOTT.DEPT;
MAP SCOTT.DUMMY, TARGET SCOTT.DUMMY;
MAP SCOTT.EMP, TARGET SCOTT.EMP, COLMAP(USEDEFAULTS, SAL=SALARY,
COMM=COMMISSION);

2. Start the Replicat process.

You might also like