diff --git a/Golden_Gate/setup.md b/Golden_Gate/setup.md index 21f6d33..0d9113d 100644 --- a/Golden_Gate/setup.md +++ b/Golden_Gate/setup.md @@ -13,39 +13,43 @@ Databases: In **both** databases, create Golden Gate admin user in `CDB$ROOT`: - create user c##oggadmin identified by "Secret00!"; - alter user c##oggadmin quota unlimited on USERS; - grant create session, connect,resource,alter system, select any dictionary, flashback any table to c##oggadmin container=all; - exec dbms_goldengate_auth.grant_admin_privilege(grantee => 'c##oggadmin',container=>'all'); - alter user c##oggadmin set container_data=all container=current; - grant alter any table to c##oggadmin container=ALL; - alter system set enable_goldengate_replication=true scope=both; - alter database force logging; - alter database add supplemental log data; - select supplemental_log_data_min, force_logging from v$database; +```sql +create user c##oggadmin identified by "Secret00!"; +alter user c##oggadmin quota unlimited on USERS; +grant create session, connect,resource,alter system, select any dictionary, flashback any table to c##oggadmin container=all; +exec dbms_goldengate_auth.grant_admin_privilege(grantee => 'c##oggadmin',container=>'all'); +alter user c##oggadmin set container_data=all container=current; +grant alter any table to c##oggadmin container=ALL; +alter system set enable_goldengate_replication=true scope=both; +alter database force logging; +alter database add supplemental log data; +select supplemental_log_data_min, force_logging from v$database; +``` > On **target** database I had to add extra grants: - grant select any table to c##oggadmin container=ALL; - grant insert any table to c##oggadmin container=ALL; - grant update any table to c##oggadmin container=ALL; - grant delete any table to c##oggadmin container=ALL; - +```sql +grant select any table to c##oggadmin container=ALL; +grant insert any table to c##oggadmin container=ALL; +grant update any table to c##oggadmin container=ALL; +grant delete any table to c##oggadmin container=ALL; +``` Create schemas for replicated tables on source and target PDB: - 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!"@togoria/EREP; +```sql +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!"@togoria/EREP; - 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!"@wayland/GERISS; - +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!"@wayland/GERISS; +``` For both Golden Gate hosts (`exegol` and `helska`) `depl26ai` the password of Service Manager administrator has been defined: - username: `oggadmin`