Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Golden Gate Installation:

Below are DB information:

SQL> select name from v$database;

NAME
---------
GGSRC

SQL> select SUPPLEMENTAL_LOG_DATA_MIN from v$database;

SUPPLEME
--------
NO

SQL> archive log list


Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 1
Next log sequence to archive 3
Current log sequence 3
SQL>

Pre Installation

The below task are requried to be completed both in source and target Database prior starting
GoldenGate Installation

 Enabling Supplemental Logging and Force Logging:

It tells database to log more (supplemental logging ~10% of more redo writing) on source side.
alter database add supplemental log data;
alter database force logging;
alter system switch logfile;

 Ensure database in archivelog mode

 Creating dedicated tablespace for OGG:

create tablespace OGG_TBS datafile '/disk1/ggsrc/ogg_tbs_01.dbf' size 100M;

 Creating GG user and privileges

create user gguser identified by oracle


default tablespace OGG_TBS
temporary tablespace temp;

 System Privileges for GG User

Grant unlimited tablespace to gguser;


grant select any dictionary to gguser;
grant flashback any table to gguser;
grant select on dba_clusters to gguser;
grant execute on dbms_flashback to gguser;
grant dba to gguser;
exec dbms_goldengate_auth.grant_admin_privilege('GGUSER');

Basically we need to ensure below privileges for OGG database user.


CREATE SESSION
ALTER SESSION
RESOURCE
CONNECT
SELECT ANY DICTIONARY
FLASHBACK ANY TABLE OR FLASHBACK ON <TABLENAME>
SELECT ANY TABLE
INSERT,UPDATE,DELETE ON <TABLENAME> --ONLY FOR REPLICATE
EXECUTE ON DBMS_FLASHBACK
SELECT ANY TRANSACTION
exec dbms_goldengate_auth.grant_admin_privilege('GGUSER');

Also we need below from 11.2.0.4


ENABLE_GOLDENGATE_REPLICATION=TRUE

 Below required for integrated Capture

Grant INSERT into logmnr_restart_ckpt$.


grant insert on system.logmnr_restart_ckpt$ to gguser;

Grant UPDATE on streams$_capture_process.


grant update on sys.streams$_capture_process to gguser;

Grant the 'become user' privilege.


grant become user to gguser;

On how to perform GoldenGate installation can be seen in the session

You might also like