Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
ASE122: Database Expert Option for ASE Claudia Fernandez Technical Services Manager [email_address]   Tel: 415-901-7880 Au...
Agenda <ul><li>The Performance Challenge </li></ul><ul><li>Introducing The New Database Expert Option to ASE </li></ul><ul...
The Performance Challenge <ul><li>Databases are dynamic </li></ul><ul><li>Optimal application performance is elusive </li>...
Effects of Performance Issues <ul><li>Low Return on Investment </li></ul><ul><ul><li>Hardware </li></ul></ul><ul><ul><li>S...
Introducing the New Option for ASE <ul><li>Achieve performance certainty </li></ul><ul><li>Reduce TCO </li></ul><ul><li>In...
Database Expert: Performance Certainty Solution  <ul><li>Assures reliable database performance </li></ul><ul><li>Maximizes...
What affects performance? SQL Statements Database   Changes Network Hardware Indexes 90% 60%
Domino effect of performance Application Performance Query Plan SQL Performance
How does ASE generate query plans? Plan 1 Plan 2 Plan 3 Plan 1 cost=1000 Plan 2 cost=3000 Plan 3 cost=500 Internally Rewri...
Understanding query plans Elapsed Time: 0.080 s Elapsed Time: 0.110 s Set showplan on
How to influence query plans? <ul><li>SQL Optimization  </li></ul><ul><ul><li>Complex nature of SQL </li></ul></ul><ul><ul...
Will the query plans change?  When... <ul><li>Migrating to a new ASE version </li></ul><ul><ul><li>ASE 12.5.0.3 to ASE 12....
The Database Expert Option for ASE <ul><li>Provides an answer to all these questions: </li></ul><ul><li>What is the perfor...
Database Expert Option for ASE <ul><li>New product option for Adaptive Server Enterprise </li></ul><ul><li>Scheduled relea...
Database Expert Option for ASE Integrated productivity tools Performance Management Performance Optimization Performance D...
Database Expert Option to ASE Visual SQL Inspector SQL Monitor SQL Scanner Integrated productivity tools Performance Manag...
Performance Diagnostics <ul><li>Gathers SQL performance statistics from ASE (12.5.0.3 & up) monitoring tables </li></ul><u...
Performance Diagnostics <ul><li>ASE monitoring tables used: </li></ul><ul><ul><li>monSysStatement </li></ul></ul><ul><ul><...
Performance Diagnostics Visual SQL Inspector
Performance Diagnostics <ul><li>Provides an alternative approach to capture running SQL statements </li></ul><ul><li>Suppo...
Performance Diagnostics SQL Monitor
Performance Diagnostics <ul><li>Proactively identifies problematic SQL without running applications </li></ul><ul><li>Extr...
Performance Diagnostics SQL Scanner
Database Expert Option to ASE Integrated productivity tools Performance Management Performance Diagnostics Performance Ass...
Performance Optimization <ul><li>Many ways to write a SQL statement </li></ul><ul><li>Small differences in coding SQL can ...
Performance Optimization SQL Optimizer
Performance Optimization <ul><li>Abstract Plans: </li></ul><ul><ul><li>Available in ASE version 12.0 and up </li></ul></ul...
Performance Optimization Abstract Plan Manager
Performance Optimization <ul><li>Proposes new index scenarios to improve the performance of a given SQL statement </li></u...
Performance Optimization Index Advisor
Performance Optimization Index Advisor
Performance Optimization <ul><li>What is the performance impact on other SQL statements if the recommended indexes are cre...
Database Expert Option to ASE Integrated productivity tools Performance Diagnostics Performance Assurance Index Impact Ana...
Performance Management <ul><li>Evaluates the effect of the creation of the indexes in the database system </li></ul><ul><l...
Performance Management Index Impact Analyzer BEFORE AFTER
Performance Management <ul><li>Analyzes the effect on SQL performance when changing ASE configuration parameters </li></ul...
Performance Management Configuration Analyzer BEFORE sp_configure &quot;enable sort-merge join and JTC&quot;, 0 AFTER sp_c...
Performance Management <ul><li>Compares SQL performance changes between different database environment </li></ul><ul><li>A...
Performance Management SQL Repository Master Plan Snapshot Scenario Development Database Production Database Diagnostics P...
Performance Management SQL Repository Master Plan Snapshot Scenario ASE 12.0 ASE 12.5 Migration Analyzer Diagnostics If pe...
Performance Management <ul><li>Identifies unused indexes by analyzing query plans from SQL statements in applications </li...
Database Expert Option to ASE Performance Diagnostics Performance Assurance Object Extractor SQL Worksheet Database Explor...
Database Expert Option to ASE
Questions? <ul><li>Thanks. </li></ul><ul><li>Claudia Fernandez </li></ul><ul><li>[email_address] </li></ul><ul><li>www.lec...
Upcoming SlideShare
Loading in …5
×

ASE122: Database Expert Option for ASE

782 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

ASE122: Database Expert Option for ASE

  1. 1. ASE122: Database Expert Option for ASE Claudia Fernandez Technical Services Manager [email_address] Tel: 415-901-7880 August 5, 2003 Make DBAs’ Lives Easier — Assuring Performance with the new option for ASE
  2. 2. Agenda <ul><li>The Performance Challenge </li></ul><ul><li>Introducing The New Database Expert Option to ASE </li></ul><ul><li>Performance Assurance Solution </li></ul><ul><li>Q & A </li></ul>
  3. 3. The Performance Challenge <ul><li>Databases are dynamic </li></ul><ul><li>Optimal application performance is elusive </li></ul><ul><li>Performance certainty is not guaranteed </li></ul>
  4. 4. Effects of Performance Issues <ul><li>Low Return on Investment </li></ul><ul><ul><li>Hardware </li></ul></ul><ul><ul><li>Software </li></ul></ul><ul><li>High TCO (Total Cost of Ownership) </li></ul><ul><li>Reduced Productivity </li></ul><ul><ul><li>Internal Employees </li></ul></ul><ul><ul><li>IT Staff </li></ul></ul><ul><li>Low End User Satisfaction </li></ul>
  5. 5. Introducing the New Option for ASE <ul><li>Achieve performance certainty </li></ul><ul><li>Reduce TCO </li></ul><ul><li>Increase employee/end user productivity </li></ul><ul><li>Maximize ROI of current IT resources </li></ul>Database Expert Option for Adaptive Server Enterprise
  6. 6. Database Expert: Performance Certainty Solution <ul><li>Assures reliable database performance </li></ul><ul><li>Maximizes performance through SQL optimization, Abstract Plans and Indexing Strategy </li></ul><ul><li>Ensures successful ASE version upgrade </li></ul><ul><li>Stabilizes ASE and application performance </li></ul><ul><li>Predicts where performance problems will occur before deploying applications in production </li></ul><ul><li>Improves group productivity </li></ul><ul><li>Provides a methodology to achieve performance gains </li></ul>
  7. 7. What affects performance? SQL Statements Database Changes Network Hardware Indexes 90% 60%
  8. 8. Domino effect of performance Application Performance Query Plan SQL Performance
  9. 9. How does ASE generate query plans? Plan 1 Plan 2 Plan 3 Plan 1 cost=1000 Plan 2 cost=3000 Plan 3 cost=500 Internally Rewrites & Generates Multiple Query plans Cost Estimation SQL
  10. 10. Understanding query plans Elapsed Time: 0.080 s Elapsed Time: 0.110 s Set showplan on
  11. 11. How to influence query plans? <ul><li>SQL Optimization </li></ul><ul><ul><li>Complex nature of SQL </li></ul></ul><ul><ul><li>SQL transformations </li></ul></ul><ul><ul><li>Use forces </li></ul></ul><ul><li>Abstract Plans </li></ul><ul><ul><li>Save and reuse query plans </li></ul></ul><ul><ul><li>Force query plan generation </li></ul></ul><ul><li>Indexes </li></ul><ul><ul><li>Provide more options to the ASE optimizer </li></ul></ul><ul><li>Sp_configure changes (enable sort-merge and JTC) </li></ul><ul><li>Others: statistics, parallel processing, etc. </li></ul>
  12. 12. Will the query plans change? When... <ul><li>Migrating to a new ASE version </li></ul><ul><ul><li>ASE 12.5.0.3 to ASE 12.5.1 </li></ul></ul><ul><ul><li>ASE 12.0 to ASE 12.5 </li></ul></ul><ul><ul><li>ASE 11.9.2 to ASE 12.0, etc </li></ul></ul><ul><li>Deploying applications from development to production </li></ul><ul><li>Changing sp_configure parameters </li></ul><ul><li>Adding indexes </li></ul><ul><li>If a query plan changes, then the performance may change... </li></ul><ul><li>Will the performance be improved? Will it be degraded? </li></ul><ul><li>What SQL’s query plans will experience performance changes? </li></ul>
  13. 13. The Database Expert Option for ASE <ul><li>Provides an answer to all these questions: </li></ul><ul><li>What is the performance impact of database environment changes? </li></ul><ul><li>Will the query plans change? </li></ul><ul><li>Will the performance be improved? Will it be degraded? </li></ul><ul><li>What SQL’s query plans will experience performance changes? </li></ul><ul><li>If the performance will degrade, how can it be optimized and maintained? </li></ul>Total Performance Management Solution
  14. 14. Database Expert Option for ASE <ul><li>New product option for Adaptive Server Enterprise </li></ul><ul><li>Scheduled release date Q3 Y2003 </li></ul><ul><li>Supports ASE 11.9.2 and up (including 12.5.1) </li></ul><ul><li>Windows based product </li></ul><ul><li>Non intrusive, no server-side installation </li></ul><ul><li>Designed for production and quality assurance environments </li></ul><ul><li>LECCOTECH provides SQL Expert (development environments) and Database Expert (QA and production environments) as OEM products to Sybase </li></ul>
  15. 15. Database Expert Option for ASE Integrated productivity tools Performance Management Performance Optimization Performance Diagnostics Performance Assurance
  16. 16. Database Expert Option to ASE Visual SQL Inspector SQL Monitor SQL Scanner Integrated productivity tools Performance Management Performance Optimization Performance Diagnostics Performance Assurance Performance Diagnostics
  17. 17. Performance Diagnostics <ul><li>Gathers SQL performance statistics from ASE (12.5.0.3 & up) monitoring tables </li></ul><ul><li>Allows users to schedule monitoring tasks to capture performance statistics </li></ul><ul><li>Consolidates captured statistics in different data views </li></ul><ul><li>Displays charts to visualize overall resource consumption of a database over a period of time </li></ul><ul><li>Advanced filtering controls speed up the process of locating problematic SQL </li></ul>Visual SQL Inspector
  18. 18. Performance Diagnostics <ul><li>ASE monitoring tables used: </li></ul><ul><ul><li>monSysStatement </li></ul></ul><ul><ul><li>monSysSQLText </li></ul></ul><ul><ul><li>monSysPlanText </li></ul></ul><ul><li>SQL statistics Captured: </li></ul>Visual SQL Inspector
  19. 19. Performance Diagnostics Visual SQL Inspector
  20. 20. Performance Diagnostics <ul><li>Provides an alternative approach to capture running SQL statements </li></ul><ul><li>Supports ASE from 11.9.2 </li></ul><ul><li>Captures SQL statements through the Sybase Monitor Server </li></ul><ul><li>Requires the Sybase Monitor Server to be properly configured and running </li></ul>SQL Monitor
  21. 21. Performance Diagnostics SQL Monitor
  22. 22. Performance Diagnostics <ul><li>Proactively identifies problematic SQL without running applications </li></ul><ul><li>Extracts SQL from ASE database objects (sp’s, views, etc), files, source code (PowerBuilder, etc) </li></ul><ul><li>Analyzes query plans for multiple SQL statements and categorizes them according to suspected levels of performance problems </li></ul>SQL Scanner
  23. 23. Performance Diagnostics SQL Scanner
  24. 24. Database Expert Option to ASE Integrated productivity tools Performance Management Performance Diagnostics Performance Assurance SQL Optimizer Abstract Plan Manager Index Advisor Performance Optimization
  25. 25. Performance Optimization <ul><li>Many ways to write a SQL statement </li></ul><ul><li>Small differences in coding SQL can have great performance implications </li></ul><ul><li>AI-based SQL transformation generates every possible alternative and unique query plan </li></ul><ul><li>Benchmarks SQL to identify the most efficient alternative for a db environment </li></ul>SQL Optimizer
  26. 26. Performance Optimization SQL Optimizer
  27. 27. Performance Optimization <ul><li>Abstract Plans: </li></ul><ul><ul><li>Available in ASE version 12.0 and up </li></ul></ul><ul><ul><li>Query plans can be saved and edited as Abstract Plans </li></ul></ul><ul><ul><li>Force ASE to generate a query plan based on the saved Abstract Plan </li></ul></ul><ul><li>Allows tuning SQL without source code changes </li></ul><ul><li>Solution for tuning in SQL in third party applications such as PeopleSoft </li></ul>Abstract Plan Manager
  28. 28. Performance Optimization Abstract Plan Manager
  29. 29. Performance Optimization <ul><li>Proposes new index scenarios to improve the performance of a given SQL statement </li></ul><ul><li>Provides performance estimations for every index scenario to assist the user in selecting which index alternative to test, evaluate or implement </li></ul><ul><li>Benchmarks index alternatives to identify which alternative will yield the greatest performance gain for the SQL statement </li></ul><ul><li>Allows users to evaluate their own user-defined index scenarios </li></ul>Index Advisor
  30. 30. Performance Optimization Index Advisor
  31. 31. Performance Optimization Index Advisor
  32. 32. Performance Optimization <ul><li>What is the performance impact on other SQL statements if the recommended indexes are created? </li></ul><ul><li>Will the recommended indexes improve or degraded the overall performance? </li></ul>Index Advisor
  33. 33. Database Expert Option to ASE Integrated productivity tools Performance Diagnostics Performance Assurance Index Impact Analyzer Configuration Analyzer Migration Analyzer Unused Index Analyzer Performance Optimization Performance Management
  34. 34. Performance Management <ul><li>Evaluates the effect of the creation of the indexes in the database system </li></ul><ul><li>Shows which SQL statements are impacted by the new indexes </li></ul><ul><li>Identifies the index alternative that yields the highest performance gain with the least impact on the database system </li></ul>Index Impact Analyzer
  35. 35. Performance Management Index Impact Analyzer BEFORE AFTER
  36. 36. Performance Management <ul><li>Analyzes the effect on SQL performance when changing ASE configuration parameters </li></ul><ul><li>Provides a GUI for the user to evaluate different sp_configure parameter values </li></ul><ul><li>SQL related configuration parameters </li></ul><ul><ul><li>&quot;cis cursor rows&quot; </li></ul></ul><ul><ul><li>&quot;enable sort-merge joins and JTC&quot; </li></ul></ul><ul><ul><li>&quot;global async prefetch limit&quot; </li></ul></ul><ul><ul><li>&quot;max async i/os per engine&quot; </li></ul></ul><ul><ul><li>&quot;max async i/os per server&quot; </li></ul></ul><ul><ul><li>&quot;max parallel degree&quot; </li></ul></ul><ul><ul><li>&quot;max scan parallel degree&quot; </li></ul></ul><ul><ul><li>&quot;memory per worker process&quot; </li></ul></ul><ul><ul><li>&quot;number of large i/o buffers&quot; </li></ul></ul><ul><ul><li>&quot;number of sort buffers&quot; </li></ul></ul><ul><ul><li>&quot;number of worker processes&quot; </li></ul></ul>Configuration Analyzer
  37. 37. Performance Management Configuration Analyzer BEFORE sp_configure &quot;enable sort-merge join and JTC&quot;, 0 AFTER sp_configure &quot;enable sort-merge join and JTC&quot;, 1
  38. 38. Performance Management <ul><li>Compares SQL performance changes between different database environment </li></ul><ul><li>Allows users to preempt performance degradation when performing database migrations, database upgrades and application rollouts </li></ul><ul><li>Integrates Abstract Plan Management to stabilize SQL performance </li></ul>Migration Analyzer
  39. 39. Performance Management SQL Repository Master Plan Snapshot Scenario Development Database Production Database Diagnostics Plan cost analysis Query plan changes Identifies SQL with plan changes Predicts performance change before applications are migrated to the destination database (e.g. new ASE version, production, etc) Migration Analyzer
  40. 40. Performance Management SQL Repository Master Plan Snapshot Scenario ASE 12.0 ASE 12.5 Migration Analyzer Diagnostics If performance degradation is identified, performance can be managed through Abstract Plans Abstract Plans
  41. 41. Performance Management <ul><li>Identifies unused indexes by analyzing query plans from SQL statements in applications </li></ul><ul><li>Reports unused indexes that can be deleted to free up space, improve speed of DML statements and decrease maintenance </li></ul><ul><li>Reports: </li></ul><ul><ul><li>Tables that are referenced in the SQL statements </li></ul></ul><ul><ul><li>Indexes in each table that are used in the query plans, and the number of referenced SQL for each index </li></ul></ul><ul><ul><li>Indexes in each table that are not used in the query plans </li></ul></ul>Unused Index Analyzer
  42. 42. Database Expert Option to ASE Performance Diagnostics Performance Assurance Object Extractor SQL Worksheet Database Explorer Code Finder SQL Formatter Performance Optimization Performance Management Integrated productivity tools
  43. 43. Database Expert Option to ASE
  44. 44. Questions? <ul><li>Thanks. </li></ul><ul><li>Claudia Fernandez </li></ul><ul><li>[email_address] </li></ul><ul><li>www.leccotech.com </li></ul>

×