- download.oracle.com · • toont tabel inhoud op een willekeurig tijdstip ( gebruik makend van...
TRANSCRIPT
<Insert Picture Here>
Enkele nuttige Oracle Database features voor de ROCs
Shintaro NagaokaPresales, 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 VaultDatabase VaultGrid ComputingGrid Computing
InIn--Memory Database CacheMemory Database CacheAutomatic Storage MgmtAutomatic Storage Mgmt
Self Managing Database Self Managing Database XML DatabaseXML Database
Oracle Data GuardOracle Data GuardReal Application ClustersReal Application Clusters
Flashback QueryFlashback QueryVirtual Private DatabaseVirtual Private Database
Built in Java VMBuilt in Java VMPaPartitioning Supportrtitioning Support
Built iBuilt in Messagingn MessagingObject RelationalObject Relational SupportSupport
Multimedia SupportMultimedia SupportData Warehousing OptimizationsData Warehousing Optimizations
Parallel OperationsParallel OperationsDistributed SQL & Transaction Distributed SQL & Transaction SupportSupport
Cluster and MPP SupportCluster and MPP SupportMultiMulti--version Read Consistencyversion Read Consistency
Client/Server SupportClient/Server SupportPlatform PortabilityPlatform Portability
Commercial SQL ImplementationCommercial SQL Implementation
Oracle 2Oracle 9i
Oracle 5
Oracle 6
Oracle 7
Oracle 8
Oracle 8i
Oracle 10g
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
Systeem probleem
Data probleem
Systeem wijziging
Data wijziging
OngeplandeDowntime
GeplandeDowntime
Real Application Clusters
ASMFlashback
RMAN & Oracle Secure BackupData Guard
Streams
Online ReconfigurationRolling Upgrades
Online Redefinition
Oracle M
AA
Best P
ractices
Oracle’s HA oplossingenGeïntegreerd met database
Systeem probleem
Data probleem
Systeem wijziging
Data wijziging
OngeplandeDowntime
GeplandeDowntime
Real Application Clusters
Beste Server Bescherming Gecombineerd met de schaalbaarheid
Oracle Real Application Cluster ( RAC ) 100 % hoge beschikbaarheid ook tijdens het onderhoudswerk
Enkelvoudige Database
opslag
Systeem probleem
Data probleem
Systeem wijziging
Data wijziging
OngeplandeDowntime
GeplandeDowntime
Beste Opslag Bescherming Tegen de laagste kosten
Automatic Storage Management (ASM)
opslagprobleem
MenselijkeFouten
Data Corrupties
Omgevings probleem
• ASM mirrors data across low costmodular storage arrays– Automatically remirrors when disk or
array fails
• ASM Enhancements– 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
Database
Storage
Data Mirroring with ASM
Systeem probleem
Data probleem
Systeem wijziging
Data wijziging
OngeplandeDowntime
GeplandeDowntime
Beste Bescherming tegen de Menselijke Fouten Tegen de laagste kosten
Flashback Technologies
opslagprobleem
MenselijkeFouten
Data Corrupties
Omgevings probleem
• Flashback Revolutionizes Error Recovery– Operates on just changed data– Time to correct error equals time to make error
• Minutes instead of hours
• 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!
Correction Time = Error Time + f(DB_SIZE)
Revolution in recovery
020406080
Recovery time
Traditional RecoveryFlashback
FlashbackDatabase
FlashbackData Archive
and Transaction
FlashbackTables
FlashbackQuery
Flashback Familie
• Flashback Query– Query alle data op een gegeven tijdstip
Tx 1
Tx 2
Tx 3
select * from Salary AS OF ‘12:00 P.M.’ where …
select * from Salary VERSIONS BETWEEN‘12:00 PM’ and ‘2:00 PM’ where …
select * from FLASHBACK_TRANSACTION_QUERYwhere xid = HEXTORAW(‘000200030000002D’);
� Flashback Transaction Query– Alle wijzigingen door een transactie tonen
� Flashback Version Query– Alle versies van een rij tussen tijdstippen tonen– transacties die tot wijziging leidden
• Alle deze zijn gebaseerd op de beschikbare undo
Onderzoek van de fouten d.m.v. Flashback
• 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
Database
Customer
Fout Correctie d.m.v. Flashback
• Lange termijn retentie – over jaren
• Automatische opslag van alle wijzigingen op de geselecteerde tabellen in Flashback Data Archief– 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
������������������������
User Tablespaces
Flashback Data Archive
�������� � ��
����������������������������������������������������
Changes
�� � � � � �� � � � � �� � � � � �� � � � � � � �� � �� � �� � � � � � �� � � �� � � �� � � �� � ��� � ��� � ��� � ��
����� � � � � � � � � � � � � � � � � � � � � � � � � � � � � �� �� �� � ������ ��� ��� ��� � ����� � � �� � � �� � � �� � � �
Oracle Total RecallFlashback Data Archive
Systeem probleem
Data probleem
Systeem wijziging
Data wijziging
OngeplandeDowntime
GeplandeDowntime
Beste Bescherming tegen de data corruptie Tegen de laagste kosten
Data Recovery Advisor, RMAN, Oracle Secure
Backup
opslagprobleem
MenselijkeFouten
Data Corrupties
Omgevings probleem
• 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
Oracle Recovery Manager - RMAN The native Oracle Database Backup & Recovery Utility
Data Guard
System Failures
Data Failures
System Changes
Data Changes
UnplannedDowntime
PlannedDowntime
Beste Disaster Protection (DR) Tegen de laagste kosten
opslagprobleem
MenselijkeFouten
Data Corrupties
Omgevings probleem
• 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
Disaster Recovery ( DR ) Realities
• 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
Data Guard
Production Database Synchronous
Redo Shipping
Automatic Failover Physicalor Logical
Standby DB
Beste Bescherming tegen de Omgevingsprobleem Tegen de laagste kosten
• Verplaats read-only queries naar de up-to-date physical standby• Voert uit de snelle incremental backups op een physical standby
Real-time Queries
Physical Standby Database
ProductieDatabase
Continu Redo Shipment + Apply
Real-time Reporting
Snelle Incremental
Backups
Active Data Guard De verspreidde verwerking naar standby – ontlast de Primary Database
Systeem probleem
Data probleem
Systeem wijziging
Data wijziging
OngeplandeDowntime
GeplandeDowntime
Online ReconfiguratieRolling Upgrades
Beste Online Systeem Aanpassingen Tegen de laagste kosten
Rolling Database UpgradesUsing Transient Logical Standby
• 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)
Physical
Logical
Upgrade
Physical
Leverage your physical standbys!
Systeem probleem
Data probleem
Systeem wijziging
Data wijziging
OngeplandeDowntime
GeplandeDowntime
Online Redefinition
Beste Online Data WijzigingenTegen de laagste kosten
• 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
Update Tracking
Transform CopyTable
TransformUpdates
GUI interface to make it
simple
Result Table
Continuous Queries & Updates
Store Updates
Online Redefinition
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
Structureerde Data
Toezicht & Regulatie
BusinessIntelligence
Fusies Acquisities
DataConsolidatie
Advanced Compression ( 11g DB ) Bespaart schijfruimte, geheugen gebruik en vermindert I/O
Compressie4XTot
• Comprimeert Grote Applicatie Tabellen• Transactieverwerking, data warehousing
• Comprimeert Alle Data Types• Gestructureerd en ongestructureerde data types
• Comprimeert Backup Gegevens– Sneller RMAN compressie– Data Pump compressie
• Typische Compressie factor : 2 ~ 4 X• Cascade storage savings throughout data center
Compressie resultaat in de praktijkMet de 10 grootste ERP database tabellen
0
500
1000
1500
2000
2500
3x winst
MB
Data Opslag
Tabel Scans
Tim
e (s
eco n
ds)
0
0.1
0.2
0.3
0.4
2.5x Sneller
DML Performance
0
10
20
30
40
Tim
e (s
eco n
ds)
< 3% Overhead
Oracle Database Partitioning
Grote TabelLastig om te beheren
PartitionVerdeel & Heers
Eenvoudiger qua beheer
Performance verbeterend
Composite PartitionBetere Performance
Meer flexibiliteit om te voldoen aan de behoeftes
ORDERS ORDERS
Jan Feb
ORDERS
Jan Feb
Europa
VS
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 )
• Helpt beheerbaarheid• > 10 jaar oud ( proven )• Divers
– Range– Hash– List– Composite ( mix )– Ref– Interval
Data Lifecycle zonder ILM
Active Less Active Historical ArchiveData Lifecycle
Actief MinderActief Historisch Archief
Data Lifecycle
High PerformanceOpslag Tier
Offline Archief
Mapping van Data Lifecycle naar de juiste opslag
High PerformanceOpslag Tier
Lage KostenOpslag Tier
Online ArchiefStorage Tier
Offline Archief
Data LifecycleActief Minder
Actief Historisch Archief
Data Lifecycle
All OrdersQ1
Orders
Q2Orders
Q3Orders
Q4Orders
OlderOrders
ActiefHigh PerformanceOpslag Tier
Minder ActiefGoedkopereOpslag Tier
HistorischOnline ArchiefOpslag Tier
Koppeling via Oracle DB partitioning
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
Application
Express
• FAST Native Transparent JIT Compiler
• Easy JDK-like environment
• FAST Native Compiler
• Fine Grained Dependency Tracking
• SQL and PL/SQL GUI
• Third party database and migration support
SQL
DeveloperPL/SQL Java PHP
• Scalability with Database Resident Connection Pool
•Access migration
• Flash Charting, PDF output
.NET
• 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
Oracle Application Express ( APEX )Database centriek Web applicatie ontwikkeltool
Data-gedreven Applicaties
Online Rapporten
Access VervangingSpreadsheet Web-enabling
Oracle FormsModernisatie
Typische APEX applicaties
Problem: Spreadsheets
• Manual collation from different sources• Reports generated from partial truth• No controls over who sees the information
• Multiple sources of truth
Problem: Personal Databases
• Fragmented• Platform dependent• Web unfriendly
• Backups inconsistent• Scattered locations• Inefficient utilization of IT
resources
• Password Security inadequate• Vulnerable• Can be easily copied
Problem: RAD
� Centrally managed Enterprise Database
� Backed-up� Secure� Scalable
Need to do more with fewer people and less budget
� Gain more data visibility� Integrate data silos� Additional reporting� Increase productivity� React to market forces� Meet compliance
requirements
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
Reports
Forms
Charts
Calendar
Templates
Navigation
Validations
Processes
Computations
Branches
Web Services
Email Services
Translation Services
Conditional Processing
Authentication
Authorization
Session State Management
Logging & Monitoring
Out-of-the-box componenten
© 2008 Oracle Corporation – Proprietary
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
APEX architectuur
• 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
© 2008 Oracle Corporation – Proprietary
Multi-tenant and browser based architecture allows for deployment anywhere
Hosted Service (dedicated or multi-tenant)
Corporate IT / Enterprise Service (dedicated or multi-tenant)
Departmental Server
Local Database (Oracle XE)
Runtime opties
Version 3.1 Highlights
• 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
Download from OTN
Application Development
• Reports• Data entry forms• Charts• Calendars• Navigation• Look and feel• Security
• Applications easily translatable to different languages
© 2008 Oracle Corporation – Proprietary
Interactive Reports
• Out of the box declarative Web 2.0 reporting• Dramatically enhances end-user capabilities
BI Publisher Architecture
• 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
• Pop-Up calendar• List of values
– Enable Validations on Form Fields– Lost update detection
• Variety of Form Types• Tabular forms• Master Detail forms• Forms on a Web Service• Form on a Table with
Report
• 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
Oracle Application Express ( APEX )
Overview of Commercial Applications
• Doug Gault, HotsosHotsos Application Workload Characterization Solution (HAWCS)
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