2026-05-03 18:01:35

This commit is contained in:
2026-05-03 20:01:35 +02:00
parent db02b11ba4
commit d7b231c4dd
+30 -26
View File
@@ -13,39 +13,43 @@ Databases:
In **both** databases, create Golden Gate admin user in `CDB$ROOT`: In **both** databases, create Golden Gate admin user in `CDB$ROOT`:
create user c##oggadmin identified by "Secret00!"; ```sql
alter user c##oggadmin quota unlimited on USERS; create user c##oggadmin identified by "Secret00!";
grant create session, connect,resource,alter system, select any dictionary, flashback any table to c##oggadmin container=all; alter user c##oggadmin quota unlimited on USERS;
exec dbms_goldengate_auth.grant_admin_privilege(grantee => 'c##oggadmin',container=>'all'); grant create session, connect,resource,alter system, select any dictionary, flashback any table to c##oggadmin container=all;
alter user c##oggadmin set container_data=all container=current; exec dbms_goldengate_auth.grant_admin_privilege(grantee => 'c##oggadmin',container=>'all');
grant alter any table to c##oggadmin container=ALL; alter user c##oggadmin set container_data=all container=current;
alter system set enable_goldengate_replication=true scope=both; grant alter any table to c##oggadmin container=ALL;
alter database force logging; alter system set enable_goldengate_replication=true scope=both;
alter database add supplemental log data; alter database force logging;
select supplemental_log_data_min, force_logging from v$database; 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: > On **target** database I had to add extra grants:
grant select any table to c##oggadmin container=ALL; ```sql
grant insert any table to c##oggadmin container=ALL; grant select any table to c##oggadmin container=ALL;
grant update any table to c##oggadmin container=ALL; grant insert any table to c##oggadmin container=ALL;
grant delete 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: Create schemas for replicated tables on source and target PDB:
alter session set container=EREP; ```sql
create user R2D2 identified by "Secret00!"; alter session set container=EREP;
alter user R2D2 quota unlimited on USERS; create user R2D2 identified by "Secret00!";
grant connect,resource to R2D2; alter user R2D2 quota unlimited on USERS;
connect R2D2/"Secret00!"@togoria/EREP; grant connect,resource to R2D2;
connect R2D2/"Secret00!"@togoria/EREP;
alter session set container=GERISS; alter session set container=GERISS;
create user C3PO identified by "Secret00!"; create user C3PO identified by "Secret00!";
alter user C3PO quota unlimited on USERS; alter user C3PO quota unlimited on USERS;
grant connect,resource to C3PO; grant connect,resource to C3PO;
connect C3PO/"Secret00!"@wayland/GERISS; connect C3PO/"Secret00!"@wayland/GERISS;
```
For both Golden Gate hosts (`exegol` and `helska`) `depl26ai` the password of Service Manager administrator has been defined: For both Golden Gate hosts (`exegol` and `helska`) `depl26ai` the password of Service Manager administrator has been defined:
- username: `oggadmin` - username: `oggadmin`