Integrated Golden Gate 19c: Container database
How to create Integrated extract/replicate in Oracle 19c container database ?
1) EXTRACT:
Note: Using Oracle 19c container database. Create TNS entry for cdb and pdb databases for Golden Gate.
EXTRACT EDEV1
USERID C##GGOLD_EXT@GG_CDB1, PASSWORD *****
DISCARDFILE /acfs01/goldengate/gg19c/discard/EDEV1.dsc, APPEND, megabytes 300
EXTTRAIL ./dirdat/la
TRANLOGOPTIONS INTEGRATEDPARAMS (max_sga_size 1024)
LOGALLSUPCOLS
UPDATERECORDFORMAT COMPACT
SOURCECATALOG PDB1
OBEY ./dirprm/dev_tablelist_PDB1.oby >>> list of table name
or
TABLE jay.table_name;
2) REPLICATE:
REPLICAT RDEV1
USERID C##GGOLD_REP@GG_PDB1, PASSWORD *****
DISCARDFILE /acfs01/goldengate/gg19c/discard/RDEV1.dsc, APPEND, megabytes 300
DBOPTIONS INTEGRATEDPARAMS(parallelism 2)
ASSUMETARGETDEFS
SOURCECATALOG PDEV1
OBEY ./dirprm/dev_tablelist_PDB1.oby
or
MAP rpt.tablename, target rptng.tablename;
or
MAP rpt.tablename, target rptng.tablename, colmap (usedefaults,timestamp = @datenow(),flag="N"); >>> Extra column in Replicate database
3. How to Register and start Extract and Replicate ?
Extract:
dblogin USERID C##GGOLD_EXT@EDEV1, PASSWORD ******
REGISTER EDEV1 DATABASE CONTAINER (PDB1)
ADD EXTRACT DEV1, INTEGRATED TRANLOG, BEGIN NOW
ADD RMTTRAIL ./dirdat/la, EXTRACT DEV1,megabytes 300
Replicate:
USERID C##GGOLD_REP@GG_PDB1, PASSWORD *****
ADD REPLICAT RDC3_DTC INTEGRATED EXTTRAIL ./dirdat/la
--START GG PROCESS
STRAT EDEV1
START RDEV1
or
ALTER EDEV1 BEGIN 2020-09-03 12:00
ALTER RDEV1 BEGIN 2020-09-03 12:00
4.How to create manager for Oracle 19c Golden Gate ?
PORT 7900
DYNAMICPORTLIST 7901-7999
AUTOSTART EXTRACT *
AUTORESTART EXTRACT *
AUTOSTART REPLICAT *
AUTORESTART REPLICAT *
PURGEOLDEXTRACTS /acfs01/goldengate/gg19c/dirdat/*, USECHECKPOINTS, MINKEEPDAYS 15
--START mgr
--STOP mgr
5. Advance parameter :
Extract:
DDL INCLUDE MAPPED SOURCECATALOG PORNDV1, OBJTYPE 'TABLE', EXCLUDE OPTYPE DROP, EXCLUDE INSTR 'FOREIGN KEY'
DDLOPTIONS ADDTRANDATA RETRYOP RETRYDELAY 10 MAXRETRIES 5
DDLOPTIONS REPORT
Replicate:
--DDL INCLUDE MAPPED
--DDLOPTIONS REPORT
--DBOPTIONS SUPPRESSTRIGGERS
--DDLERROR DEFAULT IGNORE
--HANDLECOLLISIONS
--MAPEXCLUDE PDB.Schema_Name.TableName;
Refer Oracle docs: https://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/goldengate/12c/OGG12c_Integrated_Replicat/index.html
No comments:
Post a Comment