diff --git a/Golden_Gate/.DS_Store b/Golden_Gate/.DS_Store index 2cdbf5e..5bc7b76 100644 Binary files a/Golden_Gate/.DS_Store and b/Golden_Gate/.DS_Store differ diff --git a/Golden_Gate/example_02/setup_extract_pump_replicat_01.md b/Golden_Gate/example_02/setup_extract_pump_replicat_01.md new file mode 100644 index 0000000..baf5dc9 --- /dev/null +++ b/Golden_Gate/example_02/setup_extract_pump_replicat_01.md @@ -0,0 +1,89 @@ +Create table on source and target: +```sql +create table R2D2.T1 (id INTEGER, d DATE); +alter table R2D2.T1 add constraint T1PK primary key (id); + +create table C3PO.T1 (id INTEGER, d DATE); +alter table C3PO.T1 add constraint T1PK primary key (id); +``` + +On source OGG site create extract: + +``` +dblogin useridalias EREP +list tables R2D2.* +add trandata R2D2.T1 +-- delete trandata R2D2.T1 +edit params EXTRAA +``` + +Define extract paramfile: +``` +extract EXTRAA +useridalias NABOOPRD +sourcecatalog EREP +exttrail ./dirdat/aa +purgeoldextracts +checkpointsecs 1 +ddl include mapped +warnlongtrans 1h, checkinterval 30m +------------------------------------ +table R2D2.T1; +``` + +Add, register and start extract: + +``` +dblogin useridalias NABOOPRD +add extract EXTRAA, integrated tranlog, begin now +add exttrail ./dirdat/aa, extract EXTRAA +register extract EXTRAA, database container (EREP) +start extract EXTRAA +info extract EXTRAA detail +``` + +For PUMP process I did all from OGG GUI: +- on SOURCE and TARGET site, define an OPERATOR user in the **deployement**, NOT in Sevice Manager +- on SOURCE site define a PATH CONECTION alias using the previousely defined OPERATOR user +- on source site create the distribution PATH authentification type `wss` authentification type `OGG`, target receiver service (good host and port), user alias from PATH CONECTION + + +If not already done: +``` +edit GLOBALS +``` + +and put: +``` +ggschema c##oggadmin +checkpointtable c##oggadmin.checkpt +``` + +Replicat creation: +``` +edit params REPLAA +``` + +Define replicat paramfile: +``` +replicat REPLAA +useridalias GERISS +dboptions enable_instantiation_filtering +discardfile REPLAA.dsc, purge, megabytes 10 + +map EREP.R2D2.T1, target GERISS.C3PO.T1; +``` + +``` +dblogin useridalias GENOSISPRD +add checkpointtable GERISS.c##oggadmin.checkpt +add replicat REPLAA, integrated, exttrail ./dirdat/aa +start replicat REPLAA +info replicat REPLAA +``` + + + + +> Traifiles contain only commited transaction. +