Cooper Oracle 11g Overview


Published on

Published in: Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Cooper Oracle 11g Overview

    1. 2. Agenda <ul><li>Sneak Peek at Oracle Database 11g </li></ul><ul><ul><li>Management Enhancements </li></ul></ul><ul><ul><li>Availability Enhancements </li></ul></ul><ul><ul><li>Performance Enhancements </li></ul></ul><ul><ul><li>11g New Features Summary </li></ul></ul>
    2. 3. Oracle Database 11g Change Assurance Capabilities Capture & Replay Workload Set Up Test Environments Perform Online Application Upgrades Detect & Tune Performance Changes Manage Execution Plan Evolution Package Incidents for Support Online Hot Patching
    3. 4. Snapshot Standbys for Test Environments <ul><li>Convert Physical Standby to Snapshot Standby and open for writes by testing applications </li></ul><ul><ul><li>ALTER DATABASE CONVERT TO SNAPSHOT STANDBY ; </li></ul></ul><ul><li>Discard testing writes and catch-up to primary by applying logs </li></ul><ul><ul><li>ALTER DATABASE CONVERT TO PHYSICAL STANDBY; </li></ul></ul><ul><li>Preserves zero data loss </li></ul><ul><ul><li>But no real time query or fast failover </li></ul></ul><ul><li>Similar to storage snapshots, but : </li></ul><ul><ul><li>Provides DR at the same time </li></ul></ul><ul><ul><li>Single copy of storage </li></ul></ul>Physical Standby Apply Logs Snapshot Standby Perform Testing Open Database Back out Changes Continuous Redo Shipping
    4. 5. Database Replay <ul><li>Capture Workload in Production </li></ul><ul><ul><li>Capture production workload with actual load & concurrency </li></ul></ul><ul><ul><li>Move the captured workload to test system </li></ul></ul><ul><li>Replay Workload in Test </li></ul><ul><ul><li>Make the desired changes in test system </li></ul></ul><ul><ul><li>Replay workload with production load & concurrency </li></ul></ul><ul><li>Analyze & Report </li></ul><ul><ul><li>Errors </li></ul></ul><ul><ul><li>Data divergence </li></ul></ul><ul><ul><li>Performance divergence </li></ul></ul><ul><ul><ul><li>Use ADDM, AWR for further performance analysis </li></ul></ul></ul>
    5. 6. Pre-Change Production System … Backup … Captured Workload Process Process … Capture Workload Changes Unsupported Changes Supported <ul><li>Database Upgrades, Patches </li></ul><ul><li>Schema, Parameters </li></ul><ul><li>RAC nodes, Interconnect </li></ul><ul><li>OS Platforms, OS Upgrades </li></ul><ul><li>CPU, Memory </li></ul><ul><li>Storage </li></ul><ul><li>Etc. </li></ul>Client Client App Server App Server App Server Client Process
    6. 7. Post-Change Test System … … … … … Process Process … Process Process … Can use Snapshot Standby as test system Pre-Change Production System Processed Captured Workload Backup Capture Workload Replay Driver App Server App Server App Server Process Process Replay Driver Client Client … Client
    7. 8. Capturing the SQL Workload
    8. 9. SQL Replay <ul><li>Focus on impact of change on SQL query workload </li></ul><ul><li>Capture SQL in Production </li></ul><ul><ul><li>Automatically capture SQL workload over a specified period </li></ul></ul><ul><ul><li>Capture SQL text, plans, bind variables, execution statistics </li></ul></ul><ul><ul><li>Can capture 10.2 SQL workload </li></ul></ul><ul><ul><li>Move captured SQL workload to test system </li></ul></ul><ul><li>Replay SQL in Test </li></ul><ul><ul><li>Replay SQL in pre and post-change configurations </li></ul></ul><ul><ul><li>Compare and analyze performance </li></ul></ul><ul><ul><li>For regressed SQL, use SQL Tuning Advisor (10g) to improve performance with SQL Profiles </li></ul></ul><ul><li>Changes supported </li></ul><ul><ul><li>Major & minor database releases, patches, parameters, schema, optimizer statistics, tuning recommendations </li></ul></ul>
    9. 10. SQL Replay Performance Analysis
    10. 11. Viewing SQL Replay Analysis Results
    11. 14. Automatic SQL Tuning Configuration
    12. 16. Automatic SQL Tuning Result Summary
    13. 17. Automatic SQL Tuning Results Recommendations
    14. 18. Automatic SQL Tuning Result Details
    15. 19. Automatic SQL Tuning Results Drilldown
    16. 20. New Change Assurance Capabilities in Oracle Database 11g Capture & Replay Workload Set Up Test Environments Perform Online Application Upgrades Detect & Tune Performance Changes Manage Execution Plan Evolution Package Incidents for Support Online Hot Patching
    17. 21. Online Application Upgrade <ul><li>Large, mission critical applications are often unavailable for tens of hours while a patch or an upgrade is installed </li></ul><ul><li>Oracle Database 11 g introduces revolutionary new capabilities that allow online application upgrade with uninterrupted availability of the application </li></ul><ul><li>The pre-upgrade application and the post-upgrade application can be used at the same time </li></ul><ul><li>End-user sessions therefore enjoy hot rollover </li></ul>
    18. 22. Online Application Upgrade The challenge <ul><li>The installation of the upgrade into the production database must not perturb live users of the pre-upgrade application </li></ul><ul><ul><li>The changes must be made in privacy </li></ul></ul><ul><li>Transactions done by the users of the pre-upgrade application must by reflected in the post-upgrade application </li></ul><ul><li>For hot rollover, we also need the reverse of this: </li></ul><ul><ul><li>Transactions done by the users of the post- upgrade application must by reflected in the pre- upgrade application </li></ul></ul>
    19. 23. Online Application Upgrade How did we do it? <ul><li>Evolutionary capability improvements </li></ul><ul><ul><li>Some table DDLs that used to fail if another session had outstanding DML now always succeed </li></ul></ul><ul><ul><li>Others, that cannot succeed while there’s outstanding DML, are now governed by a timeout parameter </li></ul></ul><ul><ul><li>Online index creation and rebuild now never wait </li></ul></ul><ul><ul><li>The dependency model is now fine-grained: e.g. adding a new column to a table, or a new subprogram to a package spec, no longer invalidates the dependants </li></ul></ul>
    20. 24. Online Application Upgrade Revolutionary new capabilities <ul><li>11.1 brings the edition , the editioning view , and the crossedition trigger </li></ul><ul><ul><li>Code changes are installed in the privacy of a new edition . </li></ul></ul><ul><ul><li>Data changes are made safely by writing only to new columns or new tables not seen by the old edition </li></ul></ul><ul><ul><ul><li>An editioning view exposes a different projection of a table into each edition to allow each to see just its own columns </li></ul></ul></ul><ul><ul><ul><li>A crossedition trigger propagates data changes made by the old edition into the new edition’s columns, or (in hot-rollover) vice-versa </li></ul></ul></ul>
    21. 25. New Change Assurance Capabilities in Oracle Database 11g Capture & Replay Workload Set Up Test Environments Perform Online Application Upgrades Detect & Tune Performance Changes Manage Execution Plan Evolution Package Incidents for Support Online Hot Patching
    22. 26. SQL Plan Management controlled plan evolution <ul><li>Business Requirement </li></ul><ul><li>Data is changing over time </li></ul><ul><ul><li>Statistics and execution plans become suboptimal </li></ul></ul><ul><li>Statistics have to be updated </li></ul><ul><ul><li>Possibly unpredictable changes of execution plans </li></ul></ul><ul><li>Today you have ‘freeze’ critical plans or statistics </li></ul><ul><li>Solution </li></ul><ul><li>Optimizer automatically manages SQL Plan Baselines </li></ul><ul><ul><li>Only known and verified plans are used </li></ul></ul><ul><li>Plan changes are automatically verified in maintenance window </li></ul><ul><ul><li>Only comparable or better plans are used going forward </li></ul></ul><ul><li>Can pre-seed critical SQL with baselines from SQL Replay </li></ul>
    23. 27. Automatic Diagnostic Workflow Reduce Time to Problem Resolution Automatic Diagnostic Repository Duplicate Bug? Yes <ul><li>EM Support Workbench: </li></ul><ul><li>Apply Patch or Workaround </li></ul><ul><li>Guided Repair </li></ul>No <ul><li>EM Support Workbench: </li></ul><ul><li>Package Incident information </li></ul><ul><li>including CCR info </li></ul><ul><li>Guided Repair </li></ul><ul><li>Incident Packaging Service </li></ul><ul><li>First-failure Capture </li></ul>Critical Error <ul><li>Alert DBA </li></ul><ul><li>Targeted assessments </li></ul><ul><li>Assisted SR Filing </li></ul>Auto Bug Matching (post 11gR1) 1 2 3 4 5
    24. 28. New Change Assurance Capabilities in Oracle Database 11g Capture & Replay Workload Set Up Test Environments Perform Online Application Upgrades Detect & Tune Performance Changes Manage Execution Plan Evolution Package Incidents for Support Online Hot Patching
    25. 29. Incident Packaging Service
    26. 30. New Change Assurance Capabilities in Oracle Database 11g Capture & Replay Workload Set Up Test Environments Perform Online Application Upgrades Detect & Tune Performance Changes Manage Execution Plan Evolution Package Incidents for Support Online Hot Patching
    27. 31. Feature-Based Patching <ul><li>Automatic correlation against feature usages eliminates unnecessary downtime </li></ul><ul><li>Both ad-hoc searches and subscription supported </li></ul>Yes Proactively push metadata (version, feature relevance) for evaluation Download patch Customer Relevant Patch Found? Recommended interim patch becomes available in Metalink Database targets/groups Features & versions collected Apply patch 1 2 3 4 5 Grid/DB Control
    28. 32. EM-driven Proactive Patching
    29. 33. Database feature based Patching
    30. 34. Online Patching of One-off Patches <ul><li>Patch a running Oracle instance with no downtime </li></ul><ul><ul><li>Many one-off patches can be online patched </li></ul></ul><ul><ul><ul><li>Subset of RAC online upgradeable patches </li></ul></ul></ul><ul><ul><li>Great for diagnostic patches </li></ul></ul><ul><li>Enable, disable and de-install one-off patches with no downtime </li></ul><ul><ul><li>Integrated with OPatch and inventory </li></ul></ul><ul><li>Initially available on Linux and Solaris </li></ul><ul><li>Long term goal is online patching of Critical Patch Updates (CPUs). </li></ul>
    31. 35. Online Patch Upgrade using RAC Initial RAC Configuration Clients on A, Patch B Emergency One-off Patches Operating System Upgrades Upgrade Complete Hardware Upgrades Clients Clients Clients on B, Patch A Patch 1 2 3 4 A B Patch B Critical Patch Updates
    32. 36. Online Database Upgrades using SQL Apply Initial SQL Apply Config Clients Redo Version X Version X 1 Switchover to B, upgrade A Redo 4 Upgrade X+1 X+1 Run in mixed mode to test Redo 3 X+1 X Upgrade node B to X+1 Upgrade Logs Queue X 2 X+1 Major Release Upgrades Patch Set Upgrades Cluster Software & Hardware Upgrades B A B A A B A B
    33. 37. Manageability, High Availability and Performance Highlights
    34. 38. Automatic SQL Tuning <ul><li>Automatically chooses high-load SQL based on response time, throughput and frequency criteria </li></ul><ul><li>Automatically tunes SQL by creating SQL Profiles </li></ul><ul><li>Automatically test executes the tuned plans to verify improvement </li></ul><ul><li>Automatically implements greatly (3X) improved plans (optional) </li></ul><ul><li>Automatically reports missing access structures, stale stats, poorly structured SQL </li></ul><ul><li>Automatically runs during maintenance window or manually triggered </li></ul>Well-tuned SQL Packaged Apps Customizable Apps Advisor Report Automatic SQL Tuning Index, Stats, Structure Analysis Test Execute SQL Profiles Implement Automatic Nightly SQL Profiling Manual High-Load SQL AWR
    35. 39. Partition Management Made Easy <ul><li>Partition Advice from Access Advisor </li></ul><ul><li>Provide advice on Partitioning methods </li></ul><ul><li>Partitioning advice for tables,indexes, MVs </li></ul><ul><li>Consider entire query & DML workload to improve query performance </li></ul><ul><li>Integrated, non-conflicting advice with Indexes, MVs </li></ul><ul><li>Automatic Interval Partition Creation </li></ul><ul><li>On first insert </li></ul><ul><li>With constant width intervals for dates and numbers </li></ul><ul><li>Existing RANGE partitioned tables can be converted to INTERVAL </li></ul><ul><li>RANGE and INTERVAL can coexist in a single table </li></ul>Well-Designed Schema SQL Workload Packaged Apps Customizable Apps Access Advisor Index, MV Advice Partition Analysis Partition Advice Index, MV Analysis
    36. 40. Flashback Data Archive <ul><li>Long term retention - years </li></ul><ul><li>Automatically stores all changes to selected tables in Flashback Data Archive </li></ul><ul><ul><li>Archive cannot be modified </li></ul></ul><ul><ul><li>Old data purged per retention policy </li></ul></ul><ul><li>View table contents as of any time using Flashback SQL </li></ul><ul><li>Uses </li></ul><ul><ul><li>Change Tracking </li></ul></ul><ul><ul><li>ILM </li></ul></ul><ul><ul><li>Long term history </li></ul></ul><ul><ul><li>Auditing </li></ul></ul><ul><ul><li>Compliance </li></ul></ul>ORDERS User Tablespaces Flashback Data Archive Archive Tables Oracle Database Changes Total Recall Select * from orders AS OF ‘Midnight 31-Dec-2004’
    37. 41. Physical Standby with Real-Time Query <ul><li>Read-only queries on physical standby concurrent with redo apply </li></ul><ul><ul><li>Supports RAC on primary / standby </li></ul></ul><ul><ul><li>Queries see transactionally consistent results </li></ul></ul><ul><li>Immediate appeal to the many users of physical standby </li></ul><ul><li>DR with real time query is unique in the industry – no idle resources </li></ul><ul><li>Handles all data types, but not as flexible as logical standby </li></ul>Physical Standby Database Primary Database Real-time Queries Continuous Redo Shipment and Apply Concurrent Real-Time Query
    38. 42. Rolling Database Upgrades Using Transient Logical Standby <ul><li>Logical standby allows rolling upgrades but has data type restrictions </li></ul><ul><li>Temporarily convert physical standby to logical to perform a rolling upgrade </li></ul><ul><ul><li>Data type restrictions are limited to short upgrade window </li></ul></ul><ul><li>No need for separate logical standby for upgrade </li></ul>Physical Logical Upgrade Physical Also possible in 10.2 with more manual steps
    39. 43. Performance Major New Performance Innovations <ul><li>Automatic “native” PL/SQL and Java compilation </li></ul><ul><ul><li>Now fully transparent, no C compiler required </li></ul></ul><ul><li>SecureFiles </li></ul><ul><ul><li>New generation LOBs just as fast as files </li></ul></ul><ul><li>Query Results caches </li></ul><ul><ul><li>Fast caching of query/function results for read-mostly data </li></ul></ul><ul><li>Table Compression </li></ul><ul><ul><li>Now for OLTP as well as DW applications </li></ul></ul><ul><li>And much more … </li></ul><ul><ul><li>RAC optimizations, TimesTen enhancements, faster triggers, Auto NFS, faster upgrades, faster Streams, faster Data Guard, … </li></ul></ul>
    40. 44. Oracle SecureFiles Unified Storage <ul><li>SecureFiles is a new database feature designed to break the performance barrier keeping file data out of databases </li></ul><ul><li>Similar to LOBs but much faster, and with more capabilities </li></ul><ul><ul><li>Transparent encryption, compression, deduplication, etc. </li></ul></ul><ul><ul><li>Preserves the security, reliability, and scalability of database </li></ul></ul><ul><ul><li>Superset of LOB interfaces allows easy migration from LOBs </li></ul></ul><ul><li>Enables consolidation of file data with associated relational data </li></ul><ul><ul><li>Single security model </li></ul></ul><ul><ul><li>Single view of data </li></ul></ul><ul><ul><li>Single management of data </li></ul></ul>
    41. 45. Server Results Cache taking the buffer cache to the next level <ul><li>Automatically Caches results of queries, query blocks, or pl/sql function calls </li></ul><ul><ul><li>Cache is shared across statements and sessions on server </li></ul></ul><ul><ul><li>Significant speed up for read-only / read-mostly data </li></ul></ul>join join T1 GBY join T2 T3 GBY join T4 join T5 T6 join join T1 GBY join T2 T3 GBY join T4 join T5 T6 Q1: build query cache join join T1 GBY join T2 T3 GBY Q2: Use it transparently cache
    42. 46. OCI Consistent Client Cache like cache fusion between server and client <ul><li>Caches query results on client </li></ul><ul><li>Improves performance for read-mostly tables </li></ul><ul><ul><li>Faster response time - eliminates network round trips </li></ul></ul><ul><ul><li>Saves server CPU </li></ul></ul><ul><li>Consistent with server </li></ul><ul><ul><li>Cache proactively refreshed when result set changes </li></ul></ul><ul><ul><li>Maximum age of consistency info can be set </li></ul></ul>Application Server Database Consistent Caching
    43. 47. <ul><li>Oracle Database 9 i table compression works for DW </li></ul><ul><ul><li>Compression for bulk load operations </li></ul></ul><ul><ul><li>Direct Path Load </li></ul></ul><ul><ul><li>Create Table Select As … </li></ul></ul><ul><li>Compression is now viable for OLTP </li></ul><ul><ul><li>Regular (non-bulk) INSERT, UPDATE, DELETE </li></ul></ul><ul><ul><li>Add, Drop Column </li></ul></ul><ul><li>Compression benefits </li></ul><ul><ul><li>Reduced disk space consumption – typically 2x to 3x </li></ul></ul><ul><ul><li>Reduced IO </li></ul></ul><ul><ul><li>Enhanced cache efficiency </li></ul></ul><ul><ul><li>Better read performance </li></ul></ul>Compression for OLTP
    44. 48. Information Management Platform <ul><li>Complete </li></ul><ul><li>Integrated </li></ul><ul><li>Robust </li></ul><ul><li>Scalable </li></ul><ul><li>Secure </li></ul><ul><li>Available on all platforms </li></ul>Oracle interMedia Multimedia management Oracle Locator & Spatial Location and Proximity Searching XML DB Integrated Native XML Database Oracle Text Text Indexing and Search Relational Characters, Numbers, Dates, LOBs Oracle Content and Records DB Content Management
    45. 49. Information Management <ul><li>Complete </li></ul><ul><li>Integrated </li></ul><ul><li>Robust </li></ul><ul><li>Scalable </li></ul><ul><li>Secure </li></ul><ul><li>Available on all platforms </li></ul>Oracle interMedia DICOM Medical Image support Oracle Locator & Spatial Improved maps, 3D support, traffic updates XML DB Binary XML, Schema Evolution Information Retrieval Text Improvements, Semantic Processing Relational Secure Files Oracle Content and Records DB 11g Feature Refresh
    46. 50. Addt’l Oracle Database 11g Highlights <ul><li>High Availability </li></ul><ul><ul><li>Logminer, Physical Standby, Streams support for XMLType, TDE </li></ul></ul><ul><ul><li>Fast Start Failover with Async Propagation </li></ul></ul><ul><ul><li>Faster Logical Standby Apply </li></ul></ul><ul><ul><li>Flashback Transaction </li></ul></ul><ul><ul><li>Data Repair Advisor </li></ul></ul><ul><li>Integration </li></ul><ul><ul><li>Faster Gateways </li></ul></ul><ul><ul><li>Gateways to Legacy Databases </li></ul></ul><ul><ul><li>Streams Synchronous Capture </li></ul></ul><ul><ul><li>Streams Faster Apply </li></ul></ul><ul><li>Performance and Scalability </li></ul><ul><ul><li>RAC Scalability Enhancements </li></ul></ul><ul><ul><li>Faster PL/SQL Triggers </li></ul></ul><ul><li>Security </li></ul><ul><ul><li>Tablespace and LOB Encryption </li></ul></ul><ul><ul><li>Secure By Default </li></ul></ul><ul><ul><li>Enterprise Manager support for TDE, OLS, VPD, EUS </li></ul></ul><ul><ul><li>TDE works with LOBS, log miner </li></ul></ul><ul><li>Windows </li></ul><ul><ul><li>VSS Writer for Point In Time Copies </li></ul></ul><ul><li>Manageability and Diagnosability </li></ul><ul><ul><li>Unified Automatic Memory Management </li></ul></ul><ul><ul><li>Scheduler supports remote jobs </li></ul></ul><ul><ul><li>Automatic Health Monitoring </li></ul></ul><ul><ul><li>Faster Database Upgrades </li></ul></ul><ul><li>ASM </li></ul><ul><ul><li>Variable extent sizes, Fast resync, Preferred reads </li></ul></ul><ul><li>RAC </li></ul><ul><ul><li>Highly optimized protocols </li></ul></ul><ul><ul><li>ADDM for RAC </li></ul></ul><ul><li>Content Management Infrastructure </li></ul><ul><ul><li>Binary XML storage </li></ul></ul><ul><ul><li>Enhanced XML indexing </li></ul></ul><ul><ul><li>Combined Text and Relational Indexes </li></ul></ul><ul><ul><li>DICOM Medical Imaging Support </li></ul></ul><ul><ul><li>Storage & Query of Semantic Content (RDF, OWL) </li></ul></ul><ul><li>Business Intelligence </li></ul><ul><ul><li>Next generation OLAP </li></ul></ul><ul><ul><li>Supermodels for Data Mining </li></ul></ul><ul><ul><li>Enterprise Manager is DW aware </li></ul></ul><ul><ul><li>PIVOT/UNPIVOT operators </li></ul></ul>
    47. 51. Using EM to Perform Fast Mirror Resync
    48. 52. Setting Up ASM Fast Mirror Resync
    49. 53. Monitor Memory Management
    50. 54. ADDM for RAC
    51. 55. A Q & Q U E S T I O N S A N S W E R S