Lowering your IT Costs with Oracle Database 11g Release 2 Thomas Kyte http://asktom.oracle.com
Continuous Innovation     Exadata Storage   Real Application Testing   Advanced Compression   Automatic Storage Management...
<Insert Picture Here> Clustering
Consolidate onto the Grid Using low-cost server and storage grids Automatic Storage Management In-Memory Database Cache Re...
Oracle Database 11g Release 2 Dynamic Cluster Partitioning via Server Pools <ul><li>Dynamically assigns servers to run gro...
RAC One Node New Enterprise  feature  for mass consolidation <ul><li>Low entry cost to grid consolidation </li></ul><ul><l...
<Insert Picture Here> Hardware
Sun Oracle Database Machine Get on the Grid Faster - OLTP & Data Warehousing <ul><li>Oracle Database Server Grid </li></ul...
Sun Exadata Storage Server Hardware 24 GB DRAM 12 x 3.5” Disk Drives  2  Quad-Core Intel ®  Xeon ®   Processors Disk Contr...
Flash Cache How it works 120 GB  Flash Cache 16 GB  SGA Memory 360 GB Magnetic Disks <ul><li>Install Flash Drive in the Ho...
World’s Fastest OLTP Machine With Sun FlashFire Technology <ul><li>Huge semiconductor memory hierarchy </li></ul><ul><ul><...
<Insert Picture Here> IMDB
Oracle In Memory Database Cache Offload Data processing to Middle Tier resources <ul><li>Data cached in application memory...
<Insert Picture Here> Warehousing
Oracle Database 11g Release 2 In-Memory Parallel Execution <ul><li>Data warehouse environments can have large amounts of m...
In-Memory Parallel Execution How it works SQL statement Determine the size of the table being looked at Fragments of Table...
Automated Degree of Parallelism How it works SQL statement Statement is hard parsed And optimizer determines the execution...
Parallel Statement Queuing How it works SQL statements Statement is parsed and Oracle automatically determines DOP If enou...
Query Processing: The problem with traditional storage What Were Yesterday’s Sales? SUM Oracle Database Server Grid Storag...
Query Processing:  Using Sun Oracle Exadata Storage Server What Were Yesterday’s Sales? SUM Oracle Exadata Storage Grid Se...
<Insert Picture Here> Storage
Reduce storage costs by factor of 10x Data growth continues to outpace budget growth Source: Winter TopTen Survey, Winter ...
Automatic Storage Management Lowers the cost of storage management <ul><li>Virtualize and share storage resources </li></u...
Oracle Database 11g Release 2 ASM Cluster File System <ul><li>General purpose clustered or local file system </li></ul><ul...
Oracle Database 11g Release 2 Other ASM Enhancements <ul><li>Improved Management </li></ul><ul><ul><li>ASM Install & Confi...
Manage Data Growth  Partition for performance, management and cost 5% Active 95% Less Active ORDERS TABLE (7 years) 2003 2...
Significantly Reduce Storage Usage Advanced OLTP Compression <ul><li>Compress large application tables </li></ul><ul><ul><...
Sun Oracle Exadata Storage Server Hybrid Columnar Compression <ul><li>Data stored by column and then compressed </li></ul>...
<Insert Picture Here> Availability
Oracle Maximum Availability Architecture Fully Utilizing Redundancy Automatic Storage Management Real Application Clusters...
Traditional Testing Approach  Production – 1,000s of Real Online Users PRODUCTION
Limited Testing Capabilities  Few users trying to be 1,000s of users TEST PRODUCTION
Real Application Testing Workload for 1,000s of Online Users Captured Capture PRODUCTION Workload
Real Application Testing Workload for 1,000s of Online Users Replayed Replay PRODUCTION TEST Capture Workload
Online Application Upgrade Edition-based redefinition <ul><li>Code changes are installed in the privacy of a new  edition ...
Online Application Upgrade Edition-based redefinition <ul><li>ops$tkyte%ORA11GR2> create user demo identified by demo </li...
Online Application Upgrade Edition-based redefinition <ul><li>ops$tkyte%ORA11GR2> connect demo/demo </li></ul><ul><li>Conn...
Online Application Upgrade Edition-based redefinition <ul><li>demo%ORA11GR2> exec my_procedure2 </li></ul><ul><li>Hello Wo...
Online Application Upgrade Edition-based redefinition <ul><li>demo%ORA11GR2> connect / </li></ul><ul><li>Connected. </li><...
Online Application Upgrade Edition-based redefinition <ul><li>ops$tkyte%ORA11GR2> connect demo/demo </li></ul><ul><li>Conn...
Online Application Upgrade Edition-based redefinition <ul><li>demo%ORA11GR2> create or replace procedure my_procedure </li...
Online Application Upgrade Edition-based redefinition <ul><li>demo%ORA11GR2> SELECT SYS_CONTEXT('userenv', 'current_editio...
Online Application Upgrade Edition-based redefinition <ul><li>demo%ORA11GR2> connect demo/demo </li></ul><ul><li>Connected...
Online Application Upgrade Edition-based redefinition <ul><li>demo%ORA11GR2> alter session set edition = version2; </li></...
<Insert Picture Here> How to get there
What are my upgrade paths? Predictable performance post-upgrade    10.2.0.2    11.1.0.6 10.1.0.5 9.2.0.8 11.2 SQL Plan M...
Rolling Database Upgrades Initial SQL Apply Config Clients Redo Version X Version X 1 Switchover to B, upgrade A Redo 4 Up...
Make Change Safe -  Realistic Testing with Database Replay <ul><li>Recreate actual production database workload in test en...
For More Information http://search.oracle.com or www.oracle.com/database oracle database 11g
Upcoming SlideShare
Loading in...5
×

11g R2

2,427

Published on

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,427
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
262
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide
  • CVU = Cluster Verification Utilities
  • 11g R2

    1. 1. Lowering your IT Costs with Oracle Database 11g Release 2 Thomas Kyte http://asktom.oracle.com
    2. 2. Continuous Innovation Exadata Storage Real Application Testing Advanced Compression Automatic Storage Management Transparent Data Encryption Self Managing Database XML Database Oracle Data Guard Real Application Clusters Flashback Query Virtual Private Database Built in Java VM Partitioning Support Built in Messaging Object Relational Support Multimedia Support Data Warehousing Optimizations Parallel Operations Distributed SQL & Transaction Support Cluster and MPP Support Multi-version Read Consistency Client/Server Support Platform Portability Commercial SQL Implementation Oracle 2 Oracle 9 i Oracle 5 Oracle 6 Oracle 7 Oracle 8 Oracle 8 i Oracle 10g Oracle 11g
    3. 3. <Insert Picture Here> Clustering
    4. 4. Consolidate onto the Grid Using low-cost server and storage grids Automatic Storage Management In-Memory Database Cache Real Application Clusters Enterprise Manager
    5. 5. Oracle Database 11g Release 2 Dynamic Cluster Partitioning via Server Pools <ul><li>Dynamically assigns servers to run groups of related workload </li></ul><ul><li>Allocation is Policy Managed – Min/Max, Relative Importance </li></ul><ul><li>Unassigned Servers go to Free Pool </li></ul><ul><li>Cluster reconfigures if a pool falls below its minimums </li></ul>Back Office Front Office Depart/LOB Free
    6. 6. RAC One Node New Enterprise feature for mass consolidation <ul><li>Low entry cost to grid consolidation </li></ul><ul><li>Automated failover within Grid </li></ul><ul><li>Rolling patches </li></ul><ul><li>Online upgrade to multi-node RAC instances </li></ul>DB B DB C DB D DB E DB F DB A
    7. 7. <Insert Picture Here> Hardware
    8. 8. Sun Oracle Database Machine Get on the Grid Faster - OLTP & Data Warehousing <ul><li>Oracle Database Server Grid </li></ul><ul><li>8 Database Servers </li></ul><ul><ul><li>64 Cores </li></ul></ul><ul><ul><li>400 GB DRAM </li></ul></ul><ul><li>Exadata Storage Server Grid </li></ul><ul><li>14 Storage Servers </li></ul><ul><ul><li>5TB Smart Flash Cache </li></ul></ul><ul><ul><li>336 TB Disk Storage </li></ul></ul><ul><li>Unified Server/Storage Network </li></ul><ul><li>40 Gb/sec Infiniband Links </li></ul><ul><ul><li>880 Gb/sec Aggregate Throughput </li></ul></ul><ul><li>Completely Fault Tolerant </li></ul>
    9. 9. Sun Exadata Storage Server Hardware 24 GB DRAM 12 x 3.5” Disk Drives 2 Quad-Core Intel ® Xeon ® Processors Disk Controller HBA with 512M battery backed cache InfiniBand QDR (40Gb/s) dual port card Dual-redundant, hot-swappable power supplies 4 x 96GB Sun Flash PCIe Cards
    10. 10. Flash Cache How it works 120 GB Flash Cache 16 GB SGA Memory 360 GB Magnetic Disks <ul><li>Install Flash Drive in the Host Server </li></ul><ul><li>Set two init.ora parameters: </li></ul><ul><li>db_flash_cache_file = <filename> </li></ul><ul><ul><li>Specifies the path to the flash disk </li></ul></ul><ul><li>db_flash_cache_size=<size> </li></ul><ul><ul><li>Specifies the amount of flash disk to use </li></ul></ul>Extended Buffer Cache
    11. 11. World’s Fastest OLTP Machine With Sun FlashFire Technology <ul><li>Huge semiconductor memory hierarchy </li></ul><ul><ul><li>400 Gigabytes DRAM </li></ul></ul><ul><ul><li>5 TB Smart Flash Cache – Not Flash Disk !!! </li></ul></ul><ul><li>1 Million random I/Os per second </li></ul><ul><ul><li>Eliminates most physical disk I/O </li></ul></ul><ul><li>3x database compression for OLTP </li></ul><ul><ul><li>Compressed 1.2 TB Database in DRAM </li></ul></ul><ul><ul><li>Compressed 15 TB Database in Flash Cache </li></ul></ul>
    12. 12. <Insert Picture Here> IMDB
    13. 13. Oracle In Memory Database Cache Offload Data processing to Middle Tier resources <ul><li>Data cached in application memory </li></ul><ul><ul><ul><li>Synchronized with Oracle Database </li></ul></ul></ul><ul><li>Fast, consistent response times </li></ul><ul><ul><li>High transaction throughput </li></ul></ul><ul><ul><li>Scale out with In-Memory cached Grid </li></ul></ul><ul><li>Standard Oracle Interfaces </li></ul><ul><ul><li>SQL, PL/SQL, OCI </li></ul></ul>Cached tables Business Applications Cached tables Business Applications
    14. 14. <Insert Picture Here> Warehousing
    15. 15. Oracle Database 11g Release 2 In-Memory Parallel Execution <ul><li>Data warehouse environments can have large amounts of memory that is not always used </li></ul><ul><li>An algorithm places fragments of an object (partitions) in memory on different nodes </li></ul><ul><li>Compression gets more data in memory </li></ul><ul><li>Parallel servers (aka PQ Slaves) are then executed on the corresponding nodes </li></ul><ul><li>Requires Automatic Degree of Parallelism </li></ul>Real Application Clusters
    16. 16. In-Memory Parallel Execution How it works SQL statement Determine the size of the table being looked at Fragments of Table are read into each node’s buffer cache Read into the buffer cache on any node Table is extremely small Always use direct read from disk Table is a good candidate for In-Memory Parallel Execution Table is extremely Large Only parallel server on the same RAC node will access each fragment
    17. 17. Automated Degree of Parallelism How it works SQL statement Statement is hard parsed And optimizer determines the execution plan Statement executes serially Statement executes in parallel Optimizer determines ideal DOP If estimated time greater than threshold Actual DOP = MIN(default DOP, ideal DOP) If estimated time less than threshold PARALLEL_MIN_TIME_THRESHOLD
    18. 18. Parallel Statement Queuing How it works SQL statements Statement is parsed and Oracle automatically determines DOP If enough parallel servers available execute immediately If not enough parallel servers available queue FIFO Queue 128 16 32 64 8 When the required number of parallel servers become available the first stmt on the queue is dequeued and executed 128 16 32 64
    19. 19. Query Processing: The problem with traditional storage What Were Yesterday’s Sales? SUM Oracle Database Server Grid Storage Array Retrieve Entire Sales Table Select sum(sales) where salesdate= ‘15-Sep-2009’ …
    20. 20. Query Processing: Using Sun Oracle Exadata Storage Server What Were Yesterday’s Sales? SUM Oracle Exadata Storage Grid Select sum(sales) where salesdate= ‘15-Sep-2009’ … Retrieve Sales for Sep 15 2009 Oracle Database Server Grid
    21. 21. <Insert Picture Here> Storage
    22. 22. Reduce storage costs by factor of 10x Data growth continues to outpace budget growth Source: Winter TopTen Survey, Winter Corporation, Waltham MA, 2008. 200 400 600 800 1000 1998 2000 2002 2004 2006 2008 2010 Terabytes of Data Rate of Database Growth Actual Projected
    23. 23. Automatic Storage Management Lowers the cost of storage management <ul><li>Virtualize and share storage resources </li></ul><ul><li>Advanced data striping for maximum I/O performance </li></ul><ul><li>Online addition and migration of storage </li></ul>HR SALES ERP
    24. 24. Oracle Database 11g Release 2 ASM Cluster File System <ul><li>General purpose clustered or local file system </li></ul><ul><li>Optimized disk layout, online rebalance, mirroring </li></ul><ul><li>Dynamic volume management, read-only snapshots </li></ul>HR SALES ERP Database Files Oracle Binaries Files
    25. 25. Oracle Database 11g Release 2 Other ASM Enhancements <ul><li>Improved Management </li></ul><ul><ul><li>ASM Install & Configuration Assistant (ASMCA) </li></ul></ul><ul><ul><li>Full Featured ASMCMD </li></ul></ul><ul><ul><li>ASM File Access Control </li></ul></ul><ul><ul><li>ASM Disk Group Rename </li></ul></ul><ul><ul><li>Datafile to Disk Mapping </li></ul></ul><ul><li>Tunable Performance </li></ul><ul><ul><li>Intelligent Data Placement </li></ul></ul>Infrequently Accessed Data Frequently Accessed Data © 2009 Oracle Corporation – Proprietary and Confidential
    26. 26. Manage Data Growth Partition for performance, management and cost 5% Active 95% Less Active ORDERS TABLE (7 years) 2003 2009 Low End Storage Tier 2-3x less per terabyte 2008 High End Storage Tier
    27. 27. Significantly Reduce Storage Usage Advanced OLTP Compression <ul><li>Compress large application tables </li></ul><ul><ul><li>Transaction processing, data warehousing </li></ul></ul><ul><li>Compress all data types </li></ul><ul><ul><li>Structured and unstructured data types </li></ul></ul><ul><li>Improve query performance </li></ul><ul><ul><li>Cascade storage savings throughout data center </li></ul></ul>Compression 4X Up To
    28. 28. Sun Oracle Exadata Storage Server Hybrid Columnar Compression <ul><li>Data stored by column and then compressed </li></ul><ul><li>Useful for data that is bulk loaded or moved </li></ul><ul><li>Query mode for data warehousing </li></ul><ul><ul><li>Typical 10X compression ratios </li></ul></ul><ul><ul><li>Scans improve accordingly </li></ul></ul><ul><li>Archival mode for old data </li></ul><ul><ul><li>Typical 15- 50X compression ratios </li></ul></ul>50X Up To
    29. 29. <Insert Picture Here> Availability
    30. 30. Oracle Maximum Availability Architecture Fully Utilizing Redundancy Automatic Storage Management Real Application Clusters Secure Backups to Cloud and Tape Active Data Guard Fast Recovery Area Data Guard
    31. 31. Traditional Testing Approach Production – 1,000s of Real Online Users PRODUCTION
    32. 32. Limited Testing Capabilities Few users trying to be 1,000s of users TEST PRODUCTION
    33. 33. Real Application Testing Workload for 1,000s of Online Users Captured Capture PRODUCTION Workload
    34. 34. Real Application Testing Workload for 1,000s of Online Users Replayed Replay PRODUCTION TEST Capture Workload
    35. 35. Online Application Upgrade Edition-based redefinition <ul><li>Code changes are installed in the privacy of a new edition </li></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><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><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>
    36. 36. Online Application Upgrade Edition-based redefinition <ul><li>ops$tkyte%ORA11GR2> create user demo identified by demo </li></ul><ul><li>2 / </li></ul><ul><li>User created. </li></ul><ul><li>ops$tkyte%ORA11GR2> grant create session, create procedure to demo </li></ul><ul><li>2 / </li></ul><ul><li>Grant succeeded. </li></ul><ul><li>ops$tkyte%ORA11GR2> create edition version2 as child of ora$base </li></ul><ul><li>2 / </li></ul><ul><li>Edition created. </li></ul>
    37. 37. Online Application Upgrade Edition-based redefinition <ul><li>ops$tkyte%ORA11GR2> connect demo/demo </li></ul><ul><li>Connected. </li></ul><ul><li>demo%ORA11GR2> </li></ul><ul><li>demo%ORA11GR2> create or replace procedure my_procedure </li></ul><ul><li>2 as </li></ul><ul><li>3 begin </li></ul><ul><li>4 dbms_output.put_line( 'Hello World, I am version 1.0' ); </li></ul><ul><li>5 end; </li></ul><ul><li>6 / </li></ul><ul><li>Procedure created. </li></ul><ul><li>demo%ORA11GR2> create or replace procedure my_procedure2 </li></ul><ul><li>2 as </li></ul><ul><li>3 begin </li></ul><ul><li>4 my_procedure; </li></ul><ul><li>5 end; </li></ul><ul><li>6 / </li></ul><ul><li>Procedure created. </li></ul>
    38. 38. Online Application Upgrade Edition-based redefinition <ul><li>demo%ORA11GR2> exec my_procedure2 </li></ul><ul><li>Hello World, I am version 1.0 </li></ul><ul><li>PL/SQL procedure successfully completed. </li></ul>
    39. 39. Online Application Upgrade Edition-based redefinition <ul><li>demo%ORA11GR2> connect / </li></ul><ul><li>Connected. </li></ul><ul><li>ops$tkyte%ORA11GR2> alter user demo enable editions </li></ul><ul><li>2 / </li></ul><ul><li>User altered. </li></ul><ul><li>ops$tkyte%ORA11GR2> grant use on edition version2 to demo </li></ul><ul><li>2 / </li></ul><ul><li>Grant succeeded. </li></ul>
    40. 40. Online Application Upgrade Edition-based redefinition <ul><li>ops$tkyte%ORA11GR2> connect demo/demo </li></ul><ul><li>Connected. </li></ul><ul><li>demo%ORA11GR2> alter session set edition = version2 </li></ul><ul><li>2 / </li></ul><ul><li>Session altered. </li></ul><ul><li>demo%ORA11GR2> set linesize 150 </li></ul><ul><li>demo%ORA11GR2> select object_name, object_type, status, edition_name from user_objects </li></ul><ul><li>2 / </li></ul><ul><li>OBJECT_NAME OBJECT_TYPE STATUS EDITION_NAME </li></ul><ul><li>---------------- -------------- ------- --------------- </li></ul><ul><li>MY_PROCEDURE PROCEDURE VALID ORA$BASE </li></ul><ul><li>MY_PROCEDURE2 PROCEDURE VALID ORA$BASE </li></ul>
    41. 41. Online Application Upgrade Edition-based redefinition <ul><li>demo%ORA11GR2> create or replace procedure my_procedure </li></ul><ul><li>2 as </li></ul><ul><li>3 begin </li></ul><ul><li>4 dbms_output.put_line( 'Hello World, I am version 2.0' ); </li></ul><ul><li>5 end; </li></ul><ul><li>6 / </li></ul><ul><li>Procedure created. </li></ul><ul><li>demo%ORA11GR2> select object_name, object_type, status, edition_name from user_objects </li></ul><ul><li>2 / </li></ul><ul><li>OBJECT_NAME OBJECT_TYPE STATUS EDITION_NAME </li></ul><ul><li>--------------- ------------------- ------- -------------- </li></ul><ul><li>MY_PROCEDURE2 PROCEDURE VALID ORA$BASE </li></ul><ul><li>MY_PROCEDURE PROCEDURE VALID VERSION2 </li></ul>
    42. 42. Online Application Upgrade Edition-based redefinition <ul><li>demo%ORA11GR2> SELECT SYS_CONTEXT('userenv', 'current_edition_name') FROM DUAL; </li></ul><ul><li>SYS_CONTEXT('USERENV','CURRENT_EDITION_NAME') </li></ul><ul><li>-------------------------------------------------- </li></ul><ul><li>VERSION2 </li></ul><ul><li>demo%ORA11GR2> exec my_procedure2 </li></ul><ul><li>Hello World, I am version 2.0 </li></ul><ul><li>PL/SQL procedure successfully completed. </li></ul>
    43. 43. Online Application Upgrade Edition-based redefinition <ul><li>demo%ORA11GR2> connect demo/demo </li></ul><ul><li>Connected. </li></ul><ul><li>demo%ORA11GR2> SELECT SYS_CONTEXT('userenv', 'current_edition_name') FROM DUAL; </li></ul><ul><li>SYS_CONTEXT('USERENV','CURRENT_EDITION_NAME') </li></ul><ul><li>----------------------------------------------ORA$BASE </li></ul><ul><li>demo%ORA11GR2> exec my_procedure2 </li></ul><ul><li>Hello World, I am version 1.0 </li></ul><ul><li>PL/SQL procedure successfully completed. </li></ul>
    44. 44. Online Application Upgrade Edition-based redefinition <ul><li>demo%ORA11GR2> alter session set edition = version2; </li></ul><ul><li>Session altered. </li></ul><ul><li>demo%ORA11GR2> SELECT SYS_CONTEXT('userenv', 'current_edition_name') FROM DUAL; </li></ul><ul><li>SYS_CONTEXT('USERENV','CURRENT_EDITION_NAME') </li></ul><ul><li>----------------------------------------------- </li></ul><ul><li>VERSION2 </li></ul><ul><li>demo%ORA11GR2> exec my_procedure2 </li></ul><ul><li>Hello World, I am version 2.0 </li></ul><ul><li>PL/SQL procedure successfully completed. </li></ul>
    45. 45. <Insert Picture Here> How to get there
    46. 46. What are my upgrade paths? Predictable performance post-upgrade  10.2.0.2  11.1.0.6 10.1.0.5 9.2.0.8 11.2 SQL Plan Management Automated SQL tuning
    47. 47. Rolling Database Upgrades 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
    48. 48. Make Change Safe - Realistic Testing with Database Replay <ul><li>Recreate actual production database workload in test environment </li></ul><ul><li>No test development required </li></ul><ul><li>Replay workload in test with production timing </li></ul><ul><li>Analyze & fix issues before production </li></ul>… … Capture DB Workload Middle Tier Storage Oracle DB Replay DB Workload Production 9i, 10g, 11g Test 11g Release 1 and above Client Client … Client
    49. 49. For More Information http://search.oracle.com or www.oracle.com/database oracle database 11g
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×