SlideShare a Scribd company logo
Schema Replication using Oracle Golden gate 12c (Installation
& Configuration)
Index:
1. Introduction
2. System Configuration Description
3. Architecture
4. Parameter Change:
4a. Enable Supplemental log both source and target.
4b.Acrhivelog enable and enable_goldengate_replication
4c. Schema and Tablespace creation
5. Golden gate software install in both source and target system
6. Start Manager in both source and target system
7. Register the Integrated Extract
8. Add the Extract and Data Pump job and edit parameter in Source System
9. Add Replicate job and edit parameter in Target System
10. Start The All Five Job and enjoy the beauty of Golden Gate
Golden Gate is touted by Oracle as its future for data replication. It will slowly phase out Oracle Streams and
will be more closely coupled with Oracle products. Golden Gate is relatively simpler to use and monitor than
Oracle streams. In 12c Oracle stream is totally obsolete.
Below I will demonstrate how to configure ASYNC Schema Replication using oracle Golden Gate 12C in two
different Operating system where source in Window machine and target is Solaris 10.
SID of Source: PDBORCL
SID of Target: PRIPDB
Source Server name: 172.25.200.1
Target Server name: 172.25.200.10
Source Schema name: BASAK
Target Schema name: BASAK
Tables: All tables
Os Version Source: Window 10
Os Version Target: Sun Solaris 10 X-86 Architecture
JOB is running in Both Source and Target System
Source System (Name) Target System (Name)
Manager Manager
Extractor EXT1 Replicate rpe1
Dump EXTDP1
Here is Visible Architecture of Golden Gate 
If above five process is running and configuring correctly then you can see the beauty the Golden gate
Parameter Change
1. Enable Supplemental log data in both Source and target database
2. Enable Archivelog in both Source and Target database
alter database add supplemental log data;
Few Things of Supplemental Log
Database-level supplemental logging must be enabled for any Change Data Capture source database.
Supplemental logging places additional column data into the redo log file whenever an UPDATE
operation is performed. At the least, minimal database-level supplemental logging must be enabled
for any Change Data Capture source database.
Basically Redo log takes information of any change data
2 . Create the tablespace for both databases (source + target) like:
Create tablespace ggate datafile '/export/home/oracle/app/oracle/oradata/ggate01.dbf ' size 1000M
AUTOEXTEND ON NEXT 500K;
3. GoldenGate schema creation into source and target database
Create OGG Extract User
The Extract user for a Multitenant environment must be a common user and must log into the root container.
In the following example, the extract userid is c##gadmin using the password ggadmin. The following
commands are executed in CDB$ROOT.
$(unixserver1) sqlplus / as sysdba
SQL> create user C##GADMIN identified by ggadmin;
User created.
SQL> exec dbms_goldengate_auth.grant_admin_privilege('C##GADMIN',container=>'ALL');
PL/SQL procedure successfully completed.
SQL> grant dba to c##gadmin container=all;
Grant succeeded.
4. Enable this parameter enable_goldengate_replication in both source and target system
Solution:
SQL> ALTER SYSTEM set enable_goldengate_replication=true scope=both;
Install Golden Gate Software in Both Source and Target Database
Install Golden Gate Software (In both Source and Target System)
Step 1: unzip the Golden gate software
Run : /runInstaller
Software location must be where the golden gate software in unzip stage and mention the Manager
Port here it is 7809 in target System in Source using 7777
Schema replication using oracle golden gate 12c
Start the Manager:
Extract process must be set by using root database in 12c you have to create common
user in any other process add you have to login root user
Note: here we are connecting to the pluggable database
GGSCI (DESKTOP-4C3J6DO as C##GADMIN@cdborcl/CDB$ROOT) 19> dblogin userid
C##GADMIN@CDBORCL password ggadmin;
Successfully logged into database CDB$ROOT.
GGSCI (orasql-001-dev.mydomain) 2> ADD SCHEMATRANDATA basak ALLCOLS
2016-08-01 02:26:26 INFO OGG-01788 SCHEMATRANDATA has been added on schema basak.
2016-08-01 02:26:30 INFO OGG-01976 SCHEMATRANDATA for scheduling columns has been added on
schema basak.
2016-08-01 02:26:30 INFO OGG-01977 SCHEMATRANDATA for all columns has been added on schema
basak.
Register the Integrated Extract
Note: here we are connecting to the root container database.
GGSCI (DESKTOP-4C3J6DO as C##GADMIN@cdborcl/CDB$ROOT) 21> REGISTER EXTRACT ext1 DATABASE
CONTAINER (PDBORCL)
2016-08-01 02:53:28 INFO OGG-02003 Extract EXT1 successfully registered with database at SCN
3795382.
Add the Extract and Data Pump process groups
GGSCI (DESKTOP-4C3J6DO as C##GADMIN@cdborcl/CDB$ROOT) 22> ADD EXTRACT ext1 INTEGRATED
TRANLOG, BEGIN NOW
EXTRACT (Integrated) added.
GGSCI (DESKTOP-4C3J6DO as C##GADMIN@cdborcl/CDB$ROOT) 23> ADD EXTTRAIL ./dirdat/lt EXTRACT
ext1
EXTTRAIL added.
GGSCI (DESKTOP-4C3J6DO as C##GADMIN@cdborcl/CDB$ROOT) 24> ADD EXTRACT extdp1
EXTTRAILSOURCE ./dirdat/lt BEGIN NOW
EXTRACT added.
GGSCI (DESKTOP-4C3J6DO as C##GADMIN@cdborcl/CDB$ROOT) 25> ADD RMTTRAIL ./dirdat/rt EXTRACT
extdp1
RMTTRAIL added.
EXTRACT and DUMP JOB PARAMETER
GGSCI (orasql-001-dev.mydomain) 12> edit params ext1
EXTRACT ext1
SETENV (ORACLE_SID='pdborcl')
USERID C##GADMIN@CDBORCL, PASSWORD ggadmin
LOGALLSUPCOLS
UPDATERECORDFORMAT COMPACT
EXTTRAIL ./dirdat/lt
SOURCECATALOG pdborcl
TABLE basak.*;
GGSCI (orasql-001-dev.mydomain) 12> edit params extdp1
EXTRACT extdp1
SETENV (ORACLE_SID='pdborcl')
USERID C##GADMIN@CDBORCL, PASSWORD ggadmin
RMTHOST 172.25.200.10, MGRPORT 7809
RMTTRAIL ./dirdat/rt
SOURCECATALOG pdborcl
TABLE basak.*;
Add the Replicate process group connected to the target PDB PRIPDB
Note – we are using something new in 12c OGG called Integrated Replicate – we will discuss more about
Integrated Replicates in another post.
GGSCI (SolarisM1) 3> DBLOGIN USERID C##gadmin@PRIPDB, PASSWORD ggadmin
Successfully logged into database PRIPDB.
GGSCI (SolarisM1 as C##gadmin@PriDB/PRIPDB) 4> ADD REPLICAT rep1 INTEGRATED EXTTRAIL
./dirdat/rt
REPLICAT (Integrated) added.
GGSCI (orasql-001-test.mydomain) 5> edit params rep1
REPLICAT rep1
SETENV (ORACLE_SID='pripdb')
DBOPTIONS INTEGRATEDPARAMS(parallelism 6)
USERID C##GADMIN@pripdb, PASSWORD ggadmin
ASSUMETARGETDEFS
MAP pdborcl.basak.*, TARGET pripdb.basak.*
Start All JOB
In Source System:
In target System
Now enjoy the Beauty Of Golden Gate
Ad

More Related Content

What's hot (20)

Sun Oracle Exadata Technical Overview V1
Sun Oracle Exadata Technical Overview V1Sun Oracle Exadata Technical Overview V1
Sun Oracle Exadata Technical Overview V1
jenkin
 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion Edition
Markus Michalewicz
 
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder
 
Data guard oracle
Data guard oracleData guard oracle
Data guard oracle
Antony James Vijay
 
Best Practices for the Most Impactful Oracle Database 18c and 19c Features
Best Practices for the Most Impactful Oracle Database 18c and 19c FeaturesBest Practices for the Most Impactful Oracle Database 18c and 19c Features
Best Practices for the Most Impactful Oracle Database 18c and 19c Features
Markus Michalewicz
 
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
Sandesh Rao
 
Oracle RAC features on Exadata
Oracle RAC features on ExadataOracle RAC features on Exadata
Oracle RAC features on Exadata
Anil Nair
 
Oracle GoldenGate Performance Tuning
Oracle GoldenGate Performance TuningOracle GoldenGate Performance Tuning
Oracle GoldenGate Performance Tuning
Bobby Curtis
 
Tanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools shortTanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools short
Tanel Poder
 
Oracle statistics by example
Oracle statistics by exampleOracle statistics by example
Oracle statistics by example
Mauro Pagano
 
All of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL DeveloperAll of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL Developer
Jeff Smith
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentation
Vimlendu Kumar
 
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contentionTroubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Tanel Poder
 
Make Your Application “Oracle RAC Ready” & Test For It
Make Your Application “Oracle RAC Ready” & Test For ItMake Your Application “Oracle RAC Ready” & Test For It
Make Your Application “Oracle RAC Ready” & Test For It
Markus Michalewicz
 
Oracle Enterprise Manager
Oracle Enterprise ManagerOracle Enterprise Manager
Oracle Enterprise Manager
Bob Rhubart
 
Oracle Database performance tuning using oratop
Oracle Database performance tuning using oratopOracle Database performance tuning using oratop
Oracle Database performance tuning using oratop
Sandesh Rao
 
PostgreSQL Replication High Availability Methods
PostgreSQL Replication High Availability MethodsPostgreSQL Replication High Availability Methods
PostgreSQL Replication High Availability Methods
Mydbops
 
Less06 networking
Less06 networkingLess06 networking
Less06 networking
Amit Bhalla
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
Satishbabu Gunukula
 
Oracle goldengate 11g schema replication from standby database
Oracle goldengate 11g schema replication from standby databaseOracle goldengate 11g schema replication from standby database
Oracle goldengate 11g schema replication from standby database
uzzal basak
 
Sun Oracle Exadata Technical Overview V1
Sun Oracle Exadata Technical Overview V1Sun Oracle Exadata Technical Overview V1
Sun Oracle Exadata Technical Overview V1
jenkin
 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion Edition
Markus Michalewicz
 
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder
 
Best Practices for the Most Impactful Oracle Database 18c and 19c Features
Best Practices for the Most Impactful Oracle Database 18c and 19c FeaturesBest Practices for the Most Impactful Oracle Database 18c and 19c Features
Best Practices for the Most Impactful Oracle Database 18c and 19c Features
Markus Michalewicz
 
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
15 Troubleshooting Tips and Tricks for database 21c - OGBEMEA KSAOUG
Sandesh Rao
 
Oracle RAC features on Exadata
Oracle RAC features on ExadataOracle RAC features on Exadata
Oracle RAC features on Exadata
Anil Nair
 
Oracle GoldenGate Performance Tuning
Oracle GoldenGate Performance TuningOracle GoldenGate Performance Tuning
Oracle GoldenGate Performance Tuning
Bobby Curtis
 
Tanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools shortTanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools short
Tanel Poder
 
Oracle statistics by example
Oracle statistics by exampleOracle statistics by example
Oracle statistics by example
Mauro Pagano
 
All of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL DeveloperAll of the Performance Tuning Features in Oracle SQL Developer
All of the Performance Tuning Features in Oracle SQL Developer
Jeff Smith
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentation
Vimlendu Kumar
 
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contentionTroubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Tanel Poder
 
Make Your Application “Oracle RAC Ready” & Test For It
Make Your Application “Oracle RAC Ready” & Test For ItMake Your Application “Oracle RAC Ready” & Test For It
Make Your Application “Oracle RAC Ready” & Test For It
Markus Michalewicz
 
Oracle Enterprise Manager
Oracle Enterprise ManagerOracle Enterprise Manager
Oracle Enterprise Manager
Bob Rhubart
 
Oracle Database performance tuning using oratop
Oracle Database performance tuning using oratopOracle Database performance tuning using oratop
Oracle Database performance tuning using oratop
Sandesh Rao
 
PostgreSQL Replication High Availability Methods
PostgreSQL Replication High Availability MethodsPostgreSQL Replication High Availability Methods
PostgreSQL Replication High Availability Methods
Mydbops
 
Less06 networking
Less06 networkingLess06 networking
Less06 networking
Amit Bhalla
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
Satishbabu Gunukula
 
Oracle goldengate 11g schema replication from standby database
Oracle goldengate 11g schema replication from standby databaseOracle goldengate 11g schema replication from standby database
Oracle goldengate 11g schema replication from standby database
uzzal basak
 

Viewers also liked (20)

Setup oracle golden gate 11g replication
Setup oracle golden gate 11g replicationSetup oracle golden gate 11g replication
Setup oracle golden gate 11g replication
Kanwar Batra
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
uzzal basak
 
Oracle Golden Gate
Oracle Golden GateOracle Golden Gate
Oracle Golden Gate
Muhammad Qasim
 
Oracle Audit vault
Oracle Audit vaultOracle Audit vault
Oracle Audit vault
uzzal basak
 
Oracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11gOracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11g
uzzal basak
 
Oracle table partition step
Oracle table partition stepOracle table partition step
Oracle table partition step
uzzal basak
 
SoloСolour
SoloСolourSoloСolour
SoloСolour
Soloten
 
About reading
About readingAbout reading
About reading
Erik Spencer
 
NU Research Report #1
NU Research Report #1NU Research Report #1
NU Research Report #1
Drew West
 
Google Analytics Report
Google Analytics ReportGoogle Analytics Report
Google Analytics Report
Drew West
 
Costume & Props
Costume & PropsCostume & Props
Costume & Props
gmisso33
 
A security system that changed the world
A security system that changed the worldA security system that changed the world
A security system that changed the world
STO STRATEGY
 
Presentation
PresentationPresentation
Presentation
gmisso33
 
SoloTaxi
SoloTaxiSoloTaxi
SoloTaxi
Soloten
 
Conventions of thriller genre
Conventions of thriller genreConventions of thriller genre
Conventions of thriller genre
gmisso33
 
Solo Good Bye Money
Solo Good Bye MoneySolo Good Bye Money
Solo Good Bye Money
Soloten
 
(Pdf) yury chemerkin def_con_2013
(Pdf) yury chemerkin def_con_2013(Pdf) yury chemerkin def_con_2013
(Pdf) yury chemerkin def_con_2013
STO STRATEGY
 
Deseo
DeseoDeseo
Deseo
José de María Pinto Pinto
 
(Pdf) yury chemerkin _ath_con_2013
(Pdf) yury chemerkin _ath_con_2013(Pdf) yury chemerkin _ath_con_2013
(Pdf) yury chemerkin _ath_con_2013
STO STRATEGY
 
Setup oracle golden gate 11g replication
Setup oracle golden gate 11g replicationSetup oracle golden gate 11g replication
Setup oracle golden gate 11g replication
Kanwar Batra
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
uzzal basak
 
Oracle Audit vault
Oracle Audit vaultOracle Audit vault
Oracle Audit vault
uzzal basak
 
Oracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11gOracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11g
uzzal basak
 
Oracle table partition step
Oracle table partition stepOracle table partition step
Oracle table partition step
uzzal basak
 
SoloСolour
SoloСolourSoloСolour
SoloСolour
Soloten
 
NU Research Report #1
NU Research Report #1NU Research Report #1
NU Research Report #1
Drew West
 
Google Analytics Report
Google Analytics ReportGoogle Analytics Report
Google Analytics Report
Drew West
 
Costume & Props
Costume & PropsCostume & Props
Costume & Props
gmisso33
 
A security system that changed the world
A security system that changed the worldA security system that changed the world
A security system that changed the world
STO STRATEGY
 
Presentation
PresentationPresentation
Presentation
gmisso33
 
SoloTaxi
SoloTaxiSoloTaxi
SoloTaxi
Soloten
 
Conventions of thriller genre
Conventions of thriller genreConventions of thriller genre
Conventions of thriller genre
gmisso33
 
Solo Good Bye Money
Solo Good Bye MoneySolo Good Bye Money
Solo Good Bye Money
Soloten
 
(Pdf) yury chemerkin def_con_2013
(Pdf) yury chemerkin def_con_2013(Pdf) yury chemerkin def_con_2013
(Pdf) yury chemerkin def_con_2013
STO STRATEGY
 
(Pdf) yury chemerkin _ath_con_2013
(Pdf) yury chemerkin _ath_con_2013(Pdf) yury chemerkin _ath_con_2013
(Pdf) yury chemerkin _ath_con_2013
STO STRATEGY
 
Ad

Similar to Schema replication using oracle golden gate 12c (20)

Gg steps
Gg stepsGg steps
Gg steps
Hari Prasath
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01
Karam Abuataya
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11g
fcamachob
 
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and ConfigurationIOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
Bobby Curtis
 
Install Oracle 12c Golden Gate On Oracle Linux
Install Oracle 12c Golden Gate On Oracle LinuxInstall Oracle 12c Golden Gate On Oracle Linux
Install Oracle 12c Golden Gate On Oracle Linux
Arun Sharma
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2
Alex Zaballa
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2
Alex Zaballa
 
0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial
KlausePaulino
 
MySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKMySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELK
YoungHeon (Roy) Kim
 
Oracle goldengate and RAC12c
Oracle goldengate and RAC12cOracle goldengate and RAC12c
Oracle goldengate and RAC12c
Siraj Ahmed
 
TechEvent 18c Multitenant New Features
TechEvent 18c Multitenant New FeaturesTechEvent 18c Multitenant New Features
TechEvent 18c Multitenant New Features
Trivadis
 
Automate DG Best Practices
Automate DG  Best PracticesAutomate DG  Best Practices
Automate DG Best Practices
Mohsen B
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and Architecture
Sidney Chen
 
Fatkulin presentation
Fatkulin presentationFatkulin presentation
Fatkulin presentation
Enkitec
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
influxbob
 
Oracle database 12.2 new features
Oracle database 12.2 new featuresOracle database 12.2 new features
Oracle database 12.2 new features
Alfredo Krieg
 
Oracle GoldenGate
Oracle GoldenGateOracle GoldenGate
Oracle GoldenGate
Anar Godjaev
 
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdfClone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
Alireza Kamrani
 
Oracle Golden Gate Interview Questions
Oracle Golden Gate Interview QuestionsOracle Golden Gate Interview Questions
Oracle Golden Gate Interview Questions
Arun Sharma
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
Deepti Singh
 
11thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp0111thingsabout11g 12659705398222 Phpapp01
11thingsabout11g 12659705398222 Phpapp01
Karam Abuataya
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11g
fcamachob
 
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and ConfigurationIOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
Bobby Curtis
 
Install Oracle 12c Golden Gate On Oracle Linux
Install Oracle 12c Golden Gate On Oracle LinuxInstall Oracle 12c Golden Gate On Oracle Linux
Install Oracle 12c Golden Gate On Oracle Linux
Arun Sharma
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2
Alex Zaballa
 
DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2DBA Commands and Concepts That Every Developer Should Know - Part 2
DBA Commands and Concepts That Every Developer Should Know - Part 2
Alex Zaballa
 
0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial0396 oracle-goldengate-12c-tutorial
0396 oracle-goldengate-12c-tutorial
KlausePaulino
 
MySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKMySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELK
YoungHeon (Roy) Kim
 
Oracle goldengate and RAC12c
Oracle goldengate and RAC12cOracle goldengate and RAC12c
Oracle goldengate and RAC12c
Siraj Ahmed
 
TechEvent 18c Multitenant New Features
TechEvent 18c Multitenant New FeaturesTechEvent 18c Multitenant New Features
TechEvent 18c Multitenant New Features
Trivadis
 
Automate DG Best Practices
Automate DG  Best PracticesAutomate DG  Best Practices
Automate DG Best Practices
Mohsen B
 
Oracle Basics and Architecture
Oracle Basics and ArchitectureOracle Basics and Architecture
Oracle Basics and Architecture
Sidney Chen
 
Fatkulin presentation
Fatkulin presentationFatkulin presentation
Fatkulin presentation
Enkitec
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
influxbob
 
Oracle database 12.2 new features
Oracle database 12.2 new featuresOracle database 12.2 new features
Oracle database 12.2 new features
Alfredo Krieg
 
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdfClone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
Clone_a_remote_PDB_in_Data_Guard_Environments_19c_1698741799.pdf
Alireza Kamrani
 
Oracle Golden Gate Interview Questions
Oracle Golden Gate Interview QuestionsOracle Golden Gate Interview Questions
Oracle Golden Gate Interview Questions
Arun Sharma
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
Deepti Singh
 
Ad

More from uzzal basak (6)

MongoDB Sharding
MongoDB ShardingMongoDB Sharding
MongoDB Sharding
uzzal basak
 
Elk presentation 2#3
Elk presentation 2#3Elk presentation 2#3
Elk presentation 2#3
uzzal basak
 
Elk presentation1#3
Elk presentation1#3Elk presentation1#3
Elk presentation1#3
uzzal basak
 
12c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.412c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.4
uzzal basak
 
Encrypt and decrypt in solaris system
Encrypt and decrypt in solaris systemEncrypt and decrypt in solaris system
Encrypt and decrypt in solaris system
uzzal basak
 
EMC Networker installation Document
EMC Networker installation DocumentEMC Networker installation Document
EMC Networker installation Document
uzzal basak
 
MongoDB Sharding
MongoDB ShardingMongoDB Sharding
MongoDB Sharding
uzzal basak
 
Elk presentation 2#3
Elk presentation 2#3Elk presentation 2#3
Elk presentation 2#3
uzzal basak
 
Elk presentation1#3
Elk presentation1#3Elk presentation1#3
Elk presentation1#3
uzzal basak
 
12c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.412c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.4
uzzal basak
 
Encrypt and decrypt in solaris system
Encrypt and decrypt in solaris systemEncrypt and decrypt in solaris system
Encrypt and decrypt in solaris system
uzzal basak
 
EMC Networker installation Document
EMC Networker installation DocumentEMC Networker installation Document
EMC Networker installation Document
uzzal basak
 

Recently uploaded (20)

What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 

Schema replication using oracle golden gate 12c

  • 1. Schema Replication using Oracle Golden gate 12c (Installation & Configuration) Index: 1. Introduction 2. System Configuration Description 3. Architecture 4. Parameter Change: 4a. Enable Supplemental log both source and target. 4b.Acrhivelog enable and enable_goldengate_replication 4c. Schema and Tablespace creation 5. Golden gate software install in both source and target system 6. Start Manager in both source and target system 7. Register the Integrated Extract 8. Add the Extract and Data Pump job and edit parameter in Source System 9. Add Replicate job and edit parameter in Target System 10. Start The All Five Job and enjoy the beauty of Golden Gate
  • 2. Golden Gate is touted by Oracle as its future for data replication. It will slowly phase out Oracle Streams and will be more closely coupled with Oracle products. Golden Gate is relatively simpler to use and monitor than Oracle streams. In 12c Oracle stream is totally obsolete. Below I will demonstrate how to configure ASYNC Schema Replication using oracle Golden Gate 12C in two different Operating system where source in Window machine and target is Solaris 10. SID of Source: PDBORCL SID of Target: PRIPDB Source Server name: 172.25.200.1 Target Server name: 172.25.200.10 Source Schema name: BASAK Target Schema name: BASAK Tables: All tables Os Version Source: Window 10 Os Version Target: Sun Solaris 10 X-86 Architecture JOB is running in Both Source and Target System Source System (Name) Target System (Name) Manager Manager Extractor EXT1 Replicate rpe1 Dump EXTDP1 Here is Visible Architecture of Golden Gate 
  • 3. If above five process is running and configuring correctly then you can see the beauty the Golden gate Parameter Change 1. Enable Supplemental log data in both Source and target database 2. Enable Archivelog in both Source and Target database alter database add supplemental log data; Few Things of Supplemental Log Database-level supplemental logging must be enabled for any Change Data Capture source database. Supplemental logging places additional column data into the redo log file whenever an UPDATE operation is performed. At the least, minimal database-level supplemental logging must be enabled for any Change Data Capture source database. Basically Redo log takes information of any change data 2 . Create the tablespace for both databases (source + target) like: Create tablespace ggate datafile '/export/home/oracle/app/oracle/oradata/ggate01.dbf ' size 1000M AUTOEXTEND ON NEXT 500K;
  • 4. 3. GoldenGate schema creation into source and target database Create OGG Extract User The Extract user for a Multitenant environment must be a common user and must log into the root container. In the following example, the extract userid is c##gadmin using the password ggadmin. The following commands are executed in CDB$ROOT. $(unixserver1) sqlplus / as sysdba SQL> create user C##GADMIN identified by ggadmin; User created. SQL> exec dbms_goldengate_auth.grant_admin_privilege('C##GADMIN',container=>'ALL'); PL/SQL procedure successfully completed. SQL> grant dba to c##gadmin container=all; Grant succeeded. 4. Enable this parameter enable_goldengate_replication in both source and target system Solution: SQL> ALTER SYSTEM set enable_goldengate_replication=true scope=both; Install Golden Gate Software in Both Source and Target Database Install Golden Gate Software (In both Source and Target System) Step 1: unzip the Golden gate software
  • 6. Software location must be where the golden gate software in unzip stage and mention the Manager Port here it is 7809 in target System in Source using 7777
  • 8. Start the Manager: Extract process must be set by using root database in 12c you have to create common user in any other process add you have to login root user Note: here we are connecting to the pluggable database GGSCI (DESKTOP-4C3J6DO as C##GADMIN@cdborcl/CDB$ROOT) 19> dblogin userid C##GADMIN@CDBORCL password ggadmin; Successfully logged into database CDB$ROOT. GGSCI (orasql-001-dev.mydomain) 2> ADD SCHEMATRANDATA basak ALLCOLS
  • 9. 2016-08-01 02:26:26 INFO OGG-01788 SCHEMATRANDATA has been added on schema basak. 2016-08-01 02:26:30 INFO OGG-01976 SCHEMATRANDATA for scheduling columns has been added on schema basak. 2016-08-01 02:26:30 INFO OGG-01977 SCHEMATRANDATA for all columns has been added on schema basak. Register the Integrated Extract Note: here we are connecting to the root container database. GGSCI (DESKTOP-4C3J6DO as C##GADMIN@cdborcl/CDB$ROOT) 21> REGISTER EXTRACT ext1 DATABASE CONTAINER (PDBORCL) 2016-08-01 02:53:28 INFO OGG-02003 Extract EXT1 successfully registered with database at SCN 3795382. Add the Extract and Data Pump process groups GGSCI (DESKTOP-4C3J6DO as C##GADMIN@cdborcl/CDB$ROOT) 22> ADD EXTRACT ext1 INTEGRATED TRANLOG, BEGIN NOW EXTRACT (Integrated) added. GGSCI (DESKTOP-4C3J6DO as C##GADMIN@cdborcl/CDB$ROOT) 23> ADD EXTTRAIL ./dirdat/lt EXTRACT ext1 EXTTRAIL added. GGSCI (DESKTOP-4C3J6DO as C##GADMIN@cdborcl/CDB$ROOT) 24> ADD EXTRACT extdp1 EXTTRAILSOURCE ./dirdat/lt BEGIN NOW EXTRACT added. GGSCI (DESKTOP-4C3J6DO as C##GADMIN@cdborcl/CDB$ROOT) 25> ADD RMTTRAIL ./dirdat/rt EXTRACT extdp1 RMTTRAIL added. EXTRACT and DUMP JOB PARAMETER GGSCI (orasql-001-dev.mydomain) 12> edit params ext1 EXTRACT ext1 SETENV (ORACLE_SID='pdborcl') USERID C##GADMIN@CDBORCL, PASSWORD ggadmin LOGALLSUPCOLS UPDATERECORDFORMAT COMPACT EXTTRAIL ./dirdat/lt SOURCECATALOG pdborcl TABLE basak.*;
  • 10. GGSCI (orasql-001-dev.mydomain) 12> edit params extdp1 EXTRACT extdp1 SETENV (ORACLE_SID='pdborcl') USERID C##GADMIN@CDBORCL, PASSWORD ggadmin RMTHOST 172.25.200.10, MGRPORT 7809 RMTTRAIL ./dirdat/rt SOURCECATALOG pdborcl TABLE basak.*; Add the Replicate process group connected to the target PDB PRIPDB Note – we are using something new in 12c OGG called Integrated Replicate – we will discuss more about Integrated Replicates in another post. GGSCI (SolarisM1) 3> DBLOGIN USERID C##gadmin@PRIPDB, PASSWORD ggadmin Successfully logged into database PRIPDB. GGSCI (SolarisM1 as C##gadmin@PriDB/PRIPDB) 4> ADD REPLICAT rep1 INTEGRATED EXTTRAIL ./dirdat/rt REPLICAT (Integrated) added. GGSCI (orasql-001-test.mydomain) 5> edit params rep1 REPLICAT rep1 SETENV (ORACLE_SID='pripdb') DBOPTIONS INTEGRATEDPARAMS(parallelism 6) USERID C##GADMIN@pripdb, PASSWORD ggadmin ASSUMETARGETDEFS MAP pdborcl.basak.*, TARGET pripdb.basak.* Start All JOB In Source System: In target System
  • 11. Now enjoy the Beauty Of Golden Gate