oracle goldengate monitoring
Post on 24-May-2015
376 Views
Preview:
DESCRIPTION
TRANSCRIPT
Ileana Someşan, Senior Systemberaterin
Oracle GoldenGate Monitoring
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 2 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
GGSCI
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 7 ileana.somesan@oracle.com
OGG Kommandozeile
./ggsci im OGG-Installationsverzeichnis aufrufen
GGSCI> HELP
GGSCI> HELP command
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 8 ileana.somesan@oracle.com
Prozessübersicht
GGSCI> INFO ALL
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 9 ileana.somesan@oracle.com
Prozessdetails
GGSCI> INFO MGR
GGSCI> INFO ER ora_*
GGSCI> INFO proc_name DETAIL
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 10 ileana.somesan@oracle.com
Prozess-Checkpoints
Aktuelle Lese- und Schreibposition
eines Prozesses
GGSCI> INFO proc_name SHOWCH
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 11 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
Verarbeitetes Datenvolumen
GGSCI> STATS proc_name TOTAL
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 13 ileana.somesan@oracle.com
Aufgetretene Konflikte
GGSCI> STATS replicat_name REPORTCDR
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 14 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
Wichtige Dateien
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 16 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
Benutzerdefinierte Skripte
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 20 ileana.somesan@oracle.com
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" you@mail.com; fi
Sende eine E-Mail Benachrichtigung, falls ein OGG-Prozess unerwartet beendet wurde.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 21 ileana.somesan@oracle.com
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" you@mail.com;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 ileana.somesan@oracle.com
Erweiterte Parametereinstellungen
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 23 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
• 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 ileana.somesan@oracle.com
• 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 ileana.somesan@oracle.com
• „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 ileana.somesan@oracle.com
OGG Monitor
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 32 ileana.somesan@oracle.com
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 33 ileana.somesan@oracle.com
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 34 ileana.somesan@oracle.com
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 35 ileana.somesan@oracle.com
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 36 ileana.somesan@oracle.com
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 37 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
Quellen
Oracle GoldenGate Administrator‘s Guide
– Kap 18: Monitoring Oracle GoldenGate Processing
Oracle GoldenGate Reference Guide
Data Sheet
– Oracle Management Pack for Oracle GoldenGate
ileana.somesan@oracle.com
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 ileana.somesan@oracle.com
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 42 ileana.somesan@oracle.com
top related