1 2 Enkele nuttige Oracle Database features voor de ROCs Shintaro Nagaoka Presales, Oracle Nederland3 The following is intended to outline our genera...
Enkele nuttige Oracle Database features voor de ROCs Shintaro Nagaoka Presales, Oracle Nederland
The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
Oracle : Meer dan 30 jaar van de Continu Innovatie Database Vault
XML Database Oracle Data Guard Real Application Clusters Flashback Query Virtual Private Database Built in Java VM Partitioning Partitioning Support Built in in Messaging Object Relational Support Multimedia Support
Data Warehousing Optimizations Parallel Operations Distributed SQL & Transaction Support Cluster and MPP Support MultiMulti-version Read Consistency Client/Server Support Platform Portability Commercial SQL Implementation
Oracle 10g Oracle 9i
Oracle Database 11g
• De DB kern met veel geavanceerde features • Nu in 11g met veel nieuwe faciliteiten op het gebied van • • • • •
Hoge beschikbaarheid & OLTP Data Warehouse + datagroei Data beveiliging Database Beheer Informatiebeheer
Selecties voor vandaag
• Diverse Oplossingen voor de hoge beschikbaarheid • Beheersing van de data groei / ILM ( Information Lifecycle Management ) • Oracle Application Express ( APEX )
Onderwerpen
• Diverse Oplossingen voor de hoge beschikbaarheid • Beheersing van de data groei / ILM ( Information Lifecycle Management ) • Oracle Application Express ( APEX )
Achtergrond
• Consolidatie leidt tot steeds grotere afname van de database – Qua # gebruikers – Qua # gedeelde data bronnen – Qua # applicaties bovenop de database
Er is aantoonbaar voordeel van deze aanpak • De omgeving heeft dan wel een strategie nodig voor de hoge beschikbaarheid van de IT omgeving
Oracle’s HA oplossingen Geïntegreerd met database
Geplande Downtime
Real Application Clusters
Data probleem
ASM Flashback RMAN & Oracle Secure Backup Data Guard Streams
Systeem wijziging
Online Reconfiguration Rolling Upgrades
Data wijziging
Online Redefinition
Oracle MAA Best Practices
Ongeplande Downtime
Systeem probleem
Beste Server Bescherming
Gecombineerd met de schaalbaarheid
Systeem probleem
Ongeplande Downtime
Geplande Downtime
Data probleem
Systeem wijziging Data wijziging
Real Application Clusters
Oracle Real Application Cluster ( RAC )
100 % hoge beschikbaarheid ook tijdens het onderhoudswerk
Enkelvoudige Database opslag
Oracle Real Application Cluster ( RAC ) Schaalbaarheid
Enkelvoudige Database opslag
Beste Opslag Bescherming Tegen de laagste kosten
Systeem probleem
Ongeplande Downtime
Data probleem
opslag probleem Menselijke Fouten Data Corrupties
Geplande Downtime
Systeem wijziging Data wijziging
Omgevings probleem
Automatic Storage Management (ASM)
Data Mirroring with ASM • ASM mirrors data across low cost modular storage arrays – Automatically remirrors when disk or array fails
Database
• ASM Enhancements Storage
– Automatically repair corrupt blocks from mirror copy – Fast resync of mirror copy upon recovery from transient disk failures – uses only changed blocks – Rolling Upgrade for ASM instances
Designed to Tolerate Storage Array Failures
Beste Bescherming tegen de Menselijke Fouten Tegen de laagste kosten
Systeem probleem
Ongeplande Downtime
Data probleem
opslag probleem Menselijke Fouten Data Corrupties
Geplande Downtime
Systeem wijziging Data wijziging
Omgevings probleem
Flashback Technologies
Revolution in recovery
• Flashback Revolutionizes Error Recovery
Traditional Flashback Recovery 80 60 40 20 0 Recovery time
– Operates on just changed data – Time to correct error equals time to make error • Minutes instead of hours
Correction Time = Error Time + f(DB_SIZE) • Flashback is Easy – Single command instead of complex procedure – Flashback Database impact for OLTP workload observed to be less than 2%
• Great for testing also!
Flashback Familie
Flashback Query
Flashback Tables
Flashback Database
Flashback Data Archive and Transaction
Onderzoek van de fouten d.m.v. Flashback • Flashback Query – Query alle data op een gegeven tijdstip
select * from Salary AS OF ‘12:00 P.M.’ where …
Flashback Version Query – –
Tx 3 Tx 2
Tx 1
Alle versies van een rij tussen tijdstippen tonen transacties die tot wijziging leidden
select * from Salary VERSIONS BETWEEN ‘12:00 PM’ and ‘2:00 PM’ where … Flashback Transaction Query –
Alle wijzigingen door een transactie tonen
select * from FLASHBACK_TRANSACTION_QUERY where xid = HEXTORAW(‘000200030000002D’); • Alle deze zijn gebaseerd op de beschikbare undo
Fout Correctie d.m.v. Flashback
Database Customer
•
Flashback Database – herstelt database tot willekeurig tijdstip
•
Flashback Table – herstelt de inhoud van de tabellen tot een willekeurig tijdstip
•
Flashback Drop – herstelt tabellen die per ongeluk verwijderd zijn (gebaseerd op de vrije ruimte in tablespace)
•
Flashback Transaction – terugdraaien van de transactie en alle daaruit voortvloeiende conflicterende transacties
Order
Oracle Total Recall Flashback Data Archive
• Lange termijn retentie – over jaren • Automatische opslag van alle wijzigingen op de geselecteerde tabellen in Flashback Data Archief
Changes User Tablespaces
Flashback Data Archive
– Archief kan niet worden gewijzigd – Oude data verwijderd volgens de gebruikers’ retentie beleid
• Toont tabel inhoud op een willekeurig tijdstip ( gebruik makend van Flashback Query ) • Maakt gebruik van – Change tracking, Long term history – ILM, Auditing, Compliance
Beste Bescherming tegen de data corruptie Tegen de laagste kosten
Systeem probleem
Ongeplande Downtime
Data probleem
opslag probleem Menselijke Fouten Data Corrupties
Geplande Downtime
Systeem wijziging Data wijziging
Omgevings probleem
Data Recovery Advisor, RMAN, Oracle Secure Backup
Oracle Recovery Manager - RMAN
The native Oracle Database Backup & Recovery Utility
• • • • • •
Intimate knowledge of database file formats and recovery procedures Create and maintain backup policies Catalog all backup and recovery activities Operates online and in parallel for fast processing Corrupt block detection during backup and restore with the ability to validate backups Integrated with Oracle HA solutions such as Oracle Secure Backup, Data Guard, ASM, Enterprise Manager, and also third party backup products
Beste Disaster Protection (DR) Tegen de laagste kosten
System Failures
Unplanned Downtime
Data Failures
opslag probleem Menselijke Fouten Data Corrupties
Planned Downtime
System Changes Data Changes
Omgevings probleem
Data Guard
Disaster Recovery ( DR ) Realities
• Majority of customers never benefit from DR investment – – – –
Expensive – choose no DR, or under-configure DR Loses data – causes problems with interconnected systems Slow – prefer to try to fix problems instead of using DR Limited – protection from site failures only
• Users are afraid to use DR because it may not work DR Systems Gather Dust
Beste Bescherming tegen de Omgevingsprobleem Tegen de laagste kosten
Automatic Failover Production Database
Synchronous Redo Shipping
Physical or Logical Standby DB
Data Guard • Comprehensive data protection – e.g. data corruptions don’t propagate • Failover in seconds – standby is already synchronized • Zero data loss over large distances – advantage over array-based mirroring technologies
Active Data Guard
De verspreidde verwerking naar standby – ontlast de Primary Database Real-time Real-time Reporting Queries
Continu Redo Shipment + Apply
Productie Database
Snelle Incremental Backups
Physical Standby Database
• Verplaats read-only queries naar de up-to-date physical standby • Voert uit de snelle incremental backups op een physical standby
Beste Online Systeem Aanpassingen Tegen de laagste kosten
Systeem probleem
Ongeplande Downtime
Geplande Downtime
Data probleem
Systeem wijziging Data wijziging
Online Reconfiguratie Rolling Upgrades
Rolling Database Upgrades Using Transient Logical Standby
Physical Logical Upgrade Physical
• Start rolling database upgrades with physical standbys • Temporarily convert physical standby to logical to perform the upgrade – Data type restrictions limited to short upgrade window
• No need for separate logical standby for upgrade • Also possible in 10.2 (more manual steps) Leverage your physical standbys!
Beste Online Data Wijzigingen Tegen de laagste kosten
Systeem probleem
Ongeplande Downtime
Geplande Downtime
Data probleem
Systeem wijziging Data wijziging
Online Redefinition
Online Redefinition •
All indexing operations can be done online – Create new index, move index, defragment index
•
Tables can be Reorganized & Redefined online (DBMS_REDEFINITION) – Table contents are copied to a new table • Defragments and allows changing location, table type, partitioning – Contents can be transformed as they are copied • Can change columns, types, sizes - specified using SQL “Select”
•
Updates and Queries can continue uninterrupted
Source Table
Continuous Queries & Updates
Copy Table
Update Tracking
Transform Result Table Store Updates
Transform Updates
GUI interface to make it simple
Online Operations & Redefinition Improvements • Fast ‘add column’ with default value • Invisible indexes speed application migration and testing • No recompilation of dependent objects when Online Redefinition does not logically affect objects • Support Online Redefinition for tables with Materialized Views • Enhanced Online DDL execution – DDL operations now wait if underlying resource is busy (configured through DDL_LOCK_TIMEOUT parameter) – Some DDL operations (add/modify constraint, add column, Index create/rebuild) only required shared lock
Onderwerpen
• Diverse Oplossingen voor de hoge beschikbaarheid • Beheersing van de data groei / ILM ( Information Lifecycle Management ) • Oracle Application Express ( APEX )
Data groei : groeiende behoefte aan de beheersing
Ongestructureerde Data Toezicht & Regulatie
Fusies Acquisities
Structureerde Data Business Intelligence
Data Consolidatie
Advanced Compression ( 11g DB )
Bespaart schijfruimte, geheugen gebruik en vermindert I/O
• Comprimeert Grote Applicatie Tabellen • Transactieverwerking, data warehousing
• Typische Compressie factor : 2 ~ 4 X • Cascade storage savings throughout data center
Tot
4X
Compressie
Compressie resultaat in de praktijk Met de 10 grootste ERP database tabellen
2500
Data Opslag
Tabel Scans
1500 1000
0.4
500
0.3
3x winst
DML Performance 40
0.2
Time (seconds)
0
Time (seconds)
MB
2000
0.1 0
2.5x Sneller
30 20 10 0
< 3% Overhead
Oracle Database Partitioning
ORDERS
ORDERS
ORDERS Europa VS
Jan
Feb
Jan
Feb
Grote Tabel
Partition
Composite Partition
Lastig om te beheren
Verdeel & Heers
Betere Performance
Eenvoudiger qua beheer
Meer flexibiliteit om te voldoen aan de behoeftes
Performance verbeterend
Kerneigenschappen van de Oracle DB Partitioning
• Transparant aan de applicaties • Via tablespace te koppelen aan de verschillende opslag • Helpt bij de performance verbetering – Partitioning pruning ( overslaan bij het zoeken )
Data Lifecycle zonder ILM Data Lifecycle Active Actief
Less Minder Historical Historisch Actief Active Data Lifecycle
High Performance Opslag Tier
Archive Archief
Offline Archief
Mapping van Data Lifecycle naar de juiste opslag Data Lifecycle Actief
High Performance Opslag Tier
Minder Historisch Actief Data Lifecycle
Lage Kosten Opslag Tier
Online Archief Storage Tier
Archief
Offline Archief
Koppeling via Oracle DB partitioning All Orders Q1 Orders
Actief
High Performance Opslag Tier
Q2 Orders Q3 Orders
Minder Actief
Goedkopere Opslag Tier
Q4 Orders
Older Orders
Historisch
Online Archief Opslag Tier
Notes bij Oracle ILM
• NASDAQ bespaart hiermee > 100 milj $ • NASDAQ heeft hiermee geen archief nodig • Starwood ( Sheraton, Westin... ) combineert met Virtual Private Database
Onderwerpen
• Diverse Oplossingen voor de hoge beschikbaarheid • Beheersing van de data groei / ILM ( Information Lifecycle Management ) • Oracle Application Express ( APEX )
Oracle DB Applicatie Ontwikkel tools
SQL
Application
Developer
Express
• SQL and PL/SQL GUI • Third party database and migration support
•Access migration • Flash Charting, PDF output
PL/SQL
• FAST Native Compiler • Fine Grained Dependency Tracking
Java
• FAST Native Transparent JIT Compiler • Easy JDK-like environment
PHP
.NET
• Scalability with Database Resident Connection Pool
• Integration with Visual Studio 2005 •Microsoft ADO.NET 2.0 support
• Unique Rapid Application Development (RAD) tool voor de Oracle Database • Browser gebaseerd voor ontwikkeling, Deployment & Gebruik • Declaratief te ontwikkelen professionele Web 2.0 applicaties die snel en veilig zijn • Maakt volledig gebruik van de Oracle database mogelijkheden en de bestaande SQL & PL/SQL skills • Standaard database component • Volledig ondersteund, “gratis” optie in alle edities van de Oracle Database Eenvoudig om te ontwikkelen • om te deployen • om te beheren
Typische APEX applicaties
Data-gedreven Applicaties
Oracle Forms Modernisatie
Online Rapporten
Spreadsheet Web-enabling
Access Vervanging
Problem: Spreadsheets
• Multiple sources of truth • Manual collation from different sources • Reports generated from partial truth • No controls over who sees the information
Problem: Personal Databases
• Fragmented • Platform dependent • Web unfriendly • Password Security inadequate • Vulnerable • Can be easily copied • Backups inconsistent • Scattered locations • Inefficient utilization of IT resources
Gain more data visibility Integrate data silos Additional reporting Increase productivity React to market forces Meet compliance requirements
Need to do more with fewer people and less budget
Oracle Application Express EASY to Develop • Rapid Web application development • Fully productive very quickly • Declarative / Wizards EASY to Deploy • No client software • Browser based • Feature of the Oracle Database EASY to Maintain • Centrally managed metadata repository • Multi-tenant hosting • Robust framework
APEX functionaliteit
Out-of-the-box componenten
Reports
Validations
Translation Services
Forms
Processes
Conditional Processing
Charts
Computations
Authentication
Calendar
Branches
Authorization
Templates
Web Services
Session State Management
Navigation
Email Services
Logging & Monitoring
Leveraging Database Capabilities Leverage the full spectrum of the Oracle database’s capabilities: • • • • • • • • • • • •
SQL PL/SQL RAC Spatial OLAP Flashback Web Services Text Multimedia Analytic Functions Globalization XML DB
• Geïntegreerd binnen de database 9iR2, 10g, 11g and XE • Ondersteund alle Oracle DB besturingssystemen • Gebruikt Embedded PL/SQL Gateway of Apache met mod_plsql • Metadata gedreven • Alle applicaties opgeslagen in de database
Multi-Tenant Hosting
• Allows IT to manage Database services • Self-service provisioning of workspaces • Example: Free hosted development service at http://apex.oracle.com
Runtime opties Multi-tenant and browser based architecture allows for deployment anywhere Hosted Service (dedicated or multi-tenant)
Corporate IT / Enterprise Service (dedicated or multi-tenant)
Interactive Reporting region Declarative BLOB Support Enhanced Report Reporting Ability to add custom themes to the theme repository Optional runtime-only installation Improved security Documented and supported JavaScript libraries Improved AJAX capabilities Enhanced master-detail forms New API to send attachments in e-mail Enhanced integration with Oracle SQL Developer
Application Development • • • • • • •
Reports Data entry forms Charts Calendars Navigation Look and feel Security
• Applications easily translatable to different languages
Interactive Reports • Out of the box declarative Web 2.0 reporting • Dramatically enhances end-user capabilities
Declarative PDF reporting services Create professional looking reports Range of document formats Ability to define multiple queries
BI Publisher • Output to PDF, Word, Excel, or HTML Reports • • • •
“High Fidelity” Printing Seamlessly Integrated with Application Express Develop RTF Templates using Word Plug-In Full Oracle Support
Data Entry Forms
• Feature Rich – Built in widgets available
• Variety of Form Types
• • Pop-Up calendar • • List of values • – Enable Validations on Form Fields • – Lost update detection
Tabular forms Master Detail forms Forms on a Web Service Form on a Table with Report
Oracle Application Express ( APEX ) • Tool to build Database centric web applications • Simplicity of a desktop database with the full power and reliability of Oracle • Browser based • Multi-Tenant Hosting • MS Access Replacement
Overview of Commercial Applications • Jim Brull, Centroid
Overview of Commercial Applications • Francis Mignault, Insum Solutions Association Management
Overview of Commercial Applications • Anton Nielsen, C2Consulting
Rental Solutions
Overview of Commercial Applications • Paulo Vale, Neoface
BetterCRM, BetterTASKS
Overview of Commercial Applications • Dennis Vanill, Paetec Pinnacle Communications Management Suite
Samenvatting
• Oracle database biedt menige features waarvan sommige nog niet goed bekend • Oracle database biedt diverse oplossingen voor de hoge beschikbaarheid van de gegevens • Oracle biedt diverse oplossingen tegen de datagroei • APEX kan een krachtige applicatie tool zijn voor de db centriek web platforms • Deze en veel andere Oracle DB features leiden tot de kostenverlaging en productiviteitsverhoging