Remote DBA Experts 11g Features


Published on

This presenation shares the lastest Oracle 11g database features from the perspective of a couple of the Remote DBA Experts perpective.

Published in: Technology, Business
  • Be the first to comment

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

No notes for slide

Remote DBA Experts 11g Features

  1. 1. Oracle 11G New Features Prepared by: Brian Hays and Jeff Kondas
  2. 2. 11G New Features <ul><li>Flashback data archive </li></ul><ul><li>Database replay </li></ul><ul><li>SQL performance advisor </li></ul><ul><li>SQL plan management </li></ul><ul><li>Proactive health checking </li></ul><ul><li>Automatic diagnostic repository </li></ul><ul><li>Online patching </li></ul><ul><li>Patching advisor </li></ul><ul><li>Memory management </li></ul><ul><li>SQL Cache </li></ul><ul><li>SQL Access advisor (Partition) </li></ul><ul><li>Virtual columns </li></ul><ul><li>Invisible indexes </li></ul><ul><li>Transparent tablespace encryption </li></ul><ul><li>Create and rebuild indexes online </li></ul>
  3. 3. Flashback Data Archive <ul><li>Flashback feature introduced in 9i </li></ul><ul><ul><li>Allows viewing of data at a point in time in the past </li></ul></ul><ul><ul><li>System managed undo required </li></ul></ul><ul><ul><li>Undo data could be overwritten preventing flashback operations from occurring </li></ul></ul><ul><li>10G introduced flashback database </li></ul><ul><ul><li>Flash entire database back in time using flashback recovery logs </li></ul></ul>
  4. 4. Flashback Data Archive <ul><li>11G introduces Flashback Data Archive </li></ul><ul><ul><li>Flashback operations now available over an extended period of time. </li></ul></ul><ul><ul><li>Able to specify retention during flashback tablespace creation. </li></ul></ul><ul><ul><li>Use Flashback Data Archive to Generate Reports, for Trending, to Recover Data, etc. </li></ul></ul><ul><ul><ul><li>SELECT product_number, product_name, count FROM inventory AS OF TIMESTAMP TO_TIMESTAMP ('2007-01-01 00:00:00', 'YYYY-MM-DD HH24:MI:SS'); </li></ul></ul></ul><ul><ul><li>Use log miner GUI to search for specific changes. </li></ul></ul>
  5. 5. Database Replay <ul><li>Capture all database activity “like database DVR”. </li></ul><ul><li>Enables user to perform real-world testing </li></ul><ul><ul><li>Capture actual database workload on production system and replay it for testing. </li></ul></ul><ul><li>Test parameter, new release changes </li></ul><ul><ul><li>Measure performance impact using diagnostic tools. </li></ul></ul>
  6. 6. Database Replay Analyze this!
  7. 7. SQL Performance Analyzer <ul><li>Compare performance of SQL statements before and after a system change. </li></ul><ul><li>Common Usage Scenarios: </li></ul><ul><ul><li>Upgrade </li></ul></ul><ul><ul><li>Parameter Changes </li></ul></ul><ul><ul><li>Schema Changes (Indexes) </li></ul></ul><ul><ul><li>Optimizer Statistics </li></ul></ul><ul><li>Produce report identifying changes in execution plans or performance of SQL statements. </li></ul><ul><ul><li>Measures overall response time of every individual SQL statement in the workload. </li></ul></ul><ul><ul><li>Reveals regressed SQL statements (allowing time to remedy the problem.) </li></ul></ul><ul><ul><li>Offers significant advantage for database tuning. </li></ul></ul>I KNEW I shouldn’t have reduced the SGA...
  8. 8. SQL Performance Analyzer Observe how system change will affect each SQL statement in tuning set Observe overall affect from system change
  9. 9. SQL Plan Management <ul><li>Preventative tool to track SQL statements access paths. </li></ul><ul><ul><li>Stored in SQL Plan Baseline. </li></ul></ul><ul><ul><li>If access path changes, new plan is stored. </li></ul></ul><ul><ul><li>Database evaluates performance of new plans and integrates plans with better performance into SQL Plan Baselines to be accepted or removed. </li></ul></ul><ul><ul><li>Prevents bad access paths from being implemented. </li></ul></ul><ul><li>Provide administrators time to evaluate the access path change. </li></ul><ul><ul><li>Interface available to view history of plans. </li></ul></ul>
  10. 10. SQL Plan Management Baselines Review captured access paths Analyze each path
  11. 11. Proactive Health Checking <ul><li>Redo integrity </li></ul><ul><li>Undo integrity </li></ul><ul><li>Transaction integrity </li></ul><ul><li>Dictionary integrity </li></ul><ul><li>Validate database </li></ul>Recovery Advisor Automatic Monitors
  12. 12. Proactive Health Checking <ul><li>“ Checkers” results recorded in repository called Automatic Diagnostic Repository. </li></ul><ul><ul><li>Redo Integrity Check - scans contents of redo and archive logs for accessibility and corruption </li></ul></ul><ul><ul><li>Undo Segment Integrity Check - finds logical undo corruptions </li></ul></ul><ul><ul><li>Transaction Integrity Check - similar to Undo Segment Check except that it checks only one specific transaction </li></ul></ul><ul><ul><li>Dictionary Integrity Check - examines the integrity of core dictionary objects </li></ul></ul><ul><ul><li>DB Structure Integrity Check - verifies integrity of database files and reports failures if files are inaccessible, corrupt, inconsistent </li></ul></ul><ul><ul><li>Data Block Integrity Check - detects disk image block corruptions </li></ul></ul>
  13. 13. Identify and Resolve Critical Database Issues <ul><li>When “checkers” find a problem, information is reported and then fed to recovery advisors. </li></ul><ul><li>New Incident Packaging Service creates a bundle of all issues and supporting files for easy reporting to Oracle Support. </li></ul><ul><li>Reduce time to problem resolution. </li></ul>
  14. 14. Proactive Health Checking Data Recover Advisor – Auto Recovery Script Generation
  15. 15. Automatic Diagnostic Repository <ul><li>Combine incidents into &quot; envelope &quot; </li></ul><ul><ul><li>All relevant trace files associated with error are identified and added to the package and sent to Oracle Support. </li></ul></ul><ul><ul><li>Reduce time to problem resolution. </li></ul></ul>
  16. 16. Online Patching <ul><li>In Oracle Database 11 g , most patches, specifically diagnostic patches, can now be applied online without taking any downtime. </li></ul><ul><li>Reduce planned as well as unplanned downtime. </li></ul>
  17. 17. Patch Advisor <ul><li>Setup Metalink credentials in Enterprise Manager and all patches will be automatically downloaded during a patching session. </li></ul><ul><li>Gathers information on available patches based on the features you are using and downloads recommended patches. </li></ul>
  18. 18. Patch Advisor Determine if there are patches available only for features you are using. See available CPU patches.
  19. 19. Memory Management <ul><li>Oracle 9i introduces automatic memory management </li></ul><ul><ul><li>MAX_SGA_SIZE , swaps memory between shared pool and data buffer cache </li></ul></ul><ul><li>Oracle 10g simplifies memory management </li></ul><ul><ul><li>SGA_TARGET , allocates specified value for the overall SGA memory area. </li></ul></ul><ul><ul><li>Memory area PGA is entirely outside the SGA, so is not touched by the Automatic SGA Management feature </li></ul></ul><ul><li>Oracle 11g SGA & PGA one setting </li></ul><ul><ul><li>MEMORY_TARGET , boundary between PGA and SGA are fluid and the memory allowed to flow freely between them </li></ul></ul><ul><ul><li>Avoids wasted memory due to incorrect memory pool settings. </li></ul></ul>
  20. 20. Memory Management MEMORY_TARGET One setting Memory Advisor
  21. 21. SQL Access Advisor <ul><li>SQL Access Advisor has been enhanced </li></ul><ul><ul><li>Helps achieve performance goals by recommending proper set of materialized views, partitions, indexes ,etc. </li></ul></ul><ul><ul><li>Analysis includes considering cost of creation and maintaining access structures. </li></ul></ul><ul><ul><li>Using these structures is essential when optimizing SQL and can result in significant performance improvements. </li></ul></ul><ul><li>Recommendations on improving schema design </li></ul><ul><ul><li>Partitioning , indexing, and creating materialized views based on actual frequency and type of usage. </li></ul></ul>
  22. 22. SQL Access Advisor Considers cost of creation and maintaining access structures Advise on complex structures
  23. 23. SQL Result Cache <ul><li>Cache in SGA, like buffer cache or PGA </li></ul><ul><li>Accessing memory is far quicker than accessing hard drives </li></ul><ul><ul><li>When queries and functions are executed repeatedly, results are retrieved directly from cache memory </li></ul></ul><ul><ul><li>Results in faster response time </li></ul></ul><ul><li>Execute with hint result_cache </li></ul><ul><ul><li>Stores results of SQL queries and PL/SQL functions in area called Result Cache Memory </li></ul></ul><ul><ul><li>Allows lookup, rather than recalculation. </li></ul></ul><ul><ul><li>A change in the underlying table invalidates the cache, resulting in dynamic refresh next time it is queried. </li></ul></ul>
  24. 24. Virtual Columns <ul><li>Enable application developers to define computations and transformations as column definition of tables without space consumption </li></ul><ul><li>Offers the flexibility to add columns that convey business sense without adding any complexity to code or performance impact. </li></ul><ul><ul><li>SQL> create table sales </li></ul></ul><ul><ul><li>2 ( </li></ul></ul><ul><ul><li>3 sales_id number, </li></ul></ul><ul><ul><li>4 cust_id number, </li></ul></ul><ul><ul><li>5 sales_amt number, </li></ul></ul><ul><ul><li>6 sale_category varchar2(6) </li></ul></ul><ul><ul><li>7 generated always as </li></ul></ul><ul><ul><li>8 ( </li></ul></ul><ul><ul><li>9 case </li></ul></ul><ul><ul><li>10 when sales_amt <= 10000 then 'LOW' </li></ul></ul><ul><ul><li>11 when sales_amt > 10000 and sales_amt <= 100000 then 'MEDIUM' </li></ul></ul><ul><ul><li>12 when sales_amt > 100000 and sales_amt <= 1000000 then 'HIGH' </li></ul></ul><ul><ul><li>13 else 'ULTRA' </li></ul></ul><ul><ul><li>14 end </li></ul></ul><ul><ul><li>15 ) virtual </li></ul></ul>
  25. 25. Invisible Indexes <ul><li>Is this index really beneficial? </li></ul><ul><ul><li>Oracle 11g offers option to make indexes invisible to optimizer. </li></ul></ul><ul><ul><li>alter index employee invisible; </li></ul></ul><ul><li>Analyze impact index is having on system without affecting performance. </li></ul><ul><ul><li>Great for testing. </li></ul></ul>
  26. 26. Transparent Tablespace Encryption <ul><li>Transparent Data Encryption (10g R2) </li></ul><ul><ul><li>Performance is an issue with this feature. Index range scan cannot be applied to encrypted columns. </li></ul></ul><ul><li>Transparent Tablespace Encryption (11g) </li></ul><ul><ul><li>All data in the tablespace is encrypted. </li></ul></ul><ul><ul><li>Index scanning occurs in memory where the data is unencrypted, causing no performance impact. </li></ul></ul>
  27. 27. Create and Rebuild Index Online <ul><li>The online clause rebuilds the index without affecting the DML. </li></ul><ul><ul><li>In 10g the operation required an exclusive lock at the end of the process and DMLs had to wait. Caused concurrency waits. </li></ul></ul><ul><li>In Oracle Database 11 g , the online rebuild is truly online, does not hold exclusive lock and DMLs are not affected. </li></ul><ul><ul><li>Maintain indexes without affecting system performance. </li></ul></ul>
  28. 28. References <ul><li>The Top New Features for DBAs and Developers ; Arup Nanda ; Oracle Press </li></ul><ul><li> , </li></ul><ul><li>All companies and product names are trademarks or registered trademarks of the respective owners. </li></ul><ul><li>All Oracle11g Documentation </li></ul>
  29. 29. About Remote DBA Experts? Remote DBA Experts is a true pioneer of remote administration services. The company was founded in 1994 as a Division of Pittsburgh-based Contemporary Technologies, Inc. (Remote DBA Experts). During the 15 plus years of its history, the company has served hundreds of customers and developed a strong reputation as a great place to work.