Download - Oracle GoldenGate Monitoring
Ileana Someşan, Senior Systemberaterin
Oracle GoldenGate Monitoring
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 2 [email protected]
Agenda
Was sollte überwacht werden?
Monitoring-Werkzeuge
Oracle Management Pack für OGG
Zusammenfassung
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 3 [email protected]
Die wichtigsten Aspekte Zustand der Replikationsprozesse
Verzögerungen bei der Replikation
Verarbeitetes Datenvolumen
Warnungen und Fehlermeldungen
Trail Files
Transaktionslogs
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 4 [email protected]
Agenda
Was sollte überwacht werden?
Monitoring-Werkzeuge
Oracle Management Pack für OGG
Zusammenfassung
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 5 [email protected]
Sie haben die Wahl
Traditionelle Tools
– Kommandozeile (GGSCI)
– Parametereinstellungen
– Benutzerdefinierte Skripte
– Manuelle Einbindung in existierende Alerting–Infrastruktur (E-Mail, SNMP)
Graphische Tools
– Oracle Management Pack für Oracle GoldenGate
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 6 [email protected]
GGSCI
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 7 [email protected]
OGG Kommandozeile
./ggsci im OGG-Installationsverzeichnis aufrufen
GGSCI> HELP
GGSCI> HELP command
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 8 [email protected]
Prozessübersicht
GGSCI> INFO ALL
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 9 [email protected]
Prozessdetails
GGSCI> INFO MGR
GGSCI> INFO ER ora_*
GGSCI> INFO proc_name DETAIL
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 10 [email protected]
Prozess-Checkpoints
Aktuelle Lese- und Schreibposition
eines Prozesses
GGSCI> INFO proc_name SHOWCH
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 11 [email protected]
Verzögerungen
GGSCI> LAG proc_name
Wie gut können die OGG-Prozesse mit der generierten Datenmenge Schritt halten?
Wie lange dauert es bis eine DB-Operation von OGG verarbeitet wird?
Bleiben die OGG-Prozesse zurück? Performance-Tuning
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 12 [email protected]
Verarbeitetes Datenvolumen
GGSCI> STATS proc_name TOTAL
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 13 [email protected]
Aufgetretene Konflikte
GGSCI> STATS replicat_name REPORTCDR
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 14 [email protected]
Laufzeitinformationen
GGSCI> SEND extract_name STATUS
Kommunikation mit laufendem OGG-Prozess zur Abfrage unterschiedlicher Parameter
(siehe Reference Guide)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 15 [email protected]
Wichtige Dateien
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 16 [email protected]
Error Log
Enthält Befehlshistorie, Fehlermeldungen und weitere Informationen
ggserr.log im OGG-Installationsverzeichnis
GGSCI> VIEW GGSEVT
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 17 [email protected]
Report File
Jeder OGG-Prozess generiert einen Report mit den verwendeten Parametern,
durchgeführten Mappings sowie aufgetrenenen Problemen
Standardmäßig ./dirrpt/proc_name.rpt
GGSCI> VIEW REPORT proc_name
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 18 [email protected]
Discard File
Enthält die verworfenen Operationen
Im Parameterfile des Replicat-Prozesses angeben:
DISCARDFILE dirrpt/proc_name.dsc, PURGE |APPEND
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 19 [email protected]
Benutzerdefinierte Skripte
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 20 [email protected]
Kleines Monitoring- und Alert-Skript
if [ 'echo "info all“ | ./ggsci | grep "ABENDED“ | wc -l' -gt 0] \
then echo "info *“ | ./ggsci | mailx -s "OGG Alert: Abended" [email protected]; fi
Sende eine E-Mail Benachrichtigung, falls ein OGG-Prozess unerwartet beendet wurde.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 21 [email protected]
Parser für den Error Log
trail -n 1 -f ggserr.log | while ((1)); do read gdate gtime glevel gmsg; \
if [ $glevel = "ERROR" ]; \
then echo "$HOSTNAME: $gdate $gtime $glevel $gmsg”
| mailx -s "OGG Alert: Log error" [email protected];fi;done
Sende eine E-Mail Benachrichtigung, falls im Error Log Fehler gemeldet wurden.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 22 [email protected]
Erweiterte Parametereinstellungen
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 23 [email protected]
Verarbeitungsgeschwindigkeit melden
Im Parameter-File der Extract/Replicat Prozesse:
REPORTCOUNT EVERY 5 MINUTES, RATE
Anzahl der DB-Operationen und Verarbeitungsrate (#Ops/Sekunde) alle x Minuten ins
Report File schreiben
Performanceprobleme diagnostizieren
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 24 [email protected]
Trail Files automatisch löschen
Im Parameter-File des Manager Prozesses:
PURGEOLDEXTRACTS ./dirdat/*, USECHECKPOINTS
Trail Files, die nicht mehr benötigt werden, werden automatisch gelöscht
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 25 [email protected]
Transaktionslogs aufbewahren
OGG benötigt die Transkationslogs seit Beginn der letzten noch nicht festgeschriebenen
Transaktion
mind. 24 Stunden Archived Redo Logs aufbewahren!
OGG für Oracle
Integrated Extract
– Automatische Interaktion mit RMAN um benötigte Redo Logs aufzubewahren
Classic Extract
– Interaktion mit RMAN muss konfiguriert werden und ist nur mit Oracle DB EE verfügbar
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 26 [email protected]
Agenda
Was sollte überwacht werden?
Monitoring-Werkzeuge
Oracle Management Pack für OGG
Zusammenfassung
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 27 [email protected]
Umfang
Lizenzpaket bestehend aus 3 Werkzeugen:
– Oracle GoldenGate Plug-in für Oracle Enterprise Manager Cloud Control
– Oracle GoldenGate Monitor
– Oracle GoldenGate Director
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 28 [email protected]
• Oracles strategische Monitoring-Tool für die gesamte Oracle Landschaft, inkl. OGG
• Für Kunden, die Enterprise Manager nutzen
• Übersicht über den Zustand aller OGG-Instanzen
• Metriken, grafischer Metrikenverlauf Trends
• Automatische Alerts: z.B. sende E-Mail falls das Lag einen Schwellenwert überschreitet
• Für OGG 11.2.1.0.1+
#1 Enterprise Manager Plug-in
Überblick
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 29 [email protected]
• Standalone Monitoring-Tool falls Enterprise Manager nicht im Einsatz
• Grafischer Übbersicht über die gesamte Replikationsumgebung
• Automatische Erkennung der OGG- Komponenten
• Metriken, grafischer Metrikenverlauf
• Automatische Benachrichtigung per E-Mail, SNMP und anderen Tools
• Für OGG 11.1.1.1.1+
#2 Oracle GoldenGate Monitor
Überblick
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 30 [email protected]
• „Legacy“-Werkzeug
• Konfiguration, Starten/Stoppen der OGG-Prozesse
• Basis-Monitoring
• E-Mail Alerts
• Auch für ältere OGG-Versionen
#3 Oracle GoldenGate Director
Überblick
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 31 [email protected]
OGG Monitor
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 32 [email protected]
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 33 [email protected]
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 34 [email protected]
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 35 [email protected]
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 36 [email protected]
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 37 [email protected]
Agenda
Was sollte überwacht werden?
Monitoring-Werkzeuge
Oracle Management Pack für OGG
Zusammenfassung
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 38 [email protected]
Zusammenfassung
Überwachen Sie Oracle GoldenGate!
Mehrere Monitoring-Optionen
– Kommandozeile, Parameter, Skripte
– GUI
Oracle GoldenGate Management Pack für Oracle GoldenGate
– Grafisches Tool
– Vereinfacht die OGG-Administration
– 3 Produkte für 1 Preis
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 39 [email protected]
Quellen
Oracle GoldenGate Administrator‘s Guide
– Kap 18: Monitoring Oracle GoldenGate Processing
Oracle GoldenGate Reference Guide
Data Sheet
– Oracle Management Pack for Oracle GoldenGate
https://www.xing.com/profile/Ileana_Somesan
https://www.linkedin.com/in/ileanasomesan
@ileanasomesan
http://isblog.de/
de.slideshare.net/somesan
Q&A Q&A
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 41 [email protected]
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 42 [email protected]