Professional Documents
Culture Documents
03A IntegratedMode DML Replication Using Goldengate 12c Multitenant Architecture Steps
03A IntegratedMode DML Replication Using Goldengate 12c Multitenant Architecture Steps
Aim: Pluggable database is pdborcl. Replicate the data of SA.TEST to SA1.TEST1. Both
schemas and tables are part of PDBORCL pluggable database.
Prerequisites:
At Database Level:
Source:
$>sqlplus / as sysdba
Target:
$>sqlplus / as sysdba
At GGSCI Prompt:
6. Add trandata for the tables for which replication is required.
Note: Connection is made to Container DB above for adding and registering extract:
Port 8080
Using the ADD EXTRAIL command we will now create a local trail on the source system where
the Extract process will write to and which is then read by the Data Pump process. We will link
this local trail to the Primary Extract group we just created, extint
On the source system create the Data Pump group and using the EXTTRAILSOURCE keyword
specify the location of the local trail which will be read by the Data Pump process
GGSCI (devu007) 4> ADD EXTRACT pint, EXTTRAILSOURCE /goldengate/dirdat/lt
EXTRACT added.
12. Create the parameter file for the Primary Extract group
EXTRACT extint
USERID c##ggadmin, PASSWORD ggadmin --connection to CDB$ROOT database
TRANLOGOPTIONS INTEGRATEDPARAMS (MAX_SGA_SIZE 100)
EXTTRAIL /goldengate/dirdat/lt
TABLE pdborcl.SA.TEST;
13. Specify the location of the remote trail on the target system
Use the RMTTRAIL to specify the location of the remote trail and associate the same with the
Data Pump group as it will be wriiten to over the network by the data pump process
14. Create the parameter file for the Data Pump group
Note- the parameter PASSTHRU signifies the mode being used for the Data Pump which means
that the names of the source and target objects are identical and no column mapping or filtering
is being performed here.
EXTRACT pint
USERID c##ggadmin, PASSWORD ggadmin
RMTHOST 10.3.88.198, MGRPORT 7809
RMTTRAIL /ggs/dirdat/rt
PASSTHRU
TABLE pdborcl.SA.TEST;
ON TARGET SYSTEM
DBLOGIN:
GGSCI>dblogin userid c##ggadmin@pdborcl,password ggadmin
REPLICAT added.
REPLICAT repint
USERID C##GGADMIN@PDBORCL, PASSWORD ggadmin –Connection to pluggable
DBOPTIONS INTEGRATEDPARAMS(parallelism 6)
ASSUMETARGETDEFS
MAP PDBORCL.SA.TEST, TARGET PDBORCL.SA1.TEST1;