Upload
truonghanh
View
213
Download
0
Embed Size (px)
Citation preview
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
EM 13c als zentrales Werkzeug für den IT Dienstleister Praxiserfahrungen der Gisa GmbH
Martin Obst Matthias Reimann Leitender Systemberater Datenbankadministrator Oracle Deutschland B.V. & Co. KG Gisa GmbH 16. November 2016
Oracle Confidential – Internal/Restricted/Highly Restricted
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Safe Harbor Statement
The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
Oracle Confidential – Internal/Restricted/Highly Restricted 3
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Program Agenda
Gisa GmbH
Projektbeschreibung
Warum der Enterprise Manager?
Zusammenfassung
Fragen und Antworten
1
2
3
4
5
Oracle Confidential – Internal/Restricted/Highly Restricted 4
© GISA GmbH | DBs für MAN P 3.2 | Matthias Reimann | 13.09.2016 | Folie 5
Fußzeile anpassen auf Master über Menü: Ansicht // Masteransichten // Folienmaster
Folie in Ursprungsform
bringen über Menu:
Start // Folien // Zurücksetzen
Wechsel des Folienlayouts
im Menü über:
Start // Folien // Layout
Wechsel der Textebene
im Menü über:
Start // Absatz // Listenebene
erhöhen/verringern
Hilfslinien anzeigen über Menu: Ansicht // Anzeigen // Haken bei Führungslinien setzten
12,00
02,00 cm 12,00
cm 26,00
05,60
04,90 cm
18,50 cm
08,00
06,05 cm
04,45
20 Jahre erfolgreiche Unternehmensgeschichte.
IT-Komplettdienstleister.
Branchenspezialist Energiewirtschaft und
öffentliche Auftraggeber.
Seit 1993 erfolgreich am Markt.
Hauptsitz ist Halle (Saale).
Mehr als 650 Mitarbeiter an sechs Standorten.
Umsatz 2015: 87,1 Mio Euro (nach IFRS).
Mehr als 240 Kunden vertrauen unseren Leistungen.
Exzellentes Branchen- und Prozess-Know-how.
BSI-zertifiziertes Hochleistungsrechenzentrum.
Mehrfach zertifizierter SAP- und Microsoft-Partner.
10 DBAs und 250 betreute nonSAP Oracle DBs
Die GISA
GISA in Zahlen und Fakten
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Überblick über das Projekt
• Endkunde
• verschiedene Dienstleister für
– Rechenzentrum Infrastruktur
– Server
– OVM / virtuelle Maschinen + Betriebssysteme
– Datenbanken (Oracle DB, MS SQL Server)
– Application Server + Anwendungen
Oracle Confidential – Internal/Restricted/Highly Restricted 6
Gisa
DL
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Konzentration auf den Bereich Oracle Datenbanken
• Voraussetzung: virtuelle Maschinen mit Betriebssystem
• Übernahme der Maschinen in EM als Targets
• Provisionierung der Datenbanken
+ Überwachung
+ Sicherung
+ Administration (User, Tablespaces, Parameter, Daten-Ex/Import, ...)
+ Performance
+ Verfügbarkeit
Oracle Confidential – Internal/Restricted/Highly Restricted 7
Gisa
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Kunde ITSM
Vertraglicher Ablauf
Oracle Confidential – Internal/Restricted/Highly Restricted 8
... Neue DB für Service XY ...
Bereitstellung virtuelle Maschine mittels
Oracle VM Einbindung in den
Enterprise Manager
Provisionierung der Datenbank
Bereitstellung der Schemata
Konfiguration des Backups Patching
Trouleshooting
Deprovisionierung
Kunde
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Warum der Enterprise Manager?
• transparente Erbringung der Leistung
– Auditierung / Revision
...
• Leistungs-Kontrolle und -Abrechnung
– extern generierter Inventarbericht mit allen relevanten Größen (Größen, Anzahlen, ...)
– Service-orientierte Abrechnung => jedem Service ist ein Endkunde/Bezahler zugeordnet
– Incident-Verarbeitung
– Job-Verarbeitung
– Archivierung von Job-Verarbeitungen
Oracle Confidential – Internal/Restricted/Highly Restricted 9
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Warum der Enterprise Manager?
• EM Cloud Control stellt alle benötigten Funktionen zur Verfügung
– Jobsystem ... für a l l e administrativen Eingriffe
– Provisionierungs-Prozeduren ... zur Bereitstellung der Oracle DB
– unterschiedliche Sichten als Dienstleister oder als Kunde ... ... durchgehende Transparenz
– Dokumentation
– Berichtssystem (BI Publisher) ... => Leistungs-Darstellung als Grundlage der Abrechnung
• immer service-bezogene Leistungserbringung => service-bezogene Abrechnung
Oracle Confidential – Internal/Restricted/Highly Restricted 10
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
EM-Einbindung
• Netzwerk Scan für 1 oder mehrere neue IP
• gleiche Credentials auf allen Systemen
• gleiche Verzeichnis-Strukturen auf allen Systemen
• Installation der Agenten
Oracle Confidential – Internal/Restricted/Highly Restricted 11
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle Confidential – Internal/Restricted/Highly Restricted 12
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle Confidential – Internal/Restricted/Highly Restricted 13
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle Confidential – Internal/Restricted/Highly Restricted 14
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle Confidential – Internal/Restricted/Highly Restricted 15
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle Confidential – Internal/Restricted/Highly Restricted 16
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle Confidential – Internal/Restricted/Highly Restricted 17
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Backup-Konfiguration
Oracle Confidential – Internal/Restricted/Highly Restricted 25
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Standards sind zwingende Voraussetzung!
• alle virtuellen Maschinen gleich
– Verzeichnis-Strukturen
– Credentials
• alle Datenbanken gleich – Admin-Credentials,
– Parameter
– Anpassungen gemäß Change-Anforderungen aus zentralem Service Management
• passwort-loser OS-Betrieb
• personen-bezogener DBA-Betrieb
Oracle Confidential – Internal/Restricted/Highly Restricted 26
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 27
Einfaches Beispiel: SVC_DOAG-raccoon-dbee Alles beruht auf Services: • Beantragung / Beauftragung • Bereitstellung • Monitoring • Backup / Recovery • DB-User / Berechtigungen • verschiedenste Anpassungen • Daten Export/Import • Löschung • Abrechnung • ...
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Services Homepage
• < 200 generic Services im echten Projekt
• nur 1 generic Service in diesem Beispiel
Oracle Confidential – Internal/Restricted/Highly Restricted 28
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Service Homepage
knapper Überblick bzgl. der Verfügbarkeit
Oracle Confidential – Internal/Restricted/Highly Restricted 29
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
System
Server
DB
Agent
Host
Listener
Oracle Homes
Service
Service Topologie
Generischer Service beruht auf generischem System mit verschiedenen Komponenten
Oracle Confidential – Internal/Restricted/Highly Restricted 30
unser Beispiel
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 31
Ziel: Abrechenbare Überwachung der Services
• Anzeige der verfügbaren Metriken • für den Kunden sind nur ausgewählte
Metriken relevant (SLA) • Response per Transaction (ms) !
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 33
• asddfds
Konfiguration von Performance Metriken
• Metriken werden nur nach Konfiguration angezeigt • gezielte Auswahl
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Konfiguration von Performance Metriken
Oracle Confidential – Internal/Restricted/Highly Restricted 34
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle Confidential – Internal/Restricted/Highly Restricted 35
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle Confidential – Internal/Restricted/Highly Restricted 36
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle Confidential – Internal/Restricted/Highly Restricted 37
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle Confidential – Internal/Restricted/Highly Restricted 38
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Oracle Confidential – Internal/Restricted/Highly Restricted 39
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Abrechnung der erbrachten Leistung
• Regelmäßige Berichte mittels BI Publisher
• aus Zeitgründen hier Nutzung des Information Publishers (deprecated)
• Nachweis der Performance der verschiedenen Services (immer auf Service-Ebene)
• Nachweis der einzelnen Arbeiten für die verschiedenen Services (immer über Jobs)
Oracle Confidential – Internal/Restricted/Highly Restricted 40
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Abfrage der mittleren Performance pro Transaktion SELECT DISTINCT SOURCE_TARGET_NAME Service, TARGET_NAME, COLUMN_LABEL, AVERAGE, MINIMUM, MAXIMUM, ROLLUP_TIMESTAMP
FROM
( SELECT DISTINCT ta.SOURCE_TARGET_NAME, md.TARGET_NAME, md.COLUMN_LABEL, md.AVERAGE,md.MINIMUM, md.MAXIMUM, TO_CHAR(md.ROLLUP_TIMESTAMP,'yyyy-mm-dd') ROLLUP_TIMESTAMP
FROM MGMT$METRIC_DAILY md INNER JOIN MGMT$TARGET_ASSOCIATIONS ta
ON ta.ASSOC_TARGET_NAME=md.TARGET_NAME
WHERE md.COLUMN_LABEL = 'Response Time (per transaction)'
AND ta.SOURCE_TARGET_NAME LIKE 'DOAG%'
Oracle Confidential – Internal/Restricted/Highly Restricted 41
Service
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 42
Report zur Performance
Mess-Zeitraum
Service
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Abfrage der erledigten Jobs
select e.SOURCE_TARGET_NAME Service, d.TARGET_NAME,
a.JOB_NAME, d.status, d.START_TIME, d.END_TIME,
a.JOB_DESCRIPTION
from sysman.MGMT$JOBS a,
sysman.MGMT$JOB_EXECUTION_HISTORY d,
sysman.MGMT$TARGET_ASSOCIATIONS e
where e.SOURCE_TARGET_NAME like 'DOAG%'
and a.JOB_ID=d.job_id
and e.ASSOC_TARGET_NAME=d.TARGET_NAME
and (a.job_name like 'CREATE USER%' or a.job_name like
'EXPORT%' or a.job_name like 'IMPORT%')
Oracle Confidential – Internal/Restricted/Highly Restricted 43
Service
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 44
Ausführungszeit
Service
Report zur Job-Abrechnung
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Kunde ITSM
Zusammenfassung
Oracle Confidential – Internal/Restricted/Highly Restricted 45
... Neue DB für
Service XY ...
Bereitstellung virtuelle Maschine mittels
Oracle VM Einbindung in Cloud Control
Provisionierung der Datenbank
Bereitstellung der Schemata
Konfiguration des Backups Patching
Trouleshooting
Deprovisionierung
Kunde
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 46
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
• create_job
• Creates and schedules a job. This verb supports multi-task jobs.
• Note:
• EM CLI permits OS Script jobs to be run against database targets by setting the targetType property for -input_file in the create_job verb. For example: targetType=oracle_database You can set other target types similarly.
• EM CLI supports the following job types:
• ASMSQLScript ASSOCIATE_CS_FA ASSOCIATE_DOMAIN_FA AssociateClusterASM BlockAgent CoherenceCacheAddition CoherenceNodesRefresh Config Log Archive Locations DbMachineDashboard DiscoverPDBEntities FusionMiddlewareProcessControl GlassFishProcessControl InstallKernelModuleJob Log Rotation OSCommand OpatchPatchUpdate_PA RMANScript RefreshFromEMStore RefreshFromMetalink RefreshFusionInstance SOABulkRecovery SQLScript ShutdownDB StartDepartedCohNodes StartDepartedCohStoreNodes StartFusionInstance StartupDB StatspackPurge StopFusionInstance Upgrade Exalogic Systems WebLogic Control WebLogic Domain Discover WebLogic Domain Refresh Note:
• Not all job types support all target types. Use describe_job_type to determine which target types are supported for a given job type.
• Format
• emcli create_job -input_file=property_file:"filename"
[-name="job_name"] [-type="job_type"]
• Parameters
• name
• Name of the job.
• job_type
• Name of the job type. You can obtain a template property file for the job type by using the describe_job_type verb.
• input_file
• Provide the file name to load the properties for creating and scheduling the job. The property file must be accessible to the EM CLI client for reading. Another job of the same job type could also be used to generate the property file using the EM CLI verb describe_job.
• For more information about the input_file parameter, see Section 5.2, "-input_file Syntax Guidelines".
• Example
• This example creates and schedules a job with name MYJOB1 and job type MyJobType1 with the property file present at location /tmp/myjob1_prop.txt .
• emcli create_job -name=MYJOB1 -job_type=MyJobType1 -input_file="property_file:/tmp/myjob1_prop.txt"
Oracle Confidential – Internal/Restricted/Highly Restricted 48
EMCLI: create_job
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
• Creates a job using a library job as a template. This verb supports multi-task jobs.
• Format
• emcli create_job_from_library -lib_job_name="library_job_name" -name="new_job_name" [-owner="library_job_owner"] [-input_file=property_file:"filename"] [-appendtargets] [ ] indicates that the parameter is optional
• Parameters
• lib_job_name … Library job to use as a template.
• owner … Owner of the job. When this parameter is not specified, the default job owner is the logged in Enterprise Manager administrator.
• name … Name of the new job to be created. You can also specify the name in the property file. If no name is specified, a name is generated from the name of the library job.
• input_file … "filename" can be provided to load the properties for creating the job.
• If you specify a property file, the values in the property file override or append to existing values in the library job. If you do not specify a property file, the library job is submitted unchanged.
• For more information about the input_file parameter, see Section 5.2, "-input_file Syntax Guidelines".
• appendtargets … Appends targets in the property file to existing targets in the library job. Otherwise, library job targets are overwritten by targets in the property file if they are specified.
• Examples
• Example 1
• This example creates a job named MYJOB based on the library job MYLIBJOB1.
• emcli create_job_from_library -lib_job_name=MYLIBJOB1 -name=MyJob
• Example 2
• This example creates a job named MYJOB2 based on the library job MYLIBJOB1. Properties in /tmp/myjob1_prop.txt will override library job settings.
• emcli create_job_from_library -lib_job_name=MYLIBJOB1 -name=MyJob2 -input_file=property_file:/tmp/myjob1_prop.txt
Oracle Confidential – Internal/Restricted/Highly Restricted 49
EMCLI: create_job_from_library