I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use...
Transcript of I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use...
![Page 1: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/1.jpg)
Getting started…
Amardeep Sidhu
![Page 2: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/2.jpg)
Oracle/Exadata DBA with over 10 years of experience
Working with Oracle ACS
twitter.com/amardeep_sidhu
http://amardeepsidhu.com/blog
![Page 3: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/3.jpg)
I don’t know “everything”
![Page 4: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/4.jpg)
A replication software supporting heterogeneous environments
Runs outside the Database
Tracks only committed transactions
Scans redo logs/archives for committed transactions
Writes changes to files called trail files
Trail files are transferred to the target database
Stores configuration in plain text files
![Page 5: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/5.jpg)
Source Target
Track changes Transmit changes
Apply changes
![Page 6: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/6.jpg)
Manager – Required to start other processes
Extract – scans redo logs (or the equivalent on non-Oracle databases)
Data Pump* (if configured) – transmits trail files to the target
![Page 7: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/7.jpg)
Manager – Required to start other processes
Collector – Collects the trail files
Replicat – Applies the changes
![Page 8: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/8.jpg)
Source (Oracle/N
on-Oracle)
Trails
Target(Oracle/Non-Oracle)
ReplicatExtract
![Page 9: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/9.jpg)
Source (Oracle/N
on-Oracle)
Pump
Trails Trails
Target(Oracle/Non-Oracle)
ReplicatExtract
![Page 10: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/10.jpg)
Simple unzip till 11g◦ Create an OS user
◦ Create Database user
◦ Unzip the dir
◦ Run create dirs (creates directories required by GG)
◦ Add supplemental logging
Has ./runInstaller starting from 12c◦ Will do some of the above things automatically
![Page 11: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/11.jpg)
Copy data one time – Called initial load
Configure Extract to start tracking the changes after that
Configure Data Pump to transmit trails to the target
Configure Replicat to apply the change to target.
![Page 12: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/12.jpg)
SCN
999
Expdp, RMAN
etc
Extract starts tracking changes from SCN 1000
![Page 13: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/13.jpg)
Start expdp
Finish expdp Start
Extract
tx1tx2
tx3 tx4
![Page 14: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/14.jpg)
GoldenGate method
Expdp/impdp
RMAN
Oracle Data Guard (Opened instance)
![Page 15: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/15.jpg)
Requires minimum configuration
GGSCI 2> EDIT PARAMS MGR
PORT 7809
USERID ggs_owner, PASSWORD ggs_passwd
GGSCI 4> start manager
GGSCI 4> info manager
Manager is running (IP port localhost.7809).
![Page 16: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/16.jpg)
Create Extract parameter file
Register the Extract
Add the trail
Start the Extract
EXTRACT SCOTT01
USERID ggs_owner, PASSWORD ggs_passwd
EXTTRAIL dirdat/scott
TABLE SCOTT.*
add extract scott01, tranlog, begin now
add exttrail ./dirdat/scott, extract scott01, megabytes 50
![Page 17: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/17.jpg)
Why it is needed ?
Create the Data Pump parameter file
Register the Data Pump
Add the remote* trail
Start the Data Pump
EXTRACT DPSCOTT01
PASSTHRU
RMTHOST ggserver2, MGRPORT 7809
RMTTRAIL dirdat/scott
TABLE HR.*
add extract DPSCOTT01, EXTTRAILSOURCE dirdat/scott
![Page 18: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/18.jpg)
Create the Replicat parameter file
Register the Replicat
Start the Replicat
REPLICAT RPSCOTT01
USERID ggs_owner, PASSWORD ggs_passwd
MAP SCOTT.*, TARGET SCOTT.*
add replicat RPTSCOTT01, exttrail dirdat/scott
![Page 19: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/19.jpg)
Make sure that initial load is proper
Use SCN based methods
Don’t ignore the errors and try to move ahead using parameters like HANDLECOLLISIONS
Create demo configurations and Test
Use Discard files (for rejected records)
Use some kind of monitoring mechanism
Don’t create a new process for every new table
![Page 20: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/20.jpg)
Offloading reporting queries
Upgrades
Migrations
Active-Active environments
Standby copy
![Page 21: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/21.jpg)
Slow IO subsystem for redo
Slow IO subsystem for trails
Too many Extract groups
Slow network
Slow IO subsystem for remote trails
![Page 22: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/22.jpg)
Query related issues
Database level performance issues
![Page 23: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/23.jpg)
Oracle GoldenGate DirectorComplete administration using GUI based interface
Oracle GoldenGate MonitorCan monitor and send notifications
Oracle GoldenGate VeridataComparison (Homogenous and Heterogonous)
![Page 24: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/24.jpg)
Oracle GoldenGate DirectorComplete administration using GUI based interface
Oracle GoldenGate MonitorCan monitor and send notifications
Oracle GoldenGate VeridataComparison (Homogenous and Heterogonous)
![Page 25: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/25.jpg)
![Page 26: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/26.jpg)
Administrator’s guide, Reference guide, Troubleshooting and tuning guide from Official documentation : http://docs.oracle.com/cd/E35209_01/index.htm
http://gavinsoorma.com/oracle-goldengate-veridata-web/ - Good introduction
Oracle GoldenGate 11g Implementer's guide –Packt publishing
![Page 27: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/27.jpg)
Oracle GoldenGate 11g CertifiedImplementation Exam Essentials - 1Z0-481
![Page 28: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/28.jpg)
![Page 29: I don’t know “everything” GoldenGate Basics.pdf · Make sure that initial load is proper Use SCN based methods Don’t ignore the errors and try to move ahead using parameters](https://reader033.fdocuments.in/reader033/viewer/2022041508/5e2630453684021a7668e0e5/html5/thumbnails/29.jpg)