Cooper Oracle 11g Overview

  • 2,211 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,211
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
221
Comments
0
Likes
2

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

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