2026-05-03 07:16:04
This commit is contained in:
+38
-38
@@ -6,8 +6,8 @@ http://blog.data-alchemy.org/posts/oracle-goldengate-pluggable/
|
||||
## Topology
|
||||
|
||||
Databases:
|
||||
- source: CDB: JEDIPRD@wayland, PDB: YODA
|
||||
- target: CDB: SITHPRD@togoria, PDB: MAUL
|
||||
- source: CDB: NABOOPRD@wayland, PDB: EREP
|
||||
- target: CDB: GENOSISPRD@togoria, PDB: GERISS
|
||||
|
||||
## Databases setup for Golden Gate
|
||||
|
||||
@@ -33,18 +33,18 @@ In **both** databases, create Golden Gate admin user in `CDB$ROOT`:
|
||||
|
||||
Create schemas for replicated tables on source and target PDB:
|
||||
|
||||
alter session set container=YODA;
|
||||
create user GREEN identified by "Secret00!";
|
||||
alter user GREEN quota unlimited on USERS;
|
||||
grant connect,resource to GREEN;
|
||||
connect GREEN/"Secret00!"@wayland/YODA;
|
||||
alter session set container=EREP;
|
||||
create user R2D2 identified by "Secret00!";
|
||||
alter user R2D2 quota unlimited on USERS;
|
||||
grant connect,resource to R2D2;
|
||||
connect R2D2/"Secret00!"@wayland/EREP;
|
||||
|
||||
|
||||
alter session set container=MAUL;
|
||||
create user RED identified by "Secret00!";
|
||||
alter user RED quota unlimited on USERS;
|
||||
grant connect,resource to RED;
|
||||
connect RED/"Secret00!"@togoria/MAUL;
|
||||
alter session set container=GERISS;
|
||||
create user C3PO identified by "Secret00!";
|
||||
alter user C3PO quota unlimited on USERS;
|
||||
grant connect,resource to C3PO;
|
||||
connect C3PO/"Secret00!"@togoria/GERISS;
|
||||
|
||||
## Setup `exegol` Golden Gate deployment
|
||||
|
||||
@@ -54,42 +54,42 @@ Solution: define `OGG_CLIENT_TLS_CAPATH` environement variable to my root CA cer
|
||||
|
||||
export OGG_CLIENT_TLS_CAPATH=/etc/pki/ca-trust/source/anchors/rootCA.pem
|
||||
|
||||
Add in the credentialstore enteries for database connections:
|
||||
Add in the cC3POentialstore enteries for database connections:
|
||||
|
||||
adminclient
|
||||
connect https://exegol.swgalaxy:2000 deployment ogg_exegol_deploy as OGGADMIN password "Secret00!"
|
||||
|
||||
Optionaly store credentials to connect to deployement:
|
||||
Optionaly store cC3POentials to connect to deployement:
|
||||
|
||||
add credentials admin user OGGADMIN password "Secret00!"
|
||||
add cC3POentials admin user OGGADMIN password "Secret00!"
|
||||
|
||||
Now we can hide the password when conecting to deployement:
|
||||
|
||||
connect https://exegol.swgalaxy:2000 deployment ogg_exegol_deploy as admin
|
||||
|
||||
Add in the credentialstore enteries for database connections:
|
||||
Add in the cC3POentialstore enteries for database connections:
|
||||
|
||||
create wallet
|
||||
add credentialstore
|
||||
alter credentialstore add user c##oggadmin@wayland/JEDIPRD password "Secret00!" alias JEDIPRD
|
||||
alter credentialstore add user c##oggadmin@wayland/YODA password "Secret00!" alias YODA
|
||||
info credentialstore
|
||||
add cC3POentialstore
|
||||
alter cC3POentialstore add user c##oggadmin@wayland/NABOOPRD password "Secret00!" alias NABOOPRD
|
||||
alter cC3POentialstore add user c##oggadmin@wayland/EREP password "Secret00!" alias EREP
|
||||
info cC3POentialstore
|
||||
|
||||
Test database connections:
|
||||
|
||||
dblogin useridalias JEDIPRD
|
||||
dblogin useridalias YODA
|
||||
dblogin useridalias NABOOPRD
|
||||
dblogin useridalias EREP
|
||||
|
||||
To delete a user from credential store:
|
||||
To delete a user from cC3POential store:
|
||||
|
||||
alter credentialstore delete user JEDIPRD
|
||||
alter cC3POentialstore delete user NABOOPRD
|
||||
|
||||
> IMPORTANT: in a database **MULTITENANT** architecture, Golden Gate is working at `CDB$ROOT` level.
|
||||
|
||||
Create the checkpoint table:
|
||||
|
||||
dblogin useridalias JEDIPRD
|
||||
add checkpointtable YODA.c##oggadmin.checkpt
|
||||
dblogin useridalias NABOOPRD
|
||||
add checkpointtable EREP.c##oggadmin.checkpt
|
||||
|
||||
Set **global** parameters:
|
||||
|
||||
@@ -98,7 +98,7 @@ Set **global** parameters:
|
||||
Put:
|
||||
|
||||
ggschema c##oggadmin
|
||||
checkpointtable YODA.c##oggadmin.checkpt
|
||||
checkpointtable EREP.c##oggadmin.checkpt
|
||||
|
||||
|
||||
## Setup `helska` Golden Gate deployment
|
||||
@@ -106,29 +106,29 @@ Put:
|
||||
adminclient
|
||||
connect https://helska.swgalaxy:2000 deployment ogg_helska_deploy as OGGADMIN password "Secret00!"
|
||||
|
||||
Optionaly store credentials to connect to deployement:
|
||||
Optionaly store cC3POentials to connect to deployement:
|
||||
|
||||
add credentials admin user OGGADMIN password "Secret00!"
|
||||
add cC3POentials admin user OGGADMIN password "Secret00!"
|
||||
|
||||
Now we can hide the password when conecting to deployement:
|
||||
|
||||
connect https://helska.swgalaxy:2000 deployment ogg_helska_deploy as admin
|
||||
|
||||
Add in the credentialstore enteries for database connections:
|
||||
Add in the cC3POentialstore enteries for database connections:
|
||||
|
||||
alter credentialstore add user c##oggadmin@togoria/SITHPRD password "Secret00!" alias SITHPRD
|
||||
alter credentialstore add user c##oggadmin@togoria/MAUL password "Secret00!" alias MAUL
|
||||
info credentialstore
|
||||
alter cC3POentialstore add user c##oggadmin@togoria/GENOSISPRD password "Secret00!" alias GENOSISPRD
|
||||
alter cC3POentialstore add user c##oggadmin@togoria/GERISS password "Secret00!" alias GERISS
|
||||
info cC3POentialstore
|
||||
|
||||
Test database connections:
|
||||
|
||||
dblogin useridalias SITHPRD
|
||||
dblogin useridalias MAUL
|
||||
dblogin useridalias GENOSISPRD
|
||||
dblogin useridalias GERISS
|
||||
|
||||
Create the checkpoint table:
|
||||
|
||||
dblogin useridalias SITHPRD
|
||||
add checkpointtable MAUL.c##oggadmin.checkpt
|
||||
dblogin useridalias GENOSISPRD
|
||||
add checkpointtable GERISS.c##oggadmin.checkpt
|
||||
|
||||
Set **global** parameters:
|
||||
|
||||
@@ -137,5 +137,5 @@ Set **global** parameters:
|
||||
Put:
|
||||
|
||||
ggschema c##oggadmin
|
||||
checkpointtable MAUL.c##oggadmin.checkpt
|
||||
checkpointtable GERISS.c##oggadmin.checkpt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user