Automatisierung durch Information Lifecycle Management Ralf Lange Oracle Deutschland B.V. & Co. KG
Storage Management: Herausforderungen Verwalten von mehr Daten ohne ansteigende Kosten Komprimieren von Daten ohne Performance Einbußen Einstufen und Komprimieren von Daten basierend auf der Nutzung 2 Copyright 22, Oracle and/or its affiliates. All rights reserved.
ILM in g: Stand der Dinge Infrastruktur Partitionierung Compression Tablespace Move VPD, OLS Unterstützung durch ILM Assistant Graphisches Tool (APEX Anwendung) Kostenlose Nutzung Download und detaillierte Beschreibung (Tutorials etc) von OTN Definition von Lifecycle Policies, Skriptgenerierung 3 Copyright 22, Oracle and/or its affiliates. All rights reserved.
ILM in Oracle Database 2c ILM Integration in den Datenbank Kern Heat Map automatisches Monitoring und Klassifikation (Hot/Cold Data) Automatic Data Placement /Optimization Policies, automatisiert in der Datenbank ausgeführt... zusätzlich Erweiterungen in Bereichen wie... Kompression Partitionierung 4 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Heat Map für Daten Komprimierung Weniger Speicherplatz und Vorteile durch Komprimierung Hot Data 3X Advanced Row Compression Warm Data X Columnar Query Compression Archive Data 5X Columnar Archive Compression 5 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Oracle Advanced Compression Oracle Advanced Compression - Neuigkeiten Oracle Database g OLTP Compression Secure Files Compression Secure Files De-duplication Hybrid Columnar Compression neu neu neu Oracle Database 2c Advanced Row Compression Advanced LOB Compression Advanced LOB Deduplication Columnar Store Compression Heat Map (Segment und Row Level) Automatische Daten Optimierung Zeitliche Komponente (temporal) (Verbesserungen) 6 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Weitere Kompression Features Mehr Kompression für External Tables zum Entladen Data Pump Import für Tabellen und Dump File Mehr Performance für Advanced Row Compression Erweiterung der Spaltenbegrenzung: mehr als 255 Spalten für Advanced Row (OLTP) Compression Netzwerk Kompression 7 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Netzwerk Kompression Bisher: Redo Compression beim Data Guard Transport Erweiterung der Komprimierung in Netzwerk Umfeld Vorteil Verminderung des Datenvolumens Erhöhung der Netzwerk Performance Neuer SQLNET Parameter zur Einstellung SQLNET.COMPRESSION = on SQLNET.COMPRESSION_LEVELS =(high) SQLNET.COMPRESSION_THRESHOLD = 24 8 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Partitionierung in 2c Core Funktionalität Interval - Reference Partitionierung Partielle Indizes Indizes auf gleiche Spaltenmenge Manageability Kaskadierendes TRUNCATE/EXCHANGE für Reference Partitionierung Mehr Online Operationen (siehe ILM Features) Maintenance Operationen auf mehreren Partitionen Asynchrone Global Index Maintenance Operationen nach DROP PARTITION und TRUNCATE PARTITION 9 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Heat Map Tracking Active Frequent Access Occasional Access Dormant HOT Actively updated Infrequently updated, Frequently Queried Infrequent access for query and updates Long term analytics & compliance COLD Ebenen Auf Datenbank/Segment Ebene: Welche Tabellen und Partitionen werden verwendet? Auf Block Ebene: Welche aktuellen Veränderung auf Block Ebene liegen vor? Umfassend Trackt Reads und Writes Unterscheidet zwischen Lookups und Full Table Scans Schliesst Operationen wie Statistic Gathering, DDLs oder Tabellen Re-Definition aus Performant Copyright 22, Oracle and/or its affiliates. All rights reserved.
Heat Map Einschalten über Initialisierungsparameter HEAT_MAP Voraussetzung für Automatische Daten Optimierung Administration und Monitoring über V$Views Data Dictionary Views Packages Graphische Implementierung im Enterprise Manager Copyright 22, Oracle and/or its affiliates. All rights reserved.
Heat Map für Tabellen und Partitionen Segment Level Tracking ORDER S Welche Tabellen und Partitionen werden wie verwendet? Aktueller Ausschnitt aus DBA_HEAT_MAP_SEG_HISTOGRAM OWNER OBJECT_NAME TRACK_TIME WRI FUL LOO ---------- ----------------------- ---------------- --- --- -- SH CUSTOMERS_PK 25.6.23 22:48 NO NO YES SCOTT DEPT 25.6.23 2:48 NO YES NO SCOTT EMP 26.6.23 2:3 YES YES NO SCOTT EMP 25.6.23 2:48 NO YES NO SCOTT EMP 24.6.23 :47 NO YES NO SCOTT PK_EMP 26.6.23 22:3 NO NO YES SCOTT PK_EMP 25.6.23 22:48 NO NO YES 2 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Heat Map für Blöcke Row Level Tracking ORDER S Letzte Änderung auf Block Ebene Beispiel: Letzte Änderung an Tabelle CUSTOMERS mit DBMS_HEAT_MAP TABLESPACE FNO BLOCK_ID WRITETIME ---------- ---------- ---------- --------------- USERS 6 347 25.6.23 4:45 USERS 6 348 25.6.23 4:45 USERS 6 349 25.6.23 4:45 USERS 6 35 25.6.23 4:45 USERS 6 35 25.6.23 4:45 3 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Zugriffsmuster Database Heat Map 4 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Heat Map im Enterprise Manager 5 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Automatische Daten Optimierung OLTP Reporting Compliance & Reporting x komprimiert 5x komprimiert Automatische ONLINE Konvertierung Im Quartal Im Jahr Jahre zuvor Advanced Row Compression für OLTP Columnar Query Compression für schnelle Analysen Columnar Archive Compression für max. Kompression 6 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Einsatzmöglichkeiten OLTP DWH Mixed. Advanced Row Compression für DB 2. ADO konvertiert nach Columnar Compression Format, falls keine Updates mehr 3: ADO konvertiert nach Archive Compression Format falls auch kein Reporting mehr. Bulk Loads direkt in Columnar Compression Format 2. ADO konvertiert in Archive Compression Format und verlagert nach Low Cost Storage bei geringer Nutzung : Unkomprimierte konventionelle Inserts& Updates 2: ADO konvertiert zu Row Compression Format bzw. Columnar Compressed oder verlagert zu Low Cost Storage 7 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Online Operationen als Voraussetzung Online Operationen = Weniger Sperren Beispiel: ONLINE PARTITION MOVE SQL> ALTER TABLE sales_big MOVE PARTITION sales_q4_2 ROW STORE COMPRESS ADVANCED ONLINE; SQL> ALTER TABLE sales_big MOVE PARTITION sales_q4_2 TABLESPACE example ONLINE; 8 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Weitere Online Operationen in 2c Löschen eines Index (DROP INDEX... ONLINE) Index als UNUSABLE markieren (ALTER INDEX... UNUSABLE ONLINE) Spalte als UNUSED markieren (ALTER TABLE... SET UNUSED COLUMN... ONLINE) Löschen eines Constraints (ALTER TABLE... DROP CONSTRAINT... ONLINE) MOVE einer Tabellen Partition/Subpartition (ALTER TABLE... MOVE PARTITION... ONLINE) DATAFILE MOVE (ALTER DATABASE MOVE DATAFILE...) 9 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Zeilenkomprimierung auf Basis der Nutzung Background Row Compression ORDER S ALTER TABLE EMPLOYEE ILM ADD POLICY ROW STORE COMPRESS ADVANCED ROW AFTER DAY OF NO MODIFICATION 2 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Für Partitionen Automatische Daten Optimierung mit HCC ORDER S ALTER TABLE ORDERS ILM ADD POLICY COLUMN STORE COMPRESS FOR QUERY HIGH SEGMENT AFTER 3 DAYS OF NO MODIFICATION Optimierte Nutzung für Zeilen bzw. Spalten Speicherung innerhalb einer Tabelle Row Format für schnelle INSERT und Lade- Operationen Optimiertes Columnar Format für die Analyse und Reporting 2 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Storage Tiering Automatische Daten Optimierung ORDER S ALTER TABLE EMPLOYEE ILM ADD POLICY TIER TO <LOW_COST_TABLESPACE>. Tabellen wachsen => Policies komprimiert die Daten 2. Tablespace mit Partitionen erreicht Tablespace Tierung Grenze 3. Partitionen werden in einen anderen Tablespace verlagert 22 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Automatische Aktionen bei Storage Tiering 55% SOURCE Tablespace T Zugriff letzte Woche T2 Zugriff heute T3 Zugriff gestern MOVE TARGET Tablespace T SOURCE Tablespace T2 T3 6% 55% SQL> select * from DBA_ILMPARAMETERS; NAME VALUE ------------------------------ ---------- TBS PERCENT USED 55 TBS PERCENT FREE 45... 23 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Backup & Recovery OLTP Reporting Compliance & Reporting Read / Write Tablespace x compressed Read-mostly Daten verlagert zu READONLY Tablespace 5x compressed READONLY TBS Online Move zu READ ONLY Tablespace => Einmaliges Backup erforderlich 24 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Deklarative SQL Syntax Erweiterung Automatische Daten Optimierung ALTER TABLE ILM ADD POLICY Active Frequent Access Occasional Access Dormant OLTP Compression (2-4x) Nur für spezielle Zeilen Cached im DRAM & FLASH Warehouse Compression (x) High Performance Storage Warehouse Compression (x) Low Cost Storage Archive Compression (5-5X) Archival Storage Syntax für OLTP Kompression after 2 days of no update Syntax für HCC (Query low) after week of no update Syntax für Storage Tiering tier to SATA Tablespace Syntax für HCC (archive high) after 6 months no access 25 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Policies Policies erlauben den Datenfluß zu automatisieren Policy Spezifikation beinhaltet Bedingung und Aktion Aktionen Komprimieren von Daten wenn erforderlich Bewegen Daten wenn erforderlich (auch Tiering) Bedingungen Zeit nach Erzeugung Zugriffsverhalten Änderung an Daten Policies auf Segment, Tablespace und Row/Block Ebene Policies werden von Tablespaces oder Tabellen vererbt 26 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Zusammenfassung Daten Klassifikation Automatische Erkennung Automatisches Durchführen WHAT IF and WHEN Then AUTOMATICALLY do Bereiche(Scope) Tablespace Segment Row/Block Voraussetzung: Heat Map Bedingungen Welche Operationen? Erzeugen Wenig Zugriff Keine Daten- Änderung Keine Gültigkeit Wann? Nach 3 Tagen Nach Monat Falls Tablespace voll Aktionen Komprimieren Verlagern nach Storage Tier Beides 27 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Informationen in deutscher Sprache Tipps zu "Oracle Database 2c ist verfügbar" Communities DBA Community APEX Community Linux und Virtualisierung Exadata Community Veranstaltungen http://tinyurl.com/odd2c 28 Copyright 22, Oracle and/or its affiliates. All rights reserved.
Graphic Section Divider 29 Copyright 22, Oracle and/or its affiliates. All rights reserved.