SlideShare une entreprise Scribd logo
1  sur  28
www.syntegris.de
Materialized Views –
Praktischer Einsatz vor und in 12c
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Syntegris information solutions GmbH
• Mittelständisches IT-Unternehmen
• 40 Mitarbeiter (Berater, Entwickler, Architekten)
• Gründung: 2000
• Sitz: Neu-Isenburg, Hessen
• Oracle Gold Partner mit Spezialisierung für Datenbanken
• Bereiche: Data Warehouse, Business Process Development,
Anwendungsentwicklung für Oracle Datenbanken, Administration
Oracle/Solaris, Consulting, Schulung
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
What are MVs?
-------------------------------------------
> View: SQL is executed
> Materialized:
result set is stored in a table
> Legacy: snapshot (Oracle 8i)
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
Use case 1: Aggregation
-------------------------------------------
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
Use case 1: Aggregation
-------------------------------------------
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
Advantages
-------------------------------------------
> performance feature
> query rewrite
> easy confguration
(built-in Oracle feature)
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
Use case 2: Replication
-------------------------------------------
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
Advantages
-------------------------------------------
> mass deployment (templates)
> site – specifc customization
(e.g. timing of refresh)
> connection only during refresh
> easy confguration
(built-in Oracle feature)
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
Real world example?
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
Chemical Substances
-------------------------------------------
> ordering vials/tubes/plates
differ on each site
> meta data about substances
same on each site
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
Chemical Substances
-------------------------------------------
> ordering vials/tubes/plates
differ on each site
> meta data about substances
same on each site
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
GUI
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
Considerations
-------------------------------------------
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
Code?
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
Options
-------------------------------------------
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
COMPLETE REFRESH
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
FAST REFRESH
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
BUILD DEFERRED
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
------------------------------------------
> MV is readable all the time
> Index maintenance per row
> REDO and UNDO
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
------------------------------------------
> tuncate is faster (High Water Mark)
> minimal Index maintenance
> direct path load
> no UNDO and less redo
> MV readable?
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
Fast Refresh - Limits
-------------------------------------------
> Use ANSI Join Syntax
> Select ROWIDs when joining
> bulk load operations master table
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
ROWID: reorganization / truncating of the master
will force a complete refresh
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
Change Management
-------------------------------------------
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
PREBUILD TABLE
© SYNTEGRIS INFORMATION SOLUTIONS GMBH
Materialized Views – Praktischer Einsatz vor und in 12c
OUT_OF_PLACE REFRESH
Danke
SYNTEGRIS INFORMATION SOLUTIONS GMBH
HERMANNSTRASSE 54-56
63263 NEU-ISENBURG
FON (06102) 29 86 68
FAX (06102) 55 88 06
INFO@SYNTEGRIS.DE
SYNTEGRIS.DE

Contenu connexe

En vedette

Результати участі в олімпіаді 2016р.початкові
Результати  участі  в  олімпіаді 2016р.початковіРезультати  участі  в  олімпіаді 2016р.початкові
Результати участі в олімпіаді 2016р.початкові
olena2605
 
Дж.Свіфт. "Мандри Гуллівера". 7 клас
 Дж.Свіфт. "Мандри Гуллівера". 7 клас Дж.Свіфт. "Мандри Гуллівера". 7 клас
Дж.Свіфт. "Мандри Гуллівера". 7 клас
dfktynbyf15
 
Результати олімпіади з біології, 2016-2017 н.р.
 Результати олімпіади з  біології, 2016-2017 н.р.  Результати олімпіади з  біології, 2016-2017 н.р.
Результати олімпіади з біології, 2016-2017 н.р.
olena2605
 
Подвиги Геракла
Подвиги ГераклаПодвиги Геракла
Подвиги Геракла
Adriana Himinets
 

En vedette (20)

комплексна програма на 2016 2020 рр.
комплексна програма на 2016   2020 рр.комплексна програма на 2016   2020 рр.
комплексна програма на 2016 2020 рр.
 
Syntegris Unternehmensprofil
Syntegris UnternehmensprofilSyntegris Unternehmensprofil
Syntegris Unternehmensprofil
 
APEX 5 Interactive Reports: Guts and PErformance
APEX 5 Interactive Reports: Guts and PErformanceAPEX 5 Interactive Reports: Guts and PErformance
APEX 5 Interactive Reports: Guts and PErformance
 
Why Your Business Should Avoid Ownership
Why Your Business Should Avoid OwnershipWhy Your Business Should Avoid Ownership
Why Your Business Should Avoid Ownership
 
Moving to the APEX Listener
Moving to the APEX ListenerMoving to the APEX Listener
Moving to the APEX Listener
 
How to make APEX print through Node.js
How to make APEX print through Node.jsHow to make APEX print through Node.js
How to make APEX print through Node.js
 
Результати участі в олімпіаді 2016р.початкові
Результати  участі  в  олімпіаді 2016р.початковіРезультати  участі  в  олімпіаді 2016р.початкові
Результати участі в олімпіаді 2016р.початкові
 
Дж.Свіфт. "Мандри Гуллівера". 7 клас
 Дж.Свіфт. "Мандри Гуллівера". 7 клас Дж.Свіфт. "Мандри Гуллівера". 7 клас
Дж.Свіфт. "Мандри Гуллівера". 7 клас
 
Результати ІІ етапу олімпіади з правознавства
Результати ІІ етапу олімпіади з правознавстваРезультати ІІ етапу олімпіади з правознавства
Результати ІІ етапу олімпіади з правознавства
 
Результати олімпіади з біології, 2016-2017 н.р.
 Результати олімпіади з  біології, 2016-2017 н.р.  Результати олімпіади з  біології, 2016-2017 н.р.
Результати олімпіади з біології, 2016-2017 н.р.
 
Результати районного етапу мовно літературного конкурсу 2015
Результати районного етапу мовно літературного конкурсу  2015Результати районного етапу мовно літературного конкурсу  2015
Результати районного етапу мовно літературного конкурсу 2015
 
преступление и наказание
преступление и наказаниепреступление и наказание
преступление и наказание
 
Подвиги Геракла
Подвиги ГераклаПодвиги Геракла
Подвиги Геракла
 
Рідна мова - духовний скарб нації
Рідна мова - духовний скарб націїРідна мова - духовний скарб нації
Рідна мова - духовний скарб нації
 
Р.М.Рільке. Допомога учню
Р.М.Рільке. Допомога учнюР.М.Рільке. Допомога учню
Р.М.Рільке. Допомога учню
 
Уайльд О. "Портрет Доріана Грея". Презентація.
Уайльд О. "Портрет Доріана Грея". Презентація. Уайльд О. "Портрет Доріана Грея". Презентація.
Уайльд О. "Портрет Доріана Грея". Презентація.
 
наказ мон від 16.09.2015 №363 д
наказ мон від 16.09.2015 №363 днаказ мон від 16.09.2015 №363 д
наказ мон від 16.09.2015 №363 д
 
Data integration with Apache Kafka
Data integration with Apache KafkaData integration with Apache Kafka
Data integration with Apache Kafka
 
Company Overview Presentation
Company Overview PresentationCompany Overview Presentation
Company Overview Presentation
 
SQL Developer 4.x - Tipps für "faule" Entwickler
SQL Developer 4.x - Tipps für "faule" EntwicklerSQL Developer 4.x - Tipps für "faule" Entwickler
SQL Developer 4.x - Tipps für "faule" Entwickler
 

Similaire à Materialized Views - Praktischer Einsatz vor und in 12c

Historisierung und Analyse von Daten aus Oracle Enterprise Manager Cloud Cont...
Historisierung und Analyse von Daten aus Oracle Enterprise Manager Cloud Cont...Historisierung und Analyse von Daten aus Oracle Enterprise Manager Cloud Cont...
Historisierung und Analyse von Daten aus Oracle Enterprise Manager Cloud Cont...
OPITZ CONSULTING Deutschland
 
Ein Kundenbericht: User-Lifecycle mit SAP SuccessFactors als Personalsystem b...
Ein Kundenbericht: User-Lifecycle mit SAP SuccessFactors als Personalsystem b...Ein Kundenbericht: User-Lifecycle mit SAP SuccessFactors als Personalsystem b...
Ein Kundenbericht: User-Lifecycle mit SAP SuccessFactors als Personalsystem b...
IBsolution GmbH
 

Similaire à Materialized Views - Praktischer Einsatz vor und in 12c (20)

Endress + Hauser: Echtzeit Performance Monitoring erfolgreich umgesetzt
Endress + Hauser: Echtzeit Performance Monitoring erfolgreich umgesetzt Endress + Hauser: Echtzeit Performance Monitoring erfolgreich umgesetzt
Endress + Hauser: Echtzeit Performance Monitoring erfolgreich umgesetzt
 
Historisierung und Analyse von Daten aus Oracle Enterprise Manager Cloud Cont...
Historisierung und Analyse von Daten aus Oracle Enterprise Manager Cloud Cont...Historisierung und Analyse von Daten aus Oracle Enterprise Manager Cloud Cont...
Historisierung und Analyse von Daten aus Oracle Enterprise Manager Cloud Cont...
 
Dbvisit Standby - Die kostengünstige und einfache Standby-Lösung
Dbvisit Standby - Die kostengünstige und einfache Standby-LösungDbvisit Standby - Die kostengünstige und einfache Standby-Lösung
Dbvisit Standby - Die kostengünstige und einfache Standby-Lösung
 
Citrix Day 2014: Swisscom Dynamic Workplace Framework
Citrix Day 2014: Swisscom Dynamic Workplace FrameworkCitrix Day 2014: Swisscom Dynamic Workplace Framework
Citrix Day 2014: Swisscom Dynamic Workplace Framework
 
Voquz IT Solutions Unternehmenspräsention
Voquz IT Solutions UnternehmenspräsentionVoquz IT Solutions Unternehmenspräsention
Voquz IT Solutions Unternehmenspräsention
 
Condition Monitoring, Produktionseffizienz, Traceability.
Condition Monitoring, Produktionseffizienz, Traceability.Condition Monitoring, Produktionseffizienz, Traceability.
Condition Monitoring, Produktionseffizienz, Traceability.
 
Swisscom Rechenzentrum
Swisscom RechenzentrumSwisscom Rechenzentrum
Swisscom Rechenzentrum
 
ConSol: Unternehmen, Leistungen, Lösungen
ConSol: Unternehmen, Leistungen, LösungenConSol: Unternehmen, Leistungen, Lösungen
ConSol: Unternehmen, Leistungen, Lösungen
 
Forms 12c und der Oracle SB
Forms 12c und der Oracle SBForms 12c und der Oracle SB
Forms 12c und der Oracle SB
 
Erfahrungsbericht einer erfolgreichen SAP BW Bridge Implementierung
 Erfahrungsbericht einer erfolgreichen SAP BW Bridge Implementierung Erfahrungsbericht einer erfolgreichen SAP BW Bridge Implementierung
Erfahrungsbericht einer erfolgreichen SAP BW Bridge Implementierung
 
Wird das Datacenter künstlich-intelligent?
Wird das Datacenter künstlich-intelligent?Wird das Datacenter künstlich-intelligent?
Wird das Datacenter künstlich-intelligent?
 
SnT DataCenter Services
SnT DataCenter ServicesSnT DataCenter Services
SnT DataCenter Services
 
Business Platform 3DEXPERIENCE 2019
Business Platform 3DEXPERIENCE 2019Business Platform 3DEXPERIENCE 2019
Business Platform 3DEXPERIENCE 2019
 
adesso Impuls Breakfast Dynamics 365
adesso Impuls Breakfast Dynamics 365adesso Impuls Breakfast Dynamics 365
adesso Impuls Breakfast Dynamics 365
 
Impulse für Ihre Karriere
Impulse für Ihre KarriereImpulse für Ihre Karriere
Impulse für Ihre Karriere
 
Der Umstieg von SAP PI/PO zur SAP Integration Suite - Ein Überblick
Der Umstieg von SAP PI/PO zur SAP Integration Suite - Ein ÜberblickDer Umstieg von SAP PI/PO zur SAP Integration Suite - Ein Überblick
Der Umstieg von SAP PI/PO zur SAP Integration Suite - Ein Überblick
 
Public Cloud? Aber sicher! Orchestrierung komplexer Cloud-Lösungen - Partner...
Public Cloud? Aber sicher!  Orchestrierung komplexer Cloud-Lösungen - Partner...Public Cloud? Aber sicher!  Orchestrierung komplexer Cloud-Lösungen - Partner...
Public Cloud? Aber sicher! Orchestrierung komplexer Cloud-Lösungen - Partner...
 
Wertstoff Software - Wissenssicherung in Legacy-Systemen
Wertstoff Software - Wissenssicherung in Legacy-SystemenWertstoff Software - Wissenssicherung in Legacy-Systemen
Wertstoff Software - Wissenssicherung in Legacy-Systemen
 
Vorstellung SAP Services
Vorstellung SAP ServicesVorstellung SAP Services
Vorstellung SAP Services
 
Ein Kundenbericht: User-Lifecycle mit SAP SuccessFactors als Personalsystem b...
Ein Kundenbericht: User-Lifecycle mit SAP SuccessFactors als Personalsystem b...Ein Kundenbericht: User-Lifecycle mit SAP SuccessFactors als Personalsystem b...
Ein Kundenbericht: User-Lifecycle mit SAP SuccessFactors als Personalsystem b...
 

Materialized Views - Praktischer Einsatz vor und in 12c

  • 2. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Syntegris information solutions GmbH • Mittelständisches IT-Unternehmen • 40 Mitarbeiter (Berater, Entwickler, Architekten) • Gründung: 2000 • Sitz: Neu-Isenburg, Hessen • Oracle Gold Partner mit Spezialisierung für Datenbanken • Bereiche: Data Warehouse, Business Process Development, Anwendungsentwicklung für Oracle Datenbanken, Administration Oracle/Solaris, Consulting, Schulung
  • 3. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c What are MVs? ------------------------------------------- > View: SQL is executed > Materialized: result set is stored in a table > Legacy: snapshot (Oracle 8i)
  • 4. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c Use case 1: Aggregation -------------------------------------------
  • 5. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c Use case 1: Aggregation -------------------------------------------
  • 6. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c Advantages ------------------------------------------- > performance feature > query rewrite > easy confguration (built-in Oracle feature)
  • 7. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c Use case 2: Replication -------------------------------------------
  • 8. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c Advantages ------------------------------------------- > mass deployment (templates) > site – specifc customization (e.g. timing of refresh) > connection only during refresh > easy confguration (built-in Oracle feature)
  • 9. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c Real world example?
  • 10. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c Chemical Substances ------------------------------------------- > ordering vials/tubes/plates differ on each site > meta data about substances same on each site
  • 11. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c Chemical Substances ------------------------------------------- > ordering vials/tubes/plates differ on each site > meta data about substances same on each site
  • 12. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c GUI
  • 13. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c
  • 14. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c Considerations -------------------------------------------
  • 15. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c Code?
  • 16. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c Options -------------------------------------------
  • 17. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c COMPLETE REFRESH
  • 18. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c FAST REFRESH
  • 19. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c BUILD DEFERRED
  • 20. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c ------------------------------------------ > MV is readable all the time > Index maintenance per row > REDO and UNDO
  • 21. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c ------------------------------------------ > tuncate is faster (High Water Mark) > minimal Index maintenance > direct path load > no UNDO and less redo > MV readable?
  • 22. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c Fast Refresh - Limits ------------------------------------------- > Use ANSI Join Syntax > Select ROWIDs when joining > bulk load operations master table
  • 23. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c
  • 24. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c ROWID: reorganization / truncating of the master will force a complete refresh
  • 25. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c Change Management -------------------------------------------
  • 26. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c PREBUILD TABLE
  • 27. © SYNTEGRIS INFORMATION SOLUTIONS GMBH Materialized Views – Praktischer Einsatz vor und in 12c OUT_OF_PLACE REFRESH
  • 28. Danke SYNTEGRIS INFORMATION SOLUTIONS GMBH HERMANNSTRASSE 54-56 63263 NEU-ISENBURG FON (06102) 29 86 68 FAX (06102) 55 88 06 INFO@SYNTEGRIS.DE SYNTEGRIS.DE