53
Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

  • Upload
    others

  • View
    14

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

Grid Infrastructure und ASM

Einsatz und Administration nicht nur für RAC

Timo Giese

Öffentlich (C1)

Page 2: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AGÖffentlich (C1)

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017 2

Agenda

Warum GI und ASM ohne RAC?2.

Aufbauvarianten3.

GI und ASM Installation4.

GI Administration5.

ASM Administration6.

GI und ASM Prozesse7.

Logfiles8.

Erfahrungen9.

Unterschiede zum RAC / Rac One Node10.

Nützliche Tools11.

Fazit12.

Über uns1.

Page 3: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Genossenschaftliche

Spezialbanken

45

Öffentlich (C1)

Breit gefächerte Zielmärkte

Mehr als 1.200 Kunden und Eigentümer in vier Zielmärkten sind die Basis für unsere erfolgreiche

Geschäftsstrategie.

Stand: 31.12.2016

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Marktkunden

158Verbundpartner

74

Volksbanken und

Raiffeisenbanken

9321209

Kunden

3

Page 4: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Wir bedienen Kunden in vier Zielmärkten – im Fokus sind unsere Eigentümer

Volksbanken und Raiffeisenbanken

Bündelung der Kunden in vier Zielmärkte

Öffentlich (C1)

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Gründungsauftrag

Volksbanken

Raiffeisenbanken

Integrationsförderer Eine IT in der GFG*

VerbundpartnerGenossenschaftliche

Spezialbanken

Genossenschaftliche FinanzGruppe

Fokussierte Markterweiterung

Marktkunden

* Genossenschaftliche FinanzGruppe Volksbanken Raiffeisenbanken

4

Page 5: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Systeme und Dienstleistungen für Personalabteilungen

IT-Fach- und Prozessberatung für Privat- und

Spezialbanken, Konzeption bankindividueller Lösungen

Softwarelösungen für Risikomanagement und Controlling

Vor-Ort-Services für technische Infrastruktur

Beratung, Projektmanagement, Softwareentwicklung,

Qualitätssicherung

Warenwirtschaft für verbundorientierte Handels- und

Dienstleistungsunternehmen

Outsourcing-Lösungen für Backoffice, Inbound und

Outbound, sowie 24h-Service für Bankkunden

Unsere Unternehmensgruppe

Öffentlich (C1)

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Die Unternehmen in der Gruppe bieten vielfältige IT-Dienstleistungen.

5

Page 6: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Karlsruhe und Münster

Vorstand, Verwaltung, Produktmanagement, Entwicklung,

Produktion, Vertrieb, Kundenservice und Druck

München

Produktmanagement, Entwicklung, Vertrieb und

Kundenservice

Berlin

Vertrieb und Druck

Frankfurt

Satzungssitz und Vertrieb

Öffentlich (C1)

Unsere Standorte

Fünf Standorte in Deutschland bieten Sicherheit und Kundennähe.

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Karlsruhe

München

Berlin

Frankfurt

Münster

6

Page 7: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AGÖffentlich (C1)

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017 7

Agenda

Über uns1.

Aufbauvarianten3.

GI und ASM Installation4.

GI Administration5.

ASM Administration6.

GI und ASM Prozesse7.

Logfiles8.

Erfahrungen9.

Unterschiede zum RAC / Rac One Node10.

Nützliche Tools11.

Fazit12.

Warum GI und ASM ohne RAC?2.

Page 8: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Warum GI und ASM ohne RAC?

Öffentlich (C1)

einheitlicher Administrationslayer

Umstieg / Ergänzung um RAC-Datenbanken einfacher

ASM basierte Datenbanken haben eine optimierte IO-Performance

Vorteile von RAW-Devices ohne komplizierte Verwaltung

seit 12c sind Raw-Devices „desupported“

GridInfrastructure zur Ressourcensteuerung vereinfacht die Basisadministration

Integration weiterer Oracle Technologien in GI möglich, z.B. Golden Gate

GI kann Third Party Applikationen mit eigenen Skripten steuern (Start/Stop/Monitor), z.B. Apache

Webserver

8Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 9: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AGÖffentlich (C1)

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017 9

Agenda

Über uns1.

Warum GI und ASM ohne RAC?2.

GI und ASM Installation4.

GI Administration5.

ASM Administration6.

GI und ASM Prozesse7.

Logfiles8.

Erfahrungen9.

Unterschiede zum RAC / Rac One Node10.

Nützliche Tools11.

Fazit12.

Aufbauvarianten3.

Page 10: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Aufbauvarianten

Öffentlich (C1)

Bare Metal (physikalisch)

Oracle VM Server for Sparc (LDOM)

virtuell (VM)

Oracle VM (OVM)

VMware ESX

Microsoft Hyper-V VM

Solaris Zonen (Flying Zone)

jede andere von Oracle unterstützte VM-Plattform

Kombinationen der vorangegangenen mit zusätzlicher Clusterware

für Failover Szenarien

WICHTIG: Oracle Lizensierung der jeweiligen Variante prüfen/beachten !!!

Grid Infrastructure „Single Server“

10Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 11: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Aufbauvarianten

Öffentlich (C1)

Architekturschaubild

11Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

REARTOP

CPU MEMFANSP PS

SATA DVD

FILLER

FILLER

FILLER

FILLER

FILLER

FILLER

SPARC T5-2

HDD 3

HDD 2

HDD 1

HDD 5

HDD 4

HDD 0

Storage

ASM

Grid Infrastructure Standalone

VM

DB1 DB2 DBn

REARTOP

CPU MEMFANSP PS

SATA DVD

FILLER

FILLER

FILLER

FILLER

FILLER

FILLER

SPARC T5-2

HDD 3

HDD 2

HDD 1

HDD 5

HDD 4

HDD 0

Listener +DATA +RECO

Disk

1

Disk

3

Disk

2

Disk

4

Clusterware

Page 12: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

External Redundancy Spiegelung durch OS, Storagebox, NAS

Alle Raid Level abbildbar

Verfügbare Kapazität: Größe nach Spiegelung der Devices

Normal Redundancy ASM spiegelt, Alle Datenblöcke werden auf 2 Devices

gespeichert, d.h. ein Ausfall von einem Devices wird abgefangen

Verfügbare Kapazität: Anzahl der Devices / 2

High Redundancy ASM spiegelt, alle Datenblöcke werden auf 3 Devices gespeichert,

d.h. ein Ausfall von 2 Devices wird abgefangen

Verfügbare Kapazität: Anzahl Devices / 3

Aufbauvarianten

Öffentlich (C1)

ASM Storage Layer

12Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 13: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Aufbauvarianten

Öffentlich (C1)

UDEV

standardmäßig in Linux vorhanden

ASMLib

Oracle Utility zum Labeln von Devices + Berechtigungen setzen

ASM Filter Driver (ab Version 12.1.0.2)

wie ASMLib

blockiert nicht Oracle Schreibzugriffe auf ASM-Devices

in 12.2 direkt bei Installation GI auswählbar

Devicenamen und Zugriffsrechte

13Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 14: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AGÖffentlich (C1)

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017 14

Agenda

Über uns1.

Warum GI und ASM ohne RAC?2.

Aufbauvarianten3.

GI Administration5.

ASM Administration6.

GI und ASM Prozesse7.

Logfiles8.

Erfahrungen9.

Unterschiede zum RAC / Rac One Node10.

Nützliche Tools11.

Fazit12.

GI und ASM Installation4.

Page 15: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

GI und ASM Installation

Öffentlich (C1)

bis 12.1.0.2: runInstaller Installation Software und Konfiguration

ab 12.2.0.1: gridSetup.sh Konfiguration der Software ( Installation: Entpacken Install-Zip)

15Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 16: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AGÖffentlich (C1)

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017 16

Agenda

Über uns1.

Warum GI und ASM ohne RAC?2.

Aufbauvarianten3.

GI und ASM Installation4.

ASM Administration6.

GI und ASM Prozesse7.

Logfiles8.

Erfahrungen9.

Unterschiede zum RAC / Rac One Node10.

Nützliche Tools11.

Fazit12.

GI Administration5.

Page 17: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

GI Administration

Öffentlich (C1)

GI wird per Default automatisch beim Neustart eines Servers gestartet/gestoppt

Integration in die Betriebssystem Start-/Stop Steuerung (systemd, runlevel,etc.)

manuelles Starten und Stoppen (als GI-User):

crsctl start has

crsctl stop has

Autostart enablen/disablen (als GI-User), z.B. bei OS-Patching:

crsctl disable has

crsctl enable has

Starten / Stoppen / Deaktivieren der GI

17Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 18: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

GI Administration

Öffentlich (C1)

DBCA (automatisch bei Erstellung einer neuen Datenbank)

Commandline / gescripted

srvctl add database -db <db_unique_name> -oraclehome=<OH> …

Datenbanken hinzufügen

18Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Usage: srvctl add database -db <db_unique_name> -oraclehome <oracle_home> [-domain <domain_name>] [-spfile <spfile>] [-pwfile <password_file_path>] [-

role {PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY | SNAPSHOT_STANDBY | FAR_SYNC}] [-startoption <start_options>] [-stopoption

<stop_options>] [-dbname <db_name>] [-instance <inst_name>] [-policy {AUTOMATIC | MANUAL | NORESTART}] [-diskgroup "<diskgroup_list>"]

-db <db_unique_name> Unique name for the database

-oraclehome <path> Oracle home path

-domain <domain> Domain for database. Must be set if database has DB_DOMAIN set.

-spfile <spfile> Server parameter file path

-pwfile <password_file_path> Password file path

-role <role> Role of the database (PRIMARY, PHYSICAL_STANDBY, LOGICAL_STANDBY, SNAPSHOT_STANDBY, FAR_SYNC)

-startoption <start_options> Startup options for the database. Examples of startup options are OPEN, MOUNT, or "READ ONLY".

-stopoption <stop_options> Stop options for the database. Examples of shutdown options are NORMAL, TRANSACTIONAL, IMMEDIATE, or ABORT.

-dbname <db_name> Database name (DB_NAME), if different from the unique name given by the -db option

-instance <inst_name> Instance name

-policy <dbpolicy> Management policy for the database (AUTOMATIC, MANUAL, or NORESTART)

-diskgroup "<diskgroup_list>" Comma separated list of disk group names

-verbose Verbose output

-help Print usage

Page 19: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

GI Administration

Öffentlich (C1)

Jede Datenbank kann mehrere Services erhalten ( != Default Service Name)

srvctl add service -db <db_unique_name> -service <SN> [ -pdb <PDB Name>] …

Services hinzufügen

19Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Usage: srvctl add service -db <db_unique_name> -service <service_name> [-role [PRIMARY][,PHYSICAL_STANDBY][,LOGICAL_STANDBY][,SNAPSHOT_STANDBY]] [-

policy {AUTOMATIC | MANUAL}][-notification {TRUE|FALSE}] [-clbgoal {SHORT|LONG}] [-rlbgoal {NONE|SERVICE_TIME|THROUGHPUT}][-failovertype

{NONE|SESSION|SELECT|TRANSACTION}] [-failovermethod {NONE|BASIC}][-failoverretry <failover_retries>] [-failoverdelay <failover_delay>] [-edition <edition>] [-pdb

<pluggable_database>] [-global <TRUE|FALSE>] [-maxlag <max_lag_time>] [-sql_translation_profile <sql_translation_profile>] [-commit_outcome {TRUE|FALSE}] [-

retention <retention>] [replay_init_time <replay_initiation_time>] [-session_state {STATIC|DYNAMIC}] [-force]

-db <db_unique_name> Unique name for the database

-service <service> Service name

-role <role> Role of the service (primary, physical_standby, logical_standby, snapshot_standby)

-pdb <pluggable_database> Pluggable database name

-force Force the add operation even though a listener is not configured for a network

-verbose Verbose output

Page 20: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

GI Administration

Öffentlich (C1)

Datenbank

srvctl start/stop database -db <db_unique_name>

Service

srvctl start/stop service -db <db_unique_name> -service <service_name>

Listener

srvctl start/stop listener

Third Party Komponenten

crsctl start/stop <resName>

Starten / Stoppen von Ressourcen

20Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 21: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

GI Administration

Öffentlich (C1)

srvctl

Status nur auf Einzelobjektebene möglich

• srvctl status database -db <db_unique_name>

• srvctl status service -db <db_unique_name> -service <service_name>

weitere wichtige Stati

• Listener srvctl status listener

Stati darstellen „srvctl“

21Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 22: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

GI Administration

Öffentlich (C1)

srvctl

weitere wichtige Stati

• ASM srvctl status asm

• Diskgroup srvctl status diskgroup -diskgroup <DG>

Stati darstellen „srvctl“

22Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 23: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

GI Administration

Öffentlich (C1)

Status aller Ressourcen

• crsctl stat res -t

Stati darstellen „crsctl“

23Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 24: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

GI Administration

Öffentlich (C1)

mit „srvctl“

srvctl config database -db <db_unique_name>

Konfiguration von Ressourcen anzeigen I

24Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 25: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

GI Administration

Öffentlich (C1)

mit crsctl

crsctl stat res <resName> -p

resName = Ressourcenname aus

Statusanzeige „crsctl stat res -t“

resNamen beginnen mit „ora.“

Konfiguration von Ressourcen anzeigen II

25Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 26: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

GI Administration

Öffentlich (C1)

mit „srvctl“

srvctl modify database -db <db_unique_name> [ -option <VALUE> ]

srvctl modify service -db <db_unique_name> -service <SN> [ -option <VALUE> ]

srvctl modify listener …

srvctl modify asm …

Ressourceneinstellungen ändern

26Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 27: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AGÖffentlich (C1)

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017 27

Agenda

Über uns1.

Warum GI und ASM ohne RAC?2.

Aufbauvarianten3.

GI und ASM Installation4.

GI Administration5.

GI und ASM Prozesse7.

Logfiles8.

Erfahrungen9.

Unterschiede zum RAC / Rac One Node10.

Nützliche Tools11.

Fazit12.

ASM Administration6.

Page 28: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

ASM Administration

Öffentlich (C1)

sqlplus

alle Administrationstasks ausführbar

Anmeldung mit „/ as sysasm“

asmcmd (CLI)

Stati von Diskgruppen und Devices anzeigen

Kopieren von Dateien ASM<->Filesystem

„Datei-Explorer“ , Datenbankfiles sind sichtbar

asmca (CLI + grafische GUI)

ASM Konfiguration

Erstellen von Diskgruppen

Devices Diskgruppen hinzufügen

Administrationsutilities

28Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 29: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

ASM Administration

Öffentlich (C1)

Diskgruppe - Übersicht

asmcmd lsdg -g <DG>

Diskgruppenzusammensetzung

asmcmd lsdsk -k -G <DG>

Verfügbare Devices anzeigen

asmcmd lsdsk -k --candidate

Diskgruppen- und Devicestati

29Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 30: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

ASM Administration

Öffentlich (C1)

asmca

grafisch

CLI

asmca -silent -addDisk -diskGroupName <DG> -disk <DiskName>

Diskname bei Einsatz von ASMLib: ORCL:<LABEL>

Diskname bei Einsatz von AFD: AFD:<LABEL>

Diskgruppe erweitern

30Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 31: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

ASM Administration

Öffentlich (C1)

alter diskgroup <DG> drop disk <DISK>;

„Drop“ passiert asynchron

Fortschritt kann mit „asmcmd“ oder

sqlplus beobachtet werden

Devices aus Diskgruppe entfernen

31Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 32: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

ASM Administration

Öffentlich (C1)

asmcmd mit Option „iostat“

einschränkbar auf einzelne Diskgruppen

Lese- und Schreibzeit (-t)

Anzahl I/O‘s (--io)

I/O Performance

32Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 33: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AGÖffentlich (C1)

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017 33

Agenda

Über uns1.

Warum GI und ASM ohne RAC?2.

Aufbauvarianten3.

GI und ASM Installation4.

GI Administration5.

ASM Administration6.

Logfiles8.

Erfahrungen9.

Unterschiede zum RAC / Rac One Node10.

Nützliche Tools11.

Fazit12.

GI und ASM Prozesse7.

Page 34: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

GI und ASM Prozesse

Öffentlich (C1)

Grid Infrastructure

34Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 35: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

GI und ASM Prozesse

Öffentlich (C1)

ASM Prozesse - Instanz

35Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 36: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

GI und ASM Prozesse

Öffentlich (C1)

ASM Prozesse - Datenbank

36Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 37: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AGÖffentlich (C1)

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017 37

Agenda

Über uns1.

Warum GI und ASM ohne RAC?2.

Aufbauvarianten3.

GI und ASM Installation4.

GI Administration5.

ASM Administration6.

GI und ASM Prozesse7.

Erfahrungen9.

Unterschiede zum RAC / Rac One Node10.

Nützliche Tools11.

Fazit12.

Logfiles8.

Page 38: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Logfiles

Öffentlich (C1)

befinden sich im Automatic Diagnostic Repository (ADR)

ORACLE_BASE/diag

Grid Infrastructure

diag/crs/…

zentrales Logfile: diag/crs/<hostname>/crs/trace/alert.log (Text-Alertlog)

ASM

diag/asm/…

zentrales Logfile: diag/asm/asm/+asm/+ASM/trace/alert_+ASM.log (Text-Alertlog)

alle Einzelkomponentenlogfiles sind ebenfalls im „trace-Verzeichnis“

Wo sind die Logfiles bei Problemen?

38Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 39: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AGÖffentlich (C1)

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017 39

Agenda

Über uns1.

Warum GI und ASM ohne RAC?2.

Aufbauvarianten3.

GI und ASM Installation4.

GI Administration5.

ASM Administration6.

GI und ASM Prozesse7.

Logfiles8.

Unterschiede zum RAC / Rac One Node10.

Nützliche Tools11.

Fazit12.

Erfahrungen9.

Page 40: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Erfahrungen

Öffentlich (C1)

Parameter: audit_sys_operations= true (ab 12.1)

suboptimal, da ALLE sys-Commands gelogged werden $GI_HOME/rdmbs/audit

• kein automatisches Logrotate

• exponentielles Wachstum

• Löschen bei zu später Erkenntnis nur mit „find $GI_HOME/rdbms/audit –exec rm {} \;

möglich („rm“ bringt Fehlermeldung)

40Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 41: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Erfahrungen

Öffentlich (C1)

Parameter: processes

Parameter „processes“ der ASM Instanz ist standardmäßig auf 120 gesetzt.

• evtl. Probleme bei konsolidierten Single Instance Umgebungen mit vielen Datenbanken

• treten erst beim Neustart des GI-Stacks auf und sind im laufenden Betrieb schwer zu

erkennen

• Manuelle Tätigkeiten, wenn das Limit überschritten wird

41Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 42: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Erfahrungen

Öffentlich (C1)

Listener Home ist bei GI-ASM Installationen != Datenbank-Home

mehrere sqlnet.ora und tnsnames.ora Files vorhanden

es greift die Konfiguration aus dem Home, welche Komponente angesprochen wird

Parameter für die ASM-Instanz stehen in GI_HOME/network/admin

Parameter für die Datenbank stehen im ORACLE_HOME/network/admin

42Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 43: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AGÖffentlich (C1)

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017 43

Agenda

Über uns1.

Warum GI und ASM ohne RAC?2.

Aufbauvarianten3.

GI und ASM Installation4.

GI Administration5.

ASM Administration6.

GI und ASM Prozesse7.

Logfiles8.

Erfahrungen9.

Nützliche Tools11.

Fazit12.

Unterschiede zum RAC / Rac One Node10.

Page 44: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Unterschiede zum RAC / Rac One Node

Öffentlich (C1)

mehr als eine ASM Instanz ( pro Knoten jeweils eine ASM-Instanz – Instanzname +ASM(1-N) )

ein Clusterinterconnect wird für die Grid Infrastructure benötigt

Devices müssen als Shared Disk zwischen den Knoten zur Verfügung stehen

Zusätzlich gibt es einen SCAN-Listener

RAC Loadbalancing der Connections zwischen den Knoten

RAC One Node unterstützt Online Failover bei geplanter Wartung

44Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 45: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Unterschiede zum RAC / Rac One Node

Öffentlich (C1)

Basiskonzepte der Grid Infrastructure Standalone sind weiterhin gültig

Administrations-Utilities sind die Gleichen

Administartions-Utilities ergänzt um weitere Optionen

RAC/RAC One Node haben zusätzliche Utilities für die Clusterkonfiguration und

Clusterverwaltung

45Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 46: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AGÖffentlich (C1)

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017 46

Agenda

Über uns1.

Warum GI und ASM ohne RAC?2.

Aufbauvarianten3.

GI und ASM Installation4.

GI Administration5.

ASM Administration6.

GI und ASM Prozesse7.

Logfiles8.

Erfahrungen9.

Unterschiede zum RAC / Rac One Node10.

Fazit12.

Nützliche Tools11.

Page 47: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Nützliche Utilities

Öffentlich (C1)

./asmdu.sh

Databases on dbserver : +ASM, ORCL

DiskGroup Total_MB Free_MB % Free

--------- -------- ------- ------

ASM 9208 9112 98

DATA 8395816 1808928 21

FRA 1433368 1359848 94

https://www.pythian.com/blog/asmcmdgt-better-du-version-2/

https://raw.githubusercontent.com/freddenis/oracle-scripts/master/asmdu.sh

asmdu.sh (by Fred Denis)

47Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

cat asmdu.sh

...

#

# Colored thresholds (Red, Yellow, Green)

#

CRITICAL=90

WARNING=75

...

Page 48: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Nützliche Utilities

Öffentlich (C1)

https://bdrouvot.wordpress.com/asm_metrics_script/

https://bdrouvot.wordpress.com/asm_metrics_source/

asm_metrics.pl (by Bertrand Drouvot)

48Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 49: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Nützliche Utilities

Öffentlich (C1)

CloudControl

49Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 50: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AGÖffentlich (C1)

Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017 50

Agenda

Über uns1.

Warum GI und ASM ohne RAC?2.

Aufbauvarianten3.

GI und ASM Installation4.

GI Administration5.

ASM Administration6.

GI und ASM Prozesse7.

Logfiles8.

Erfahrungen9.

Unterschiede zum RAC / Rac One Node10.

Nützliche Tools11.

Fazit12.

Page 51: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

© Fiducia & GAD IT AG

Fazit

Öffentlich (C1)

Grid Instrastructure und ASM sind kein Mysterium mehr

gute Performance

einfache Administration

geeignet zur Konsolidierung von Datenbanken

Einbindung Third Party Applikationen in GI möglich

51Grid Infrastructure und ASM - Einsatz und Administration nicht nur für RAC | 31.5.2017

Page 52: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

Fragen?

Öffentlich (C1)

Page 53: Grid Infrastructure und ASM - doag.org · Grid Infrastructure und ASM Einsatz und Administration nicht nur für RAC Timo Giese Öffentlich (C1)

Vielen Dank!

Öffentlich (C1)