Professional Documents
Culture Documents
Golden Gate Installation Guide
Golden Gate Installation Guide
Golden Gate Installation Guide
Page 1 of 15
Page 2 of 15
Page 3 of 15
Change History
Release
Date
Author
0.1
21-July-2010
Agilan Palani
Draft Version
0.2
28-July-2010
Again Palani
0.3
30-July-2010
Agilan Palani
2.0
18-Aug-2010
Agilan Palani
3.2
20-Aug-2010
Agilan Palani
3.3
22-Nov-2011
Anh Vu
Role
Name
Page 4 of 15
CONTENTS
1.
INTRODUCTION..................................................................................................................................................4
1.1
1.2
1.3
1.4
2.
INSTRUCTIONS....................................................................................................................................................5
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
2.13
3.
PURPOSE...........................................................................................................................................................4
INTENDED AUDIENCE.......................................................................................................................................4
SCOPE...............................................................................................................................................................4
REFERENCES.....................................................................................................................................................4
DOWNLOAD......................................................................................................................................................5
SOURCE [CAAA DATA BASE SERVER] - UNIX REQUIREMENTS/SETUP...........................................................5
UNIX USERS GGATE & GGDBA SETUP..............................................................................................................6
TARGET [FX4CASH DATABASE SERVER] UNIX REQUIREMENTS/SETUP.......................................................7
MONITORING REQUIREMENT (BOTH IN SOURCE AND TARGET)......................................................................7
SOURCE [CAAA DATABASE] DATABASE REQUIREMENTS..............................................................................8
TARGET [ FX4CASH DATABASE ] DATABASE REQUIREMENTS.......................................................................8
SOURCE & TARGET - ORACLE CLIENT INSTALLATION....................................................................................8
SOURCE & TARGET - DISK SPACE REQUIREMENTS.........................................................................................9
SOURCE & TARGET - MEMORY REQUIREMENTS.............................................................................................9
DATABASE SETUP SOURCE[CAAA] ON-BOARDING.................................................................................10
DATABASE SETUP - TARGET [FX4CASH] FX4CASH......................................................................................11
INSTALLING GOLDEN GATE SOURCE & TARGET........................................................................................12
APPENDIX...........................................................................................................................................................13
3.1
Page 5 of 15
1. INTRODUCTION
1.1 Purpose
The purpose of this document is to detail the steps involved in installation the golden gate for
On-boarding application
Infrastructure Team
DBA Team
Relevant Stakeholders of the project
1.3 Scope
Golden gate is a tool, which replicates the data & DDL from one database to another
database. This document explains the steps involved in installation of golden gate for Onboarding application acting as source and the first target application as FX4CASH.
1.4 References
Golden gate Installtion Guide: gg_ora_inst_v104.pdf
Page 6 of 15
2. INSTRUCTIONS
2.1 Download
For Oracle 10G
Download the goldgate software from the below URL Oracle 10.0.4.0 & Sun Spark
Solaris 10 64 bit. The goldengate version is 10.4.0.19
http://www.oracle.com/technology/software/products/goldengate/index.html
Accept the OTN license.
Download the following.
Oracle GoldenGate v10.4.0.x for Oracle 10g 64bit on Solaris 10 (53 MB)
Solaris-V18148-01.zip
Requirements
Comments
ggate
uid=1727(ggate) gid=2040(ggate)
ggdba
uid=2184(ggdba) gid=1279(gguser),
ggdba account.
ggdba is a special account that
Page 7 of 15
Make sure that the oracle sqlplus client is installed. Sqlplus client should NOT be the instant
sql plus client it should be the standard full Sqlplus client
Open the port 8907
GG_HOME=$GG_INSTANCE_ROOT/$GG_INS
export $GG_HOME
Page 8 of 15
3.
ggdba unix id should used to start the Golden Gate Manager. It has to be done
by performing UNIX SUDO from ggate id. Do the necessary set up for this using the
following instructions
a. Create the startmgr file with the following content content to start the
Golden Gate Manager Process
Ggdba> /export/home/ggdba/startmgr.sh
startmanager.txt
4. Using ggate user, the startmanager script is executed using sudo to ggdba
a. Make sure that ggdba user is part of the ggate user group
uid=2184(ggdba) gid=1279(gguser)
Page 9 of 15
b. If the manager is already running you will get the following message in the
strmgr.log file
Oracle GoldenGate Command Interpreter for Oracle Version 10.4.0.19
Build 002 Solaris, sparc, 64bit (optimized), Oracle 10 on Sep 23 2009
15:19:42 Copyright (C) 1995, 2009, Oracle and/or its affiliates. All
rights reserved. GGSCI (dbdid4z1) 1> MGR is already running. GGSCI
(dbdid4z1) 2>
e. Grep for the MGR is already running in the log, if the grepped text is found do
nothing. If the grepped text is NOT found, send an email to the support with
the following message.
To: <to_list>
Subject: Goldengate Notification: user@hostname
Body:
Date: <date & time>
HostName: <hostname>
Goldengate Manager was down. It is started now.
Golden gate home: $GG_HOME
Note: You can get the host, port & pid from
$GG_HOME/dirpcs/MGR.pcm file
Sample File with above logic is attached below
cron-mon-mgr.sh.txt
Page 10 of 15
2.10
The following are the Memory Requirements for Installation of GoldenGate Software:
Each Extract/Replicat process needs approximately 25-55 MB of memory, or
more depending on the size of the transactions and the number of concurrent
transactions. To start with the Source has 2 extract processes and the target
has 1 replicat processes. So 100 MB on source and 50 MB on the target
Page 11 of 15
Page 12 of 15
2.12
(OR)
ii. If select any dictionary is not possible. Grant select on the
Golden Gate required dictionary tables specified in the Appendix
3.1
d. Grant privileges to the GGATE_ACCESS_ROLE
GRANT SELECT,insert,delete,update ON <GES_OWNER.GC_* tables> TO
GGATE_ACCESS_ROLE
GRANT SELECT,insert,delete,update ON <GES_OWNER.GR_* tables> TO
GGATE_ACCESS_ROLE
GRANT SELECT,insert,delete,update ON <GES_OWNER.branch> TO
GGATE_ACCESS_ROLE
GRANT select on <GES_OWNER.GR_* sequences> TO GGATE_ACCESS_ROLE
GRANT execute on <GES_OWNER.GR_* packages> TO GGATE_ACCESS_ROLE
e. Grant read/write access to the check point table created in the GES_OWNER
schema (NOTE: Check point table will be available only after the activity
in the section 2.11 and point 6 is completed)
GRANT SELECT,INSERT,UPDATE,DELETE ON GES_OWNER.GR_CHKPOINT TO
GGATE_ACCESS_ROLE
f. Grant the role to the GGATE
GRANT GGATE_ACCESS_ROLE to GGATE
6. Create the schema Fx4Cash_USER/Fx4Cash_READ and setup as per instructions from
Fx4Cash. Grant the following privileges.
select
select
select
select
on
on
on
on
Page 13 of 15
1. FTP the zip file, which is provided by oracle or downloaded from oracle website to the
source/target environment. Extract the Zip file. Inside the Zip the file, you will find a
tar file for solaris installation.
2. Extract the contents of the tar file under $GG_HOME directory.
3. From the GoldenGate home directory, run the GGSCI program.
./ggsci
4. In GGSCI, issue the following command to create the GoldenGate working directories.
GGSCI> CREATE SUBDIRS
5. Configure manager to add port.
GGSCI> EDIT PARAMS MGR
This will create a new mgr.prm file in the dirprm directory. Type the following
contents, and save the file.
On the Source Side
PORT 7809
DOWNREPORTMINUTES 1
LAGREPORTMINUTES 1
PURGEOLDEXTRACTS dirdat/fs*, MINKEEPFILES 10
On the Target Side
PORT 7809
DOWNREPORTMINUTES 1
LAGREPORTMINUTES 1
PURGEOLDEXTRACTS dirdat/fs*, MINKEEPFILES 10
6. Add Checkpoint table : Perform this step ONLY in the Target (fx4cash)
Page 14 of 15
Program
MANAGER
Status
RUNNING
Group
Lag
3. APPENDIX
3.1 List of dictionary tables which Golden gate requires select access
v$database
v$parameter
v$instance
v$database_incarnation
v$log
v$archive_dest
v$logfile
gv$database
gv$parameter
gv$instance
gv$database_incarnation
gv$log
gv$archive_dest
gv$logfile
dba_objects
dba_constraints
dba_tablespaces
dba_tab_partitions
dba_log_groups
all_users
all_tables
all_log_group_columns
all_cons_columns
seg$
tab$
props$
obj$
user$
tab$
col$
cdef$
con$
Page 15 of 15