Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 1
Neues im Überblick
Sebastian Solbach (Sebastian.Solbach@oracle.com, @s2solbach)
Ulrike Schwinn (Ulrike.Schwinn@oracle.com, @uschwinn)
BU Core & Cloud Technologies
Oracle Deutschland B.V. & Co KG
Beginn um 11:00
Audioübertragung über PC-Lautsprecher
Audio => Integrate Voice Conference=> Join Conference
Oracle Database 12c Release 2
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 2
Agenda
Download, Upgrade, Installation, Lizenzierung
12.2 Features: Wieso auf 12.2 upgraden?
Cloud Editionen
Weitere Termine/Material
1
2
3
4
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 3
Oracle Database 12c Release 2
• Press Release am 6. März
„Latest Release of Industry Leading Oracle
Database Now Available in the Cloud, with
Oracle Cloud at Customer, and On-
Premises”
• Download für Linux x86-64, Solaris Sparc,
Solaris x86-64 und Windows
• Offizielle Informationen
Release Schedule (MOS Doc ID 742060.1)
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 4
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
Oracle 11.2
(GA: Sep 2009)
Oracle 12.1
(GA: Jun 2013)
Oracle 12.2
(GA : Mar 2017)
Release Roadmap
Sustaining Support
DEC 2020DEC 2018JAN 2015
JUL 2021
Extended SupportWaived ExtendedPremier Support
JUN 2018
MAR 2025MAR 2022
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 5
Fragen zum Upgrade
• Gibt es überhaupt noch die Non CDB Architektur?
– Non-CDB still exists in Oracle Database 12.2.
• Upgrade Pfade
–Upgrade to Oracle Database 12.2 - New MOS Notes:
nonCDB: 2173141.1, Multitenant: 2173144.1, DBUA: 2189854.1
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 6
Plugin Methode: Migration von Non CDB in CDB
• Converting an 12.1 non-CDB and
plug it into an 12.2 CDB
• “You can't convert a stand-alone
database to become a container
database ”
• Übrigens ist auch eine Methode
für Cloud Migration (Using Oracle
Database Exadata Cloud Service)
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 7
• Kein C++ Kompiler mehr notwendig
• Separation of Duty: SYSRAC
• Dabei: TFA, SQLcl, SQL Developer
• Vereinfachte Cluster Installation
– Unzip + ./gridSetup.sh
– ASM Filter Driver Integration, separate ASM
Diskgroup für GI Management Repository
– Stretch Cluster Setup und Definition
Neues bei der Installation
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 8
Lizenzierung
• http://docs.oracle.com/database/122/nav/portal_booklist.htm
• Licensing Information User Manual
mit Permitted Features, Options und Management Packs
– Sharding
– Multitenant
– Active Data Guard
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 9
Einfach &
Automatisch
Tolerant bei
Fehlern
Online &
verfügbar
Performant
Wieso überhaupt nach 12c R2 migrieren?
Vereinfachung und Automatismen
Fehlertoleranz
Online Operationen
Performance
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 10
Einfach &
Automatisch
Tolerant bei
Fehlern
Online &
verfügbar
Performant
Wieso überhaupt nach 12c R2 migrieren?
Vereinfachung und Automatismen
• Development
• Hochverfügbarkeit
• Analytics
• Management
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 11
Core Datenbank Features
• Objektnamen für Tabellen, Spalten usw.
können nun länger als 128 Zeichen
(vorher 30) sein
– Aussagekräftige Bezeichungen
• AL32UTF8 ist der Default Datenbank Characterset
– Unicode 7.0 Support
Laaange Namen – Long Identifiers
CREATE TABLE
Sales_Data_For_Online_Transactions
(Transaction_Identifier
NUMBER(6),
Date_Of_Sales_Transaction DATE,
Gross_Value_of_Transaction
NUMBER(3,2),
. . .
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 12
Case insensitive Datenbank
• Sortierreihenfolge (engl. collation) und Case Insensitivität auf Schema,
Tabellen oder Spaltenebene definierbar
• Beispiel
SQL> select * from tab_ci where wort = 'Klein';
N WORT
---------- ----------
1 klein
2 KLEIN
3 Klein
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 13
„All Your Information“ in der Oracle Datenbank
JSON Support
• Einführung von JSON SQL Funktionen in 12.1
• 12.2: Neuerungen
– JSON Generierung
– Einfache Erzeugung von relationalen Views (*)
– Linguistische Suche (*)
– Automatische Schema Inferenzen (*)
(*) Stichwort Data Guide
– Optimiertes In-Memory Binary Format
Blog: JSON in 12.2: Noch mehr Funktionalität
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 14
Analytische Views
• BI Konzepte können in die Datenbank verlegt werden
• Einfaches SQL für komplexe analytische Abfragen
– Keine Joins oder GROUP-BY Klauseln nötig
– Nutzt Hierarchien ohne vordefinierte Berechnungen
– keine persistente Speicherung
• Arbeitet auf verschiedensten Datenquellen wie
existierenden Tabellen, external tables,
In-Memory Spalten
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 15
Analytische Views: http://www.vlamis.com/papers2017
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 16
(Active) Data Guard
• Standby anlegen: DBCA & EMCLI, RMAN Far Sync erzeugen
• Automatic Password File Management
• Einfache Reparatur „No Logging“ Operationen
• Migration & Failover von PDBs mit Broker
• Mehrere FSFO Ziele und Observer
• Active Data Guard: Session “Prewarming” auf Standby
• AWR & SQL Tuning Advisor auf Active Data Guard Standby
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 17
Multitenant Vereinfachung
• Unterstützung unterschiedlicher
Charactersets
• Memory, CPU Verteilung und
I/O Profile
• Applikationscontainer
– Gemeinsame Objekte für PDB
• Funktionen, Prozeduren, Metadaten und Stammdaten
– Einfache Applikationsupdates für PDBs
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 18
Einfach &
Automatisch
Tolerant bei
Fehlern
Online &
verfügbar
Performant
Wieso überhaupt nach 12c R2 migrieren?
Fehlertoleranz
• Security
• Development
• Verfügbarkeit
• Management
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 19
Erweiterte und neue SQL Funktionen
• Statt Fehler besser eine vordefinierte Ausgabe
– Konvertierungsfunktionen mit default 1000 on conversion error
– Bei listagg bei der Überschreitung der maximale Länge
• Vorab Prüfung ob eine Konvertierung möglich ist mit neuer Funktion
VALIDATE_CONVERSION
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 20
Lockdown Profile - Tenant Isolierung
• Verhindert gewisse Operationen/Optionen/Features in einer PDB
– Ausführung von Statements wie ALTER SYSTEM und ALTER SESSION
– Nutzung von Packages wie UTL_SMTP, UTL_HTTP usw.
– Zugriff auf Common User Objekte
– Cross-PDB Connections in einer CDB
– AWR Snapshots
– Verwendung von JAVA
– Nutzung gewisser Datenbankoptionen wie Advanced Queueing und Partitionierung
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 21
Stretch Cluster
• Installation ist Stretch Cluster Aware
– Cluster Setup im Extended Modus
– Knoten, Failgroups werden „Site“ Aware
• Neues „Extended“ Attribut für Flex Disk Gruppen
– Diskgruppen mit “Extended Redundancy” sind Site-Aware
– Extended Disk Groups unterstützen
mehrere Voting Disks Failgroups
– (zur besseren Fehlerbehebung)
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 22
Eine neue Architektur mit Sharding
• RAC und Data Guard erfüllen 99% der
Applikationsanforderungen
• Für einige globale OLTP Applikationen
bietet eine Unterteilung (Sharding) der
Daten immense Vorteile:
– Skalierungs- und
Verfügbarkeitsanforderungen einer einzigen
großen Datenbank können sehr hoch sein
– Datenmodell und Applikationen müssen aber
angepasst werden für das “Routing” zu den
richtigen Daten
FAQ: Oracle Sharding
Customers Americas
Customers
Customers Europe
Customers Asia
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 23
Sharding Funktionalitäten
• Automatisches Anlegen hunderter Shards + Data Guard / Golden Gate
• Unterschiedliche Sharding Methoden
– System Managed (Consistent Hash) - Uniform
– Composite : Range-Hash oder List-Hash
• Zentrale Schemaverwaltung
– Natives SQL für sharded & duplicated Tabellen
• Zugriffe
– Direktes Routing über Connectionpools
– Proxy Routing für übergreifende Abfragen
• Lifecycle Management
– Automatisches Rebalancing
– Shards können unterschiedliche Oracle Release stände haben
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 24
Einfach &
Automatisch
Tolerant bei
Fehlern
Online &
verfügbar
Performant
Wieso überhaupt nach 12c R2 migrieren?
Online Operationen
• Security
• Verfügbarkeit
• Management
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 25
Online Operationen auf Tabellen und Partitionen
• Nun auch ein online Table Move
• Weitere online Partition Maintenance Operationen
– Konvertierung einer nicht partitionierten Tabelle in eine
partitionierte Tabelle
– Online SPLIT Partition und Subpartition
• Erweiterungen bei DBMS_REDEFINITION
– Rollback, Restart nach Failure, Redefinition Fortschritt Monitoring …
SALESTABLE
Q1 Q2 Q3
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 26
Online Tablespace Verschlüsselung
• 12.1: Offline
– alter database datafile '…'
encrypt;
– Expdp/Impdp
– Oder Physical Standby
• 12.2: Immer Online
– Verschlüsseln, Neu Verschlüsseln (ReKey)
• benötigt zusätzlichen Platz
– Volle Verschlüsselung interner Datenbank
Strukturen, wie SYSTEM, SYSAUX, UNDO
– ENCRYPT_NEW_TABLESPACES =
{ CLOUD_ONLY | ALWAYS | DDL }
SALES
TABLESPACE
HCM
TABLESPACE
HCM
TABLESPACE
DF11233 U*1
$5Ha1qui %H1
HSKQ112 A14
FASqw34 £$1
DF@£!1ah HH!
DA45S& DD1
Acme 10 1/2/16
Acme 3 1/3/16
Acme 5 1/5/16
Acme 12 1/7/16
Acme 4 1/8/16
Acme 2 1/9/16
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 27
Multitenant: Hot Clone/Refresh/Relocate
• PDB Hot Clone
– Ohne Setzen von R/O während des Clones
• PDB Refresh
– Einen R/O (remote) Clone einer PDB mit Archive Logs updaten
• PDB Relocate
– PDB Clonen, Refreshen,Verschieben und die Benutzer umschalten
White Paper Oracle Multitenant: New Features
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 28
ASM File Group Flexibilität und Verfügbarkeit
• Flex Diskgruppen:
- Quota Management – limitiert den
Platz einzelne Datenbanken
- Redundancy Change – geringere
Redundanz für unwichtigere
Datenbanken
Technical Overview of
New Features for ASM
DB1
File 1
File 2
File 3
DB2
File 1
File 2
File 3
File 4
DB3
File 1
File 2
File 3
Quota Group B
Flex Diskgroup
Quota Group A
Flex Diskgroup Quota Management
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 29
Einfach &
Automatisch
Tolerant bei
Fehlern
Online &
verfügbar
Performant
Wieso überhaupt nach 12c R2 migrieren?
Performance
• In-Memory
• Monitoring
• Analytics
• DWH
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 30
1. Nutzbar für Active Data Guard
Standby
– Unterschiedliche in-Memory Daten von
Standby und Produktion
2. Verwaltung
– In-Memory Fast Start
Erweiterungen für In-Memory Teil I
Production
Month
In-Memory
Standby
Year
In-Memory
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 31
3. Optimizer
– „Join Group" für Spalten zum Joinen
– Virtuelle Spalten in Memory
– Für Expressions: Expression Statistics
Store (ESS)
Erweiterungen für In-Memory Teil II
create inmemory join group jgroup_id
(stores(STORE_ID), sales(STORE_ID))
Stores
Store ID
join column
Type=‘Outlet’
Sales
Amount
StoreID
Type
StoreID
White Paper Oracle Database In-Memory
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 32
Erweiterungen für Indizes
1.2 TB 679 GB 270 GB
No
Compression
Low
Compression
High
Compression
1.8X
4.6X
10,000 Indexes
• Neue Eigenschaft “high compress” für höhere
Index Komprimierung
• Höhere Platzeinsparung (i.e. OLTP)
• Mehr Index CachingIndex Usage
Statistiken
• Ohne Overhead
• Detaillierte
Nutzungsinfo
• Out of the box
Blog: Index Usage Tracking in der Oracle Datenbank
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 33
Approximate Query Processing
• Seit 12.1 APPROX_COUNT_DISTINCT
• Neue Funktionen ab 12.2: APPROX_PERCENTILE, APPROX_MEDIAN
– Beispiel: Welche Menge macht 90 % aller Verkäufe aus?
– 6-13X schneller
• Approximate Funktionen ohne Applikationsänderung
• Automatisches Re-write
• Parameter wie approx_for_aggregation = TRUE
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 34
Materialized Views
• Real-time Materialized Views
– Materialized Views
können für Query Rewrite verwendet werden
obwohl noch nicht synchronisiert
• Statement-Level Refresh (On Statement)
• Approximate Aggregate auch in Materialized Views mit Query Rewrite
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 35
Spezifikationen
Oracle Cloud Editionen: Oracle Database Cloud Services
Exadata Express Database - EC Database - BM Exadata
Editions EE with Lockdown SE2, EE, HP, EP SE2, EE, HP, EP EP
Implementation 1 PDB in Shared CDB 1 Dedicated CDB 1+ Dedicated DBs 1+ Dedicated DBs
Management Oracle Customer Customer Customer
Max DB size 5G, 20G, 50GB 50GB – 11.2TB 4.2TB – 9.6TB 42TB – Petabytes
CPU range ~1 1 – 16 2 – 36 16 – 272
Storage Exadata,Flash:Fixed ZFS Block: $0.50 per GB Local NVMe:Fixed Exadata,Flash:Fixed
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 36
Oracle Database Cloud Service – Optionspakete
EE Extreme Performance
Multitenant
Partitioning
Advanced
Compression
Advanced Security,
Label Security,
Database Vault
RAC
RAC One Node
In Memory
Active Data Guard
• Vollständige
Datenbank
• Limitiert auf 16 OCPUs
• Enthält Transparent
Data Encryption
Real Application
Testing
OLAP, Analytics,
Spatial and Graph
Management
Packs
Standard Edition 2 Enterprise Edition EE High Performance
EE Extreme
Performance
• All Standard EE-
Features
(z.B. Parallel
Queries)
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 37
Weitere Termine/ Informationen
• 07.04. Security um 11:00 (Meeting number 591 909 494)
• 21.04. Hochverfügbarkeit um 11:00 (Meeting number 591 909 494)
• 05.05. Multitenant um 11:00 (Meeting number 591 909 494)
• 19.05. Database Development um 11:00 (Meeting number 591 909 494)
• Deutschsprachiger Blog: blogs.oracle.com/dbacommunity_deutsch
• Ab Mai: Dojo spezial zu Oracle Database 12c Release 2 (tinyurl.com/dojoonline)
• Webcast - Monatliches Update: tinyurl.com/oratech-monthly
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 38
LiveSQL.oracle.com – For Free
• http://livesql.oracle.com
• SQL Scratch Pad in der Oracle Cloud
• Nur Browser und OTN Account nötig
• Save und Share von SQL Beispiele
• Mit 12.2 Tutorials
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 39
Oracle Database 12c Release 2

Oracle Database 12c Release 2

  • 1.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 1 Neues im Überblick Sebastian Solbach (Sebastian.Solbach@oracle.com, @s2solbach) Ulrike Schwinn (Ulrike.Schwinn@oracle.com, @uschwinn) BU Core & Cloud Technologies Oracle Deutschland B.V. & Co KG Beginn um 11:00 Audioübertragung über PC-Lautsprecher Audio => Integrate Voice Conference=> Join Conference Oracle Database 12c Release 2
  • 2.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 2 Agenda Download, Upgrade, Installation, Lizenzierung 12.2 Features: Wieso auf 12.2 upgraden? Cloud Editionen Weitere Termine/Material 1 2 3 4
  • 3.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 3 Oracle Database 12c Release 2 • Press Release am 6. März „Latest Release of Industry Leading Oracle Database Now Available in the Cloud, with Oracle Cloud at Customer, and On- Premises” • Download für Linux x86-64, Solaris Sparc, Solaris x86-64 und Windows • Offizielle Informationen Release Schedule (MOS Doc ID 742060.1)
  • 4.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 4 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 Oracle 11.2 (GA: Sep 2009) Oracle 12.1 (GA: Jun 2013) Oracle 12.2 (GA : Mar 2017) Release Roadmap Sustaining Support DEC 2020DEC 2018JAN 2015 JUL 2021 Extended SupportWaived ExtendedPremier Support JUN 2018 MAR 2025MAR 2022
  • 5.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 5 Fragen zum Upgrade • Gibt es überhaupt noch die Non CDB Architektur? – Non-CDB still exists in Oracle Database 12.2. • Upgrade Pfade –Upgrade to Oracle Database 12.2 - New MOS Notes: nonCDB: 2173141.1, Multitenant: 2173144.1, DBUA: 2189854.1
  • 6.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 6 Plugin Methode: Migration von Non CDB in CDB • Converting an 12.1 non-CDB and plug it into an 12.2 CDB • “You can't convert a stand-alone database to become a container database ” • Übrigens ist auch eine Methode für Cloud Migration (Using Oracle Database Exadata Cloud Service)
  • 7.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 7 • Kein C++ Kompiler mehr notwendig • Separation of Duty: SYSRAC • Dabei: TFA, SQLcl, SQL Developer • Vereinfachte Cluster Installation – Unzip + ./gridSetup.sh – ASM Filter Driver Integration, separate ASM Diskgroup für GI Management Repository – Stretch Cluster Setup und Definition Neues bei der Installation
  • 8.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 8 Lizenzierung • http://docs.oracle.com/database/122/nav/portal_booklist.htm • Licensing Information User Manual mit Permitted Features, Options und Management Packs – Sharding – Multitenant – Active Data Guard
  • 9.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 9 Einfach & Automatisch Tolerant bei Fehlern Online & verfügbar Performant Wieso überhaupt nach 12c R2 migrieren? Vereinfachung und Automatismen Fehlertoleranz Online Operationen Performance
  • 10.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 10 Einfach & Automatisch Tolerant bei Fehlern Online & verfügbar Performant Wieso überhaupt nach 12c R2 migrieren? Vereinfachung und Automatismen • Development • Hochverfügbarkeit • Analytics • Management
  • 11.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 11 Core Datenbank Features • Objektnamen für Tabellen, Spalten usw. können nun länger als 128 Zeichen (vorher 30) sein – Aussagekräftige Bezeichungen • AL32UTF8 ist der Default Datenbank Characterset – Unicode 7.0 Support Laaange Namen – Long Identifiers CREATE TABLE Sales_Data_For_Online_Transactions (Transaction_Identifier NUMBER(6), Date_Of_Sales_Transaction DATE, Gross_Value_of_Transaction NUMBER(3,2), . . .
  • 12.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 12 Case insensitive Datenbank • Sortierreihenfolge (engl. collation) und Case Insensitivität auf Schema, Tabellen oder Spaltenebene definierbar • Beispiel SQL> select * from tab_ci where wort = 'Klein'; N WORT ---------- ---------- 1 klein 2 KLEIN 3 Klein
  • 13.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 13 „All Your Information“ in der Oracle Datenbank JSON Support • Einführung von JSON SQL Funktionen in 12.1 • 12.2: Neuerungen – JSON Generierung – Einfache Erzeugung von relationalen Views (*) – Linguistische Suche (*) – Automatische Schema Inferenzen (*) (*) Stichwort Data Guide – Optimiertes In-Memory Binary Format Blog: JSON in 12.2: Noch mehr Funktionalität
  • 14.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 14 Analytische Views • BI Konzepte können in die Datenbank verlegt werden • Einfaches SQL für komplexe analytische Abfragen – Keine Joins oder GROUP-BY Klauseln nötig – Nutzt Hierarchien ohne vordefinierte Berechnungen – keine persistente Speicherung • Arbeitet auf verschiedensten Datenquellen wie existierenden Tabellen, external tables, In-Memory Spalten
  • 15.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 15 Analytische Views: http://www.vlamis.com/papers2017
  • 16.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 16 (Active) Data Guard • Standby anlegen: DBCA & EMCLI, RMAN Far Sync erzeugen • Automatic Password File Management • Einfache Reparatur „No Logging“ Operationen • Migration & Failover von PDBs mit Broker • Mehrere FSFO Ziele und Observer • Active Data Guard: Session “Prewarming” auf Standby • AWR & SQL Tuning Advisor auf Active Data Guard Standby
  • 17.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 17 Multitenant Vereinfachung • Unterstützung unterschiedlicher Charactersets • Memory, CPU Verteilung und I/O Profile • Applikationscontainer – Gemeinsame Objekte für PDB • Funktionen, Prozeduren, Metadaten und Stammdaten – Einfache Applikationsupdates für PDBs
  • 18.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 18 Einfach & Automatisch Tolerant bei Fehlern Online & verfügbar Performant Wieso überhaupt nach 12c R2 migrieren? Fehlertoleranz • Security • Development • Verfügbarkeit • Management
  • 19.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 19 Erweiterte und neue SQL Funktionen • Statt Fehler besser eine vordefinierte Ausgabe – Konvertierungsfunktionen mit default 1000 on conversion error – Bei listagg bei der Überschreitung der maximale Länge • Vorab Prüfung ob eine Konvertierung möglich ist mit neuer Funktion VALIDATE_CONVERSION
  • 20.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 20 Lockdown Profile - Tenant Isolierung • Verhindert gewisse Operationen/Optionen/Features in einer PDB – Ausführung von Statements wie ALTER SYSTEM und ALTER SESSION – Nutzung von Packages wie UTL_SMTP, UTL_HTTP usw. – Zugriff auf Common User Objekte – Cross-PDB Connections in einer CDB – AWR Snapshots – Verwendung von JAVA – Nutzung gewisser Datenbankoptionen wie Advanced Queueing und Partitionierung
  • 21.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 21 Stretch Cluster • Installation ist Stretch Cluster Aware – Cluster Setup im Extended Modus – Knoten, Failgroups werden „Site“ Aware • Neues „Extended“ Attribut für Flex Disk Gruppen – Diskgruppen mit “Extended Redundancy” sind Site-Aware – Extended Disk Groups unterstützen mehrere Voting Disks Failgroups – (zur besseren Fehlerbehebung)
  • 22.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 22 Eine neue Architektur mit Sharding • RAC und Data Guard erfüllen 99% der Applikationsanforderungen • Für einige globale OLTP Applikationen bietet eine Unterteilung (Sharding) der Daten immense Vorteile: – Skalierungs- und Verfügbarkeitsanforderungen einer einzigen großen Datenbank können sehr hoch sein – Datenmodell und Applikationen müssen aber angepasst werden für das “Routing” zu den richtigen Daten FAQ: Oracle Sharding Customers Americas Customers Customers Europe Customers Asia
  • 23.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 23 Sharding Funktionalitäten • Automatisches Anlegen hunderter Shards + Data Guard / Golden Gate • Unterschiedliche Sharding Methoden – System Managed (Consistent Hash) - Uniform – Composite : Range-Hash oder List-Hash • Zentrale Schemaverwaltung – Natives SQL für sharded & duplicated Tabellen • Zugriffe – Direktes Routing über Connectionpools – Proxy Routing für übergreifende Abfragen • Lifecycle Management – Automatisches Rebalancing – Shards können unterschiedliche Oracle Release stände haben
  • 24.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 24 Einfach & Automatisch Tolerant bei Fehlern Online & verfügbar Performant Wieso überhaupt nach 12c R2 migrieren? Online Operationen • Security • Verfügbarkeit • Management
  • 25.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 25 Online Operationen auf Tabellen und Partitionen • Nun auch ein online Table Move • Weitere online Partition Maintenance Operationen – Konvertierung einer nicht partitionierten Tabelle in eine partitionierte Tabelle – Online SPLIT Partition und Subpartition • Erweiterungen bei DBMS_REDEFINITION – Rollback, Restart nach Failure, Redefinition Fortschritt Monitoring … SALESTABLE Q1 Q2 Q3
  • 26.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 26 Online Tablespace Verschlüsselung • 12.1: Offline – alter database datafile '…' encrypt; – Expdp/Impdp – Oder Physical Standby • 12.2: Immer Online – Verschlüsseln, Neu Verschlüsseln (ReKey) • benötigt zusätzlichen Platz – Volle Verschlüsselung interner Datenbank Strukturen, wie SYSTEM, SYSAUX, UNDO – ENCRYPT_NEW_TABLESPACES = { CLOUD_ONLY | ALWAYS | DDL } SALES TABLESPACE HCM TABLESPACE HCM TABLESPACE DF11233 U*1 $5Ha1qui %H1 HSKQ112 A14 FASqw34 £$1 DF@£!1ah HH! DA45S& DD1 Acme 10 1/2/16 Acme 3 1/3/16 Acme 5 1/5/16 Acme 12 1/7/16 Acme 4 1/8/16 Acme 2 1/9/16
  • 27.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 27 Multitenant: Hot Clone/Refresh/Relocate • PDB Hot Clone – Ohne Setzen von R/O während des Clones • PDB Refresh – Einen R/O (remote) Clone einer PDB mit Archive Logs updaten • PDB Relocate – PDB Clonen, Refreshen,Verschieben und die Benutzer umschalten White Paper Oracle Multitenant: New Features
  • 28.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 28 ASM File Group Flexibilität und Verfügbarkeit • Flex Diskgruppen: - Quota Management – limitiert den Platz einzelne Datenbanken - Redundancy Change – geringere Redundanz für unwichtigere Datenbanken Technical Overview of New Features for ASM DB1 File 1 File 2 File 3 DB2 File 1 File 2 File 3 File 4 DB3 File 1 File 2 File 3 Quota Group B Flex Diskgroup Quota Group A Flex Diskgroup Quota Management
  • 29.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 29 Einfach & Automatisch Tolerant bei Fehlern Online & verfügbar Performant Wieso überhaupt nach 12c R2 migrieren? Performance • In-Memory • Monitoring • Analytics • DWH
  • 30.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 30 1. Nutzbar für Active Data Guard Standby – Unterschiedliche in-Memory Daten von Standby und Produktion 2. Verwaltung – In-Memory Fast Start Erweiterungen für In-Memory Teil I Production Month In-Memory Standby Year In-Memory
  • 31.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 31 3. Optimizer – „Join Group" für Spalten zum Joinen – Virtuelle Spalten in Memory – Für Expressions: Expression Statistics Store (ESS) Erweiterungen für In-Memory Teil II create inmemory join group jgroup_id (stores(STORE_ID), sales(STORE_ID)) Stores Store ID join column Type=‘Outlet’ Sales Amount StoreID Type StoreID White Paper Oracle Database In-Memory
  • 32.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 32 Erweiterungen für Indizes 1.2 TB 679 GB 270 GB No Compression Low Compression High Compression 1.8X 4.6X 10,000 Indexes • Neue Eigenschaft “high compress” für höhere Index Komprimierung • Höhere Platzeinsparung (i.e. OLTP) • Mehr Index CachingIndex Usage Statistiken • Ohne Overhead • Detaillierte Nutzungsinfo • Out of the box Blog: Index Usage Tracking in der Oracle Datenbank
  • 33.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 33 Approximate Query Processing • Seit 12.1 APPROX_COUNT_DISTINCT • Neue Funktionen ab 12.2: APPROX_PERCENTILE, APPROX_MEDIAN – Beispiel: Welche Menge macht 90 % aller Verkäufe aus? – 6-13X schneller • Approximate Funktionen ohne Applikationsänderung • Automatisches Re-write • Parameter wie approx_for_aggregation = TRUE
  • 34.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 34 Materialized Views • Real-time Materialized Views – Materialized Views können für Query Rewrite verwendet werden obwohl noch nicht synchronisiert • Statement-Level Refresh (On Statement) • Approximate Aggregate auch in Materialized Views mit Query Rewrite
  • 35.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 35 Spezifikationen Oracle Cloud Editionen: Oracle Database Cloud Services Exadata Express Database - EC Database - BM Exadata Editions EE with Lockdown SE2, EE, HP, EP SE2, EE, HP, EP EP Implementation 1 PDB in Shared CDB 1 Dedicated CDB 1+ Dedicated DBs 1+ Dedicated DBs Management Oracle Customer Customer Customer Max DB size 5G, 20G, 50GB 50GB – 11.2TB 4.2TB – 9.6TB 42TB – Petabytes CPU range ~1 1 – 16 2 – 36 16 – 272 Storage Exadata,Flash:Fixed ZFS Block: $0.50 per GB Local NVMe:Fixed Exadata,Flash:Fixed
  • 36.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 36 Oracle Database Cloud Service – Optionspakete EE Extreme Performance Multitenant Partitioning Advanced Compression Advanced Security, Label Security, Database Vault RAC RAC One Node In Memory Active Data Guard • Vollständige Datenbank • Limitiert auf 16 OCPUs • Enthält Transparent Data Encryption Real Application Testing OLAP, Analytics, Spatial and Graph Management Packs Standard Edition 2 Enterprise Edition EE High Performance EE Extreme Performance • All Standard EE- Features (z.B. Parallel Queries)
  • 37.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 37 Weitere Termine/ Informationen • 07.04. Security um 11:00 (Meeting number 591 909 494) • 21.04. Hochverfügbarkeit um 11:00 (Meeting number 591 909 494) • 05.05. Multitenant um 11:00 (Meeting number 591 909 494) • 19.05. Database Development um 11:00 (Meeting number 591 909 494) • Deutschsprachiger Blog: blogs.oracle.com/dbacommunity_deutsch • Ab Mai: Dojo spezial zu Oracle Database 12c Release 2 (tinyurl.com/dojoonline) • Webcast - Monatliches Update: tinyurl.com/oratech-monthly
  • 38.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 38 LiveSQL.oracle.com – For Free • http://livesql.oracle.com • SQL Scratch Pad in der Oracle Cloud • Nur Browser und OTN Account nötig • Save und Share von SQL Beispiele • Mit 12.2 Tutorials
  • 39.
    Copyright © 2017,Oracle and/or its affiliates. All rights reserved.Oracle Technology Monthly | BU Core & Cloud Technologies 39