Professional Documents
Culture Documents
OGG Pratical Reference Doc
OGG Pratical Reference Doc
NAME
---------
GGSRC
SUPPLEME
--------
NO
Pre Installation
The below task are requried to be completed both in source and target Database prior
starting GoldenGate Installation
It tells database to log more (supplemental logging ~10% of more redo writing) on
source side.
alter database add supplemental log data;
alter database force logging;
alter system switch logfile;
Copyright (C) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
View status of all golden gate processes using the following command.
GGSCI> status all or info all
port 7809
lagreportminutes 5
laginfominutes 1
lagcriticalminutes 2
purgeoldextracts ./dirdat/*, minkeepdays 2, usecheckpoints
##view report
understand mgr parameter lagreportmin laginfo min lagcriticalmin
b) Configuration of Change Capture using Golden Gate
SQL> l
1* select * from dba_log_groups where owner='SCOTT'
SQL> /
OBJECT_ID
----------
87108
extract ext01
userid gguser@ggsrc,password oracle
discardfile ./dirrpt/ext01.dsc,purge
reportcount every 15 minutes, rate
rmthost myserver, mgrport 7880
rmttrail /disk2/ogg/12.2c11/dirdat/ggsrc/rep01/rt
table scott.emp;
replicat REP01
userid gguser@dev,password oracle
Replication using Two Separate Extract Processes for Capture and Data Pump
(Classic)
extract ext1
userid gguser@dev,password oracle
exttrail ./dirdat/ext1/et
table scott.emp;
extract pext1
rmthost myserver, mgrport 7880
rmttrail ./dirdat/rep1/rt
table scott.emp;
replicat REP1
userid gguser@dev,password oracle
DISCARDFILE ./dirout/rep1.dsc, APPEND
handlecollisions
map scott.emp,target gg_trc.emp;
(Integrated)
2018-11-23 11:47:18 INFO OGG-02003 Extract EXTINT successfully registered with database at
SCN 1084319.
EXTRACT extint
userid gguser@ggsrc,password oracle
TRANLOGOPTIONS INTEGRATEDPARAMS (max_sga_size 200, parallelism 2)
EXTTRAIL ./dirdat/extint/et
TABLE src.team;
2018-11-23 11:57:45 ERROR OGG-02912 Patch 17030189 is required on your Oracle mining
database for trail format RELEASE 12.2 or later.
OGG-02912 Patch 17030189 is required on your Oracle mining database for trail format RELEASE
12.2 or later (Doc ID 2304095.1)
[oracle@OGGR2-1 ogg]$ ls -lrt prvtlmpg.plb
-rw-r----- 1 oracle oinstall 9487 May 27 2015 prvtlmpg.plb
Integrated Replicat:
REPLICAT rint
userid gguser@dev,password oracle
DISCARDFILE ./dirout/rint.dsc, APPEND
DBOPTIONS INTEGRATEDPARAMS(parallelism 6)
MAP src.team, TARGET scott.team;
SQL> l
1* select * from DBA_GOLDENGATE_INBOUND
REPLICAT_N SERVER_NAM APPLY_US USER_COMME CREATE_DATE STATUS
---------- ---------- -------- ---------- ---------------------------------------- ----------
RINT OGG$RINT GGUSER RINT 07-JAN-19 01.00.52.592663 PM DISABLED
SQL>
./ggsci
EDIT PARAMS EGGTEST1
EXTRACT EGGTEST1
USERID GGATE_ADMIN@DBORATEST, PASSWORD
AADAAAAAAAAAAAFAQCFIIDLCUELFNFECLITBSCAHYBBHHEUGKDNICDCCDCFELJDJFFEAUHUBFGWIUJ
GCAJJDNDPDZEOHGILBIIWCUIBHHGPBKBHB, AES256, ENCRYPTKEY dbkey1
EXTTRAIL /u01/app/ggate/dirdat/st
TRANSLOGOPTIONS DBLOGREADER
TABLE scott.*;
Pre-steps:
Supplemental logging required to be enabled
Adding Regular Extract
Performing Initial load
Starting regular Replicate
1. Heterogeneous Environment:
Here we are using both OGG proprietary Initial load extract and Replicate
extract iext1
userid gguser@ggsrc,password oracle
rmthost myserver, mgrport 7882
rmttask replicat , group irep1
table scott.emp;
ADD EXTRACT iext1, SOURCEISTABLE
replicat irep1
userid gguser@dev,password oracle
Here we are using OGG proprietary Initial Load Extract and Classic Replicate
extract iext
userid gguser@ggsrc,password oracle
rmthost myserver, mgrport 7882
rmtfile ./dirdat/iext/i1
table scott.emp
replicat irep
userid gguser@dev,password oracle
1. Homogeneous Environment:
Export parfile:
userid='/ as sysdba'
DIRECTORY=DIR
dumpfile=SCOTT_EMP.dmp
logfile=exp_SCOTT_EMP.log
content=data_only
flashback_scn=1305005
tables=scott.emp
import parfile:
userid='/ as sysdba'
DIRECTORY=DIR
dumpfile=SCOTT_EMP.dmp
logfile=imp_SCOTT_EMP.log
remap_table=emp:emp2
tables=scott.emp
Defgen :
required prior to 12.2
DEFSFILE ./dirdef/Defgen_File.def,PURGE
userid gguser@ggsrc,password oracle
table scott.emp;
table scott.emp3;
table scott.emp4;
In replicate end:
Sourcedefs ./dirdef/Defgen_File.def
extract ext03
userid gguser@ggsrc,password oracle
discardfile ./dirrpt/ext03.dsc,purge
exttrail ./dirdat/ext03/e1
table scott.emp;
table scott.emp3;
table scott.emp4;
extract ext03a
userid gguser@ggsrc,password oracle
discardfile ./dirrpt/ext03a.dsc,purge
exttrail ./dirdat/ext03a/e1
table scott.emp3;
table scott.emp4;
Manager parameters
port 7811
autostart ER*
autorestart ER * , retries 12, waitminutes 5, resetminutes 60
purgeoldextracts ./dirdat/*/*, usecheckpoints, minkeepfiles 10, frequencyminutes 15
purgeoldextracts ./dirdat/*/*/*, USECHECKPOINTS, MINKEEPFILES 10, FREQUENCYMINUTES
15
LAGCRITICALMINUTES 61
LAGREPORTMINUTES 60
LAGINFOMINUTES 0