Professional Documents
Culture Documents
Prepare database
(V 1.0)
SARAVANAKUMAR K
Oracle GoldenGate installation document
On both the source and target databases, ensure that the Enable_GoldenGate_Replication parameter
is set to TRUE. This parameter allows GoldenGate to function.
Login into database as sys privs:
SQL> alter system set enable_goldengate_replication=TRUE; -- [sid=‘*’]
Create a global user with the prefix "C##" to facilitate cross-container data access in Oracle
Database 12c and higher version. In non-container you can create as per your naming standard. In
general, it is recommended to user either ggate or ggadmin and container environment it must be
prefix with c##.
For creating new database user for goldengate, we need tablespace. So firstly we need to create
tablespace, this tablespace shout present in all pluggable. After that user have to on container, if you
have container and pluggable environment. Therefore ggadmin user going to create on container
database.
snip
On both the source and target databases, grant the DBA (Database Administrator) role to the global
user. This role provides the necessary privileges for GoldenGate.
SQL> grant dba to C##GGADMIN container=all;
2|Pa ge
Oracle GoldenGate installation document
SQL>exec dbms_goldengate_auth.grant_admin_privilege
('C##GGADMIN',container=>'all');
Enable supplemental logging to capture additional data required for GoldenGate, such as column data
changes and unique key information.
Ensure that the source database is operating in Archive Log mode. This mode is essential for
maintaining a complete and recoverable record of database changes.
Our current database is NOARCHIVELOG mode, so we need to change. For change it, we need to
bounce the db.
3|Pa ge
Oracle GoldenGate installation document
By following these steps on both the source and target databases, you will establish the necessary
prerequisites for Oracle GoldenGate replication to work effectively, allowing you to replicate data between
the two databases.
4|Pa ge