SlideShare une entreprise Scribd logo
1  sur  31
Bobby Curtis
Sr. Technical Consultant
Enkitec
• Douglasville, Georgia
• Senior Technical Consultant
• IOUG, ODTUG, GOUSER, RMOUG
• Expert OEM12c (2013)/Practical ODA
(2014)
• Twitter: @dbasolved
• Blog: http://dbasolved.com
• Email: bcurtis@enkitec.com
curtisbl@gmail.com
Home: www.enkitec.com/e4
Registration: http://www.enkitec.com/e4/register
Location: http://www.enkitec.com/e4/location
Training Days Following E4:
http://www.enkitec.com/e4/training-days
Early bird discount expires April 15, 2014!
• What is Oracle GoldenGate?
• Use Cases
• Monitoring
• GGSCI
• Command Line
• SQL
• GUI Driven
• Comprehensive software for real-time data
integration in heterogeneous environments
• Benefits
• High-Availabity Solutions
• Real-Time Data Integration
• Transactional Change Data Capture
• Data Replication
• Transformation of Data
• Verification of Data
• Primary Replication Tool in Oracle Database 12c
(12.1.0.1)
• Oracle Upgrade Guide, Sections 8.1.6 & 8.1.7
• Five Different Approaches
• Manual
• Scripts Based
• SQL Based
• Oracle GoldenGate Director
• Oracle Enteprise Manager 12c
• Manual Monitoring
• Simplest Approach
• Monitoring parameters are used inside of
parameter files (Manager/Extract/Replicat)
• Uses GoldenGate Service Command Interface
(GGSCI)
• GoldenGate Error Log (ggserr.log)
Parameter Process Description
REPORT EXTRACT/REPLICAT Specify the interval at which EXTRACT or REPLICAT
generates interim runtime statistics in a process report
REPORTCOUNT EXTRACT/REPLICAT Report a count of transaction records that EXTRACT or
REPLICAT processed since startup
REPORTROLLOVER EXTRACT/REPLICAT Force report files to age on a regular schedule, instead of
when a process starts
UPREPORTMINUTES
UPREPORTHOURS
Manager Specify the frequency with which Manager reports,
EXTRACT, and REPLICAT processes run
LAGREPORTMINUTES
LAGREPORTHOURS
Manager Specify the interval at which Manager checks for EXTRACT
and REPLICAT lag
LAGCRITICALSECONDS
LAGCRITICALMINUTES
LAGCRITICALHOURS
Manager Specify a lag threshold that is considered critical, and to
force a warning message to the error log when the
threshold is reached
LAGINFOSECONDS
LAGINFOMINUTES
LAGINFOHOURS
Manager Specify a basic lag threshold; if lag exceeds the specified
value, Oracle GoldenGate reports lag information to the
error log. If the lag exceeds the value specified with
the LAGCRITICAL parameter, Manager reports the lag as
critical; otherwise, it reports the lag as an informational
message
Command Process Description
INFO MANAGER
STATUS MANAGER
Manager Determine whether or not the Manager process is running. If Manager is running, the port
number is displayed. This command is an alias for STATUS MANAGER
SEND MANAGER Manager Retrieve the status of the active Manager process or to retrieve dynamic port information
as configured in the Manager parameter file
INFO EXTRACT EXTRACT The status of EXTRACT (STARTING, RUNNING, STOPPED or ABENDED).
LAG EXTRACT EXTRACT Determine a true lag time between EXTRACT and the data source. LAG EXTRACT calculates
the lag time more precisely than INFO EXTRACTbecause it communicates with EXTRACT
directly, rather than reading a checkpoint position in the trail
SEND EXTRACT EXTRACT Communicate with a running EXTRACT process. The request is processed as soon as
EXTRACT is ready to accept commands from users.
STATUS EXTRACT EXTRACT Determine whether or not EXTRACT is running
INFO REPLICAT REPLICAT Retrieve the processing history of a REPLICAT group. The output of this command includes:
The status of REPLICAT
(STARTING, RUNNING, STOPPED or ABENDED). STARTING means that the process has
started but has not yet locked the checkpoint file for processing.
(Oracle database) The REPLICAT mode: non-integrated or integrated.
Whether or not REPLICAT is in coordinated mode and, if so, how many threads it
currently uses.
Approximate REPLICAT lag.
The trail from which REPLICAT is reading.
Etc …
The basic command displays information only for online (continuous) REPLICAT groups.
Tasks are excluded.
LAG REPLICAT REPLICAT Determine a true lag time between REPLICAT and the trail. LAG REPLICAT estimates the lag
time more precisely than INFO REPLICAT because it communicates with REPLICAT directly
rather than reading a checkpoint position
SEND REPLICAT REPLICAT Communicate with a starting or running REPLICAT process. The request is processed as soon
as REPLICAT is ready to accept commands from users
STATUS REPLICAT REPLICAT Determine whether or not REPLICAT is running
• Script Based
• Using manual commands in scripts
• Any script type
• Shell
• Perl
• Etc…
• Write once, Run multiple times
• Repeatable process with no memorization
• Portable between environments
• Info_All.sh
#!/bin/sh
#info_all.sh
export GGS_HOME=/opt/oracle/product/ggate
$GGS_HOME/ggsci <<EOF
info all
exit
EOF
• gg_mem_mon.sh
PROCESSES="mgr ggcmd extract replicat"
for GGPROCESS in $PROCESSES
do
FLAG=`ps -ef | grep $GGPROCESS`
if [ $_ ]
then
"No GoldenGate Process Found"
else
ps -C $GGPROCESS -O rss | awk '{print $2/1024, "MB", $12}'
| sort -k 2
fi
done
exit 0
• Ability to monitor from SQL*Plus or SQL
Developer
• Hybrid in nature (Scripts/SQL)
• Can only see what is going on currently
• Moving parts
• Script to write text file
• Need to schedule run
• Use of External Tables
• gg_monitor_sqldev.pl
.
[Code Removed]
open (GGPROC, ">$outfile") or die "Unable to open file";
foreach (@buf){ if(/MANAGER/||/JAGENT/||/EXTRACT/||/REPLICAT/)
{
no warnings 'uninitialized';
chomp;
my ($program, $status, $group, $lagatchkpt, $timesincechkpt) = split(" ");
if ($group eq "") {
$group = $program;
} if ($lagatchkpt eq "" || $timesincechkpt eq "") {
$lagatchkpt = "00:00:00";
$timesincechkpt = "00:00:00";
}
print GGPROC "$program|$status|$group|$lagatchkpt|$timesincechkptn"; }
}
close (GGPROC);
• Golden Gate specific tables
• 11.2.0.3 (few)
• 11.2.0.4 (little more)
• 12.1.0.1 (moving forward)
• 50 Objects (to date)
• Multi-tier, client-server application
• Can manage GoldenGate from a remote client
• Many moving parts
• See Architecture (Next Slide)
• Client – GUI interface for users
• Mid-Tier Server – Weblogic, Application &
Monitor agent
• Central Repository – i.e. Database
• Quickly becoming monitoring tool of choice
• GoldenGate monitoring available since 12.1.0.1
• Support via a plug-in
• JAgent is used to interact with OEM
Agent/Plug-In
• Enabled via GLOBALS file
• ENABLEMONITORING parameter
• GoldenGate Plug-in Installed
• Oracle Management Server
• Oracle Agent
• Current Release (12.1.0.1)
• Ensure update of plug-in
• Setup -> Extensibility -> Self Update
• GoldenGate Access
• Deployed on OMS/Agent
• JAgent started
• Targets -> GoldenGate
Image provided by Maaz Anjum (here)
• Hybrid Approach
• Metric Extensions
• Metric Extensions
• Uses Scripts/More Texted based
• Can be deployed to any agent
• Does not have up/down issues with
JAgent/Agent interaction
• gg_metric_ext_am.pl
#!/usr/bin/perl -w
#
#
use strict;
use warnings;
#Static Variables
my $gghome = "/oracle/app/product/12.1.2/ggate";
#Program
my @buf = `$gghome/ggsci << EOF
info all
EOF`;
foreach (@buf)
{
if(/EXTRACT/||/REPLICAT/)
{
s/s+/|/g;
print $_."n";
}
}
• Metric Extension
• Enterprise -> Monitoring -> Metric Extensions
• Metric seen under All Metrics for Hosts
(yellow star)
• Packaged and deployed to multiple agents
• Metric Extension -> All Metrics
Topic Bug Resolution
Manual Bugs are associated with application software MOS Note ID: 1298817.1
Scripts Often occur due to user errors within the scripts Normal code reviews would minimize
error in scripts
Oracle GoldenGate Director A few bugs! Bugs have been documented in MOS MOS Note ID: 1298817.1
Oracle Enterprise Manager 12c Few bugs have been identified. Oracle recommends using
the plug-in to monitoring Oracle GoldenGate 11.2.0.1.10 or
later
MOS Note ID: 1495998.1 (Berkley
Database Data Store Bug)
No Monitoring Solution is 100%!
Choose wisely for your data!
Please remember to fill out evaluations!
Bobby Curtis
bcurtis@enkitec.com
Monitor you data wisely!!!!
Script Repo Location: http://tinyurl.com/kscsdnw
• Douglasville, Georgia
• Senior Technical Consultant
• IOUG, ODTUG, GOUSER, RMOUG
• Expert OEM12c (2013)/Practical ODA
(2014)
• Twitter: @dbasolved
• Blog: http://dbasolved.com
• Email: bcurtis@enkitec.com
curtisbl@gmail.com

Contenu connexe

Tendances

Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
udaymoogala
 
Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360
Carlos Sierra
 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Aaron Shilo
 

Tendances (20)

Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
 
Uploading certificate with oracle wallet manager and orapki utilities
Uploading certificate with oracle wallet manager and orapki utilitiesUploading certificate with oracle wallet manager and orapki utilities
Uploading certificate with oracle wallet manager and orapki utilities
 
Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360Understanding my database through SQL*Plus using the free tool eDB360
Understanding my database through SQL*Plus using the free tool eDB360
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
 
New Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceNew Generation Oracle RAC Performance
New Generation Oracle RAC Performance
 
Oracle Database performance tuning using oratop
Oracle Database performance tuning using oratopOracle Database performance tuning using oratop
Oracle Database performance tuning using oratop
 
Enable GoldenGate Monitoring with OEM 12c/JAgent
Enable GoldenGate Monitoring with OEM 12c/JAgentEnable GoldenGate Monitoring with OEM 12c/JAgent
Enable GoldenGate Monitoring with OEM 12c/JAgent
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
 
Oracle R12 EBS Performance Tuning
Oracle R12 EBS Performance TuningOracle R12 EBS Performance Tuning
Oracle R12 EBS Performance Tuning
 
Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle Multitenant
 
Oracle statistics by example
Oracle statistics by exampleOracle statistics by example
Oracle statistics by example
 
Introduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard BrokerIntroduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard Broker
 
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
 
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdfOracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
 
Postgresql database administration volume 1
Postgresql database administration volume 1Postgresql database administration volume 1
Postgresql database administration volume 1
 
DOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant EnvironmentsDOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant Environments
 
SQLd360
SQLd360SQLd360
SQLd360
 
Ash and awr deep dive hotsos
Ash and awr deep dive hotsosAsh and awr deep dive hotsos
Ash and awr deep dive hotsos
 
Enable oracle database vault
Enable oracle database vaultEnable oracle database vault
Enable oracle database vault
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the TradeOracle Performance Tools of the Trade
Oracle Performance Tools of the Trade
 

Similaire à How many ways to monitor oracle golden gate-Collaborate 14

Oracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture PerformanceOracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture Performance
Enkitec
 
SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13
SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13
SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13
Fred Sauer
 
OGG Architecture Performance
OGG Architecture PerformanceOGG Architecture Performance
OGG Architecture Performance
Enkitec
 

Similaire à How many ways to monitor oracle golden gate-Collaborate 14 (20)

Docker Logging and analysing with Elastic Stack - Jakub Hajek
Docker Logging and analysing with Elastic Stack - Jakub Hajek Docker Logging and analysing with Elastic Stack - Jakub Hajek
Docker Logging and analysing with Elastic Stack - Jakub Hajek
 
Docker Logging and analysing with Elastic Stack
Docker Logging and analysing with Elastic StackDocker Logging and analysing with Elastic Stack
Docker Logging and analysing with Elastic Stack
 
Splunk: Forward me the REST of those shells
Splunk: Forward me the REST of those shellsSplunk: Forward me the REST of those shells
Splunk: Forward me the REST of those shells
 
Oracle_Patching_Untold_Story_Final_Part2.pdf
Oracle_Patching_Untold_Story_Final_Part2.pdfOracle_Patching_Untold_Story_Final_Part2.pdf
Oracle_Patching_Untold_Story_Final_Part2.pdf
 
OWASP ZAP Workshop for QA Testers
OWASP ZAP Workshop for QA TestersOWASP ZAP Workshop for QA Testers
OWASP ZAP Workshop for QA Testers
 
Systems Programming Assignment Help - Processes
Systems Programming Assignment Help - ProcessesSystems Programming Assignment Help - Processes
Systems Programming Assignment Help - Processes
 
Deploying software at Scale
Deploying software at ScaleDeploying software at Scale
Deploying software at Scale
 
Introduction to ZooKeeper - TriHUG May 22, 2012
Introduction to ZooKeeper - TriHUG May 22, 2012Introduction to ZooKeeper - TriHUG May 22, 2012
Introduction to ZooKeeper - TriHUG May 22, 2012
 
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
 
No locked doors, no windows barred: hacking OpenAM infrastructure
No locked doors, no windows barred: hacking OpenAM infrastructureNo locked doors, no windows barred: hacking OpenAM infrastructure
No locked doors, no windows barred: hacking OpenAM infrastructure
 
Oracle Golden Gate Interview Questions
Oracle Golden Gate Interview QuestionsOracle Golden Gate Interview Questions
Oracle Golden Gate Interview Questions
 
Pyramid Deployment and Maintenance
Pyramid Deployment and MaintenancePyramid Deployment and Maintenance
Pyramid Deployment and Maintenance
 
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
 
Overview of Postgres Utility Processes
Overview of Postgres Utility ProcessesOverview of Postgres Utility Processes
Overview of Postgres Utility Processes
 
Oracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture PerformanceOracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture Performance
 
SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13
SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13
SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13
 
Droidcon Spain 2016 - The Pragmatic Android Programmer: from hype to reality
 Droidcon Spain 2016 - The Pragmatic Android Programmer: from hype to reality Droidcon Spain 2016 - The Pragmatic Android Programmer: from hype to reality
Droidcon Spain 2016 - The Pragmatic Android Programmer: from hype to reality
 
Distributed tracing 101
Distributed tracing 101Distributed tracing 101
Distributed tracing 101
 
Oracle WebLogic Diagnostics & Perfomance tuning
Oracle WebLogic Diagnostics & Perfomance tuningOracle WebLogic Diagnostics & Perfomance tuning
Oracle WebLogic Diagnostics & Perfomance tuning
 
OGG Architecture Performance
OGG Architecture PerformanceOGG Architecture Performance
OGG Architecture Performance
 

Plus de Bobby Curtis

Plus de Bobby Curtis (20)

RheoData_23ai_Vector-Datatype-Webinar-2024.pptx
RheoData_23ai_Vector-Datatype-Webinar-2024.pptxRheoData_23ai_Vector-Datatype-Webinar-2024.pptx
RheoData_23ai_Vector-Datatype-Webinar-2024.pptx
 
MySQLHeatwave-TheBasics.pptx
MySQLHeatwave-TheBasics.pptxMySQLHeatwave-TheBasics.pptx
MySQLHeatwave-TheBasics.pptx
 
ECO 2022 - OCI and HashiCorp Terraform
ECO 2022 - OCI and HashiCorp TerraformECO 2022 - OCI and HashiCorp Terraform
ECO 2022 - OCI and HashiCorp Terraform
 
Improve PostgreSQL replication with Oracle GoldenGate
Improve PostgreSQL replication with Oracle GoldenGateImprove PostgreSQL replication with Oracle GoldenGate
Improve PostgreSQL replication with Oracle GoldenGate
 
Terraform & Oracle Cloud Infrastructure
Terraform & Oracle Cloud InfrastructureTerraform & Oracle Cloud Infrastructure
Terraform & Oracle Cloud Infrastructure
 
Oracle GoldenGate on Docker
Oracle GoldenGate on DockerOracle GoldenGate on Docker
Oracle GoldenGate on Docker
 
OOW19 - HOL5221
OOW19 - HOL5221OOW19 - HOL5221
OOW19 - HOL5221
 
Oracle GoldenGate Performance Tuning
Oracle GoldenGate Performance TuningOracle GoldenGate Performance Tuning
Oracle GoldenGate Performance Tuning
 
Hit Refresh with Oracle GoldenGate Microservices
Hit Refresh with Oracle GoldenGate MicroservicesHit Refresh with Oracle GoldenGate Microservices
Hit Refresh with Oracle GoldenGate Microservices
 
GoldenGate CDR from UKOUG 2017
GoldenGate CDR from UKOUG 2017GoldenGate CDR from UKOUG 2017
GoldenGate CDR from UKOUG 2017
 
Oracle GoldenGate and Baseball - 5 Keys for Moving to the Cloud
Oracle GoldenGate and Baseball - 5 Keys for Moving to the CloudOracle GoldenGate and Baseball - 5 Keys for Moving to the Cloud
Oracle GoldenGate and Baseball - 5 Keys for Moving to the Cloud
 
Oracle GoldenGate Studio Intro
Oracle GoldenGate Studio IntroOracle GoldenGate Studio Intro
Oracle GoldenGate Studio Intro
 
5 Keys to Oracle GoldenGate Implemenations
5 Keys to Oracle GoldenGate Implemenations5 Keys to Oracle GoldenGate Implemenations
5 Keys to Oracle GoldenGate Implemenations
 
Database As A Service: OEM + ODA (OOW 15 Presentation)
Database As A Service: OEM + ODA (OOW 15 Presentation)Database As A Service: OEM + ODA (OOW 15 Presentation)
Database As A Service: OEM + ODA (OOW 15 Presentation)
 
Extreme replication at IOUG Collaborate 15
Extreme replication at IOUG Collaborate 15Extreme replication at IOUG Collaborate 15
Extreme replication at IOUG Collaborate 15
 
Examining Oracle GoldenGate Trail Files
Examining Oracle GoldenGate Trail FilesExamining Oracle GoldenGate Trail Files
Examining Oracle GoldenGate Trail Files
 
Exachk and oem12c - IOUG C15LV
Exachk and oem12c - IOUG C15LVExachk and oem12c - IOUG C15LV
Exachk and oem12c - IOUG C15LV
 
Extreme Replication - RMOUG Presentation
Extreme Replication - RMOUG PresentationExtreme Replication - RMOUG Presentation
Extreme Replication - RMOUG Presentation
 
Oracle virtualbox basic to rac attack
Oracle virtualbox basic to rac attackOracle virtualbox basic to rac attack
Oracle virtualbox basic to rac attack
 
Oracle GoldenGate 12c CDR Presentation for ECO
Oracle GoldenGate 12c CDR Presentation for ECOOracle GoldenGate 12c CDR Presentation for ECO
Oracle GoldenGate 12c CDR Presentation for ECO
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Dernier (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

How many ways to monitor oracle golden gate-Collaborate 14

  • 1. Bobby Curtis Sr. Technical Consultant Enkitec
  • 2. • Douglasville, Georgia • Senior Technical Consultant • IOUG, ODTUG, GOUSER, RMOUG • Expert OEM12c (2013)/Practical ODA (2014) • Twitter: @dbasolved • Blog: http://dbasolved.com • Email: bcurtis@enkitec.com curtisbl@gmail.com
  • 3. Home: www.enkitec.com/e4 Registration: http://www.enkitec.com/e4/register Location: http://www.enkitec.com/e4/location Training Days Following E4: http://www.enkitec.com/e4/training-days Early bird discount expires April 15, 2014!
  • 4. • What is Oracle GoldenGate? • Use Cases • Monitoring • GGSCI • Command Line • SQL • GUI Driven
  • 5. • Comprehensive software for real-time data integration in heterogeneous environments • Benefits • High-Availabity Solutions • Real-Time Data Integration • Transactional Change Data Capture • Data Replication • Transformation of Data • Verification of Data • Primary Replication Tool in Oracle Database 12c (12.1.0.1) • Oracle Upgrade Guide, Sections 8.1.6 & 8.1.7
  • 6.
  • 7. • Five Different Approaches • Manual • Scripts Based • SQL Based • Oracle GoldenGate Director • Oracle Enteprise Manager 12c
  • 8. • Manual Monitoring • Simplest Approach • Monitoring parameters are used inside of parameter files (Manager/Extract/Replicat) • Uses GoldenGate Service Command Interface (GGSCI) • GoldenGate Error Log (ggserr.log)
  • 9. Parameter Process Description REPORT EXTRACT/REPLICAT Specify the interval at which EXTRACT or REPLICAT generates interim runtime statistics in a process report REPORTCOUNT EXTRACT/REPLICAT Report a count of transaction records that EXTRACT or REPLICAT processed since startup REPORTROLLOVER EXTRACT/REPLICAT Force report files to age on a regular schedule, instead of when a process starts UPREPORTMINUTES UPREPORTHOURS Manager Specify the frequency with which Manager reports, EXTRACT, and REPLICAT processes run LAGREPORTMINUTES LAGREPORTHOURS Manager Specify the interval at which Manager checks for EXTRACT and REPLICAT lag LAGCRITICALSECONDS LAGCRITICALMINUTES LAGCRITICALHOURS Manager Specify a lag threshold that is considered critical, and to force a warning message to the error log when the threshold is reached LAGINFOSECONDS LAGINFOMINUTES LAGINFOHOURS Manager Specify a basic lag threshold; if lag exceeds the specified value, Oracle GoldenGate reports lag information to the error log. If the lag exceeds the value specified with the LAGCRITICAL parameter, Manager reports the lag as critical; otherwise, it reports the lag as an informational message
  • 10. Command Process Description INFO MANAGER STATUS MANAGER Manager Determine whether or not the Manager process is running. If Manager is running, the port number is displayed. This command is an alias for STATUS MANAGER SEND MANAGER Manager Retrieve the status of the active Manager process or to retrieve dynamic port information as configured in the Manager parameter file INFO EXTRACT EXTRACT The status of EXTRACT (STARTING, RUNNING, STOPPED or ABENDED). LAG EXTRACT EXTRACT Determine a true lag time between EXTRACT and the data source. LAG EXTRACT calculates the lag time more precisely than INFO EXTRACTbecause it communicates with EXTRACT directly, rather than reading a checkpoint position in the trail SEND EXTRACT EXTRACT Communicate with a running EXTRACT process. The request is processed as soon as EXTRACT is ready to accept commands from users. STATUS EXTRACT EXTRACT Determine whether or not EXTRACT is running INFO REPLICAT REPLICAT Retrieve the processing history of a REPLICAT group. The output of this command includes: The status of REPLICAT (STARTING, RUNNING, STOPPED or ABENDED). STARTING means that the process has started but has not yet locked the checkpoint file for processing. (Oracle database) The REPLICAT mode: non-integrated or integrated. Whether or not REPLICAT is in coordinated mode and, if so, how many threads it currently uses. Approximate REPLICAT lag. The trail from which REPLICAT is reading. Etc … The basic command displays information only for online (continuous) REPLICAT groups. Tasks are excluded. LAG REPLICAT REPLICAT Determine a true lag time between REPLICAT and the trail. LAG REPLICAT estimates the lag time more precisely than INFO REPLICAT because it communicates with REPLICAT directly rather than reading a checkpoint position SEND REPLICAT REPLICAT Communicate with a starting or running REPLICAT process. The request is processed as soon as REPLICAT is ready to accept commands from users STATUS REPLICAT REPLICAT Determine whether or not REPLICAT is running
  • 11. • Script Based • Using manual commands in scripts • Any script type • Shell • Perl • Etc… • Write once, Run multiple times • Repeatable process with no memorization • Portable between environments
  • 13. • gg_mem_mon.sh PROCESSES="mgr ggcmd extract replicat" for GGPROCESS in $PROCESSES do FLAG=`ps -ef | grep $GGPROCESS` if [ $_ ] then "No GoldenGate Process Found" else ps -C $GGPROCESS -O rss | awk '{print $2/1024, "MB", $12}' | sort -k 2 fi done exit 0
  • 14. • Ability to monitor from SQL*Plus or SQL Developer • Hybrid in nature (Scripts/SQL) • Can only see what is going on currently • Moving parts • Script to write text file • Need to schedule run • Use of External Tables
  • 15. • gg_monitor_sqldev.pl . [Code Removed] open (GGPROC, ">$outfile") or die "Unable to open file"; foreach (@buf){ if(/MANAGER/||/JAGENT/||/EXTRACT/||/REPLICAT/) { no warnings 'uninitialized'; chomp; my ($program, $status, $group, $lagatchkpt, $timesincechkpt) = split(" "); if ($group eq "") { $group = $program; } if ($lagatchkpt eq "" || $timesincechkpt eq "") { $lagatchkpt = "00:00:00"; $timesincechkpt = "00:00:00"; } print GGPROC "$program|$status|$group|$lagatchkpt|$timesincechkptn"; } } close (GGPROC);
  • 16. • Golden Gate specific tables • 11.2.0.3 (few) • 11.2.0.4 (little more) • 12.1.0.1 (moving forward) • 50 Objects (to date)
  • 17. • Multi-tier, client-server application • Can manage GoldenGate from a remote client • Many moving parts • See Architecture (Next Slide) • Client – GUI interface for users • Mid-Tier Server – Weblogic, Application & Monitor agent • Central Repository – i.e. Database
  • 18.
  • 19. • Quickly becoming monitoring tool of choice • GoldenGate monitoring available since 12.1.0.1 • Support via a plug-in • JAgent is used to interact with OEM Agent/Plug-In • Enabled via GLOBALS file • ENABLEMONITORING parameter
  • 20. • GoldenGate Plug-in Installed • Oracle Management Server • Oracle Agent • Current Release (12.1.0.1) • Ensure update of plug-in • Setup -> Extensibility -> Self Update
  • 21. • GoldenGate Access • Deployed on OMS/Agent • JAgent started • Targets -> GoldenGate
  • 22. Image provided by Maaz Anjum (here)
  • 23. • Hybrid Approach • Metric Extensions • Metric Extensions • Uses Scripts/More Texted based • Can be deployed to any agent • Does not have up/down issues with JAgent/Agent interaction
  • 24. • gg_metric_ext_am.pl #!/usr/bin/perl -w # # use strict; use warnings; #Static Variables my $gghome = "/oracle/app/product/12.1.2/ggate"; #Program my @buf = `$gghome/ggsci << EOF info all EOF`; foreach (@buf) { if(/EXTRACT/||/REPLICAT/) { s/s+/|/g; print $_."n"; } }
  • 25. • Metric Extension • Enterprise -> Monitoring -> Metric Extensions • Metric seen under All Metrics for Hosts (yellow star) • Packaged and deployed to multiple agents
  • 26. • Metric Extension -> All Metrics
  • 27. Topic Bug Resolution Manual Bugs are associated with application software MOS Note ID: 1298817.1 Scripts Often occur due to user errors within the scripts Normal code reviews would minimize error in scripts Oracle GoldenGate Director A few bugs! Bugs have been documented in MOS MOS Note ID: 1298817.1 Oracle Enterprise Manager 12c Few bugs have been identified. Oracle recommends using the plug-in to monitoring Oracle GoldenGate 11.2.0.1.10 or later MOS Note ID: 1495998.1 (Berkley Database Data Store Bug) No Monitoring Solution is 100%! Choose wisely for your data!
  • 28.
  • 29. Please remember to fill out evaluations! Bobby Curtis bcurtis@enkitec.com Monitor you data wisely!!!!
  • 30. Script Repo Location: http://tinyurl.com/kscsdnw
  • 31. • Douglasville, Georgia • Senior Technical Consultant • IOUG, ODTUG, GOUSER, RMOUG • Expert OEM12c (2013)/Practical ODA (2014) • Twitter: @dbasolved • Blog: http://dbasolved.com • Email: bcurtis@enkitec.com curtisbl@gmail.com