2026-05-03 07:16:04

This commit is contained in:
2026-05-03 09:16:04 +02:00
parent 9297a0dade
commit 4d0f514fda
+38 -38
View File
@@ -6,8 +6,8 @@ http://blog.data-alchemy.org/posts/oracle-goldengate-pluggable/
## Topology ## Topology
Databases: Databases:
- source: CDB: JEDIPRD@wayland, PDB: YODA - source: CDB: NABOOPRD@wayland, PDB: EREP
- target: CDB: SITHPRD@togoria, PDB: MAUL - target: CDB: GENOSISPRD@togoria, PDB: GERISS
## Databases setup for Golden Gate ## 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: Create schemas for replicated tables on source and target PDB:
alter session set container=YODA; alter session set container=EREP;
create user GREEN identified by "Secret00!"; create user R2D2 identified by "Secret00!";
alter user GREEN quota unlimited on USERS; alter user R2D2 quota unlimited on USERS;
grant connect,resource to GREEN; grant connect,resource to R2D2;
connect GREEN/"Secret00!"@wayland/YODA; connect R2D2/"Secret00!"@wayland/EREP;
alter session set container=MAUL; alter session set container=GERISS;
create user RED identified by "Secret00!"; create user C3PO identified by "Secret00!";
alter user RED quota unlimited on USERS; alter user C3PO quota unlimited on USERS;
grant connect,resource to RED; grant connect,resource to C3PO;
connect RED/"Secret00!"@togoria/MAUL; connect C3PO/"Secret00!"@togoria/GERISS;
## Setup `exegol` Golden Gate deployment ## 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 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 adminclient
connect https://exegol.swgalaxy:2000 deployment ogg_exegol_deploy as OGGADMIN password "Secret00!" 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: Now we can hide the password when conecting to deployement:
connect https://exegol.swgalaxy:2000 deployment ogg_exegol_deploy as admin 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 create wallet
add credentialstore add cC3POentialstore
alter credentialstore add user c##oggadmin@wayland/JEDIPRD password "Secret00!" alias JEDIPRD alter cC3POentialstore add user c##oggadmin@wayland/NABOOPRD password "Secret00!" alias NABOOPRD
alter credentialstore add user c##oggadmin@wayland/YODA password "Secret00!" alias YODA alter cC3POentialstore add user c##oggadmin@wayland/EREP password "Secret00!" alias EREP
info credentialstore info cC3POentialstore
Test database connections: Test database connections:
dblogin useridalias JEDIPRD dblogin useridalias NABOOPRD
dblogin useridalias YODA 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. > IMPORTANT: in a database **MULTITENANT** architecture, Golden Gate is working at `CDB$ROOT` level.
Create the checkpoint table: Create the checkpoint table:
dblogin useridalias JEDIPRD dblogin useridalias NABOOPRD
add checkpointtable YODA.c##oggadmin.checkpt add checkpointtable EREP.c##oggadmin.checkpt
Set **global** parameters: Set **global** parameters:
@@ -98,7 +98,7 @@ Set **global** parameters:
Put: Put:
ggschema c##oggadmin ggschema c##oggadmin
checkpointtable YODA.c##oggadmin.checkpt checkpointtable EREP.c##oggadmin.checkpt
## Setup `helska` Golden Gate deployment ## Setup `helska` Golden Gate deployment
@@ -106,29 +106,29 @@ Put:
adminclient adminclient
connect https://helska.swgalaxy:2000 deployment ogg_helska_deploy as OGGADMIN password "Secret00!" 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: Now we can hide the password when conecting to deployement:
connect https://helska.swgalaxy:2000 deployment ogg_helska_deploy as admin 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 cC3POentialstore add user c##oggadmin@togoria/GENOSISPRD password "Secret00!" alias GENOSISPRD
alter credentialstore add user c##oggadmin@togoria/MAUL password "Secret00!" alias MAUL alter cC3POentialstore add user c##oggadmin@togoria/GERISS password "Secret00!" alias GERISS
info credentialstore info cC3POentialstore
Test database connections: Test database connections:
dblogin useridalias SITHPRD dblogin useridalias GENOSISPRD
dblogin useridalias MAUL dblogin useridalias GERISS
Create the checkpoint table: Create the checkpoint table:
dblogin useridalias SITHPRD dblogin useridalias GENOSISPRD
add checkpointtable MAUL.c##oggadmin.checkpt add checkpointtable GERISS.c##oggadmin.checkpt
Set **global** parameters: Set **global** parameters:
@@ -137,5 +137,5 @@ Set **global** parameters:
Put: Put:
ggschema c##oggadmin ggschema c##oggadmin
checkpointtable MAUL.c##oggadmin.checkpt checkpointtable GERISS.c##oggadmin.checkpt