2026-05-08 18:26:57
This commit is contained in:
Vendored
BIN
Binary file not shown.
@@ -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.
|
||||||
|
|
||||||
Reference in New Issue
Block a user