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

647

Published on

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

  • Be the first to like this

No Downloads
Views
Total Views
647
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • ASE122 Title: Make DBAs’ Lives Easier — Assuring Performance with the new option for Adaptive Server Enterprise Achieving optimal performance is an elusive task; once achieved it is a constant struggle to maintain optimal performance. The dynamic nature of RDBMS makes it a never-ending cycle. This presentation addresses how the new DB Expert option for ASE will offer optimization and assure performance. Best practices for preventing performance degradation will be examined. DB Expert for ASE is a comprehensive solution that allows DBAs to: monitor MDA performance stats; identify performance changes due to database environment changes (new indexes, stats updates, ASE upgrades, config changes); identify unused indexes; recommend indexes; impact analysis; optimize SQL and tune using Abstract Plans.
  • Achieving optimal performance is an elusive task; once achieved it is a constant struggle to maintain optimal performance. The dynamic nature of RDBMS makes it a never-ending cycle. Sybase Database Expert makes it possible to achieve and maintain optimal performance while preempting performance fluctuations due to database environment changes such as migrations, database upgrades, the addition of indexes, ASE configuration changes and others.
  • Key Features: Preempt performance changes by tracking query plans within different database environments Analyze the impact of database environment changes and predict overall performance improvement or degradation Analyze the effect on performance when changing ASE configuration parameters Preempt performance degradation before deploying applications to production or upgrading ASE Capture SQL statements and performance statistics from ASE monitoring tables or the Sybase Monitor Server Diagnose SQL performance problems with visual analysis of SQL activity statistics Locate SQL performance bottlenecks for database objects and application source codes Identify new indexes to improve SQL performance Evaluate the effect of the creation of indexes in the database system and estimate the space required to create those indexes
  • The Database Expert Option to ASE enables IT professionals to analyze, predict, preempt, optimize and manage performance changes to ensure that mission-critical business applications run optimally. Sybase Database Expert maximizes application performance by focusing on those database factors that contribute up to 90% of performance problems: SQL statements, indexes and database changes. Sybase Database Expert allows for the management and prediction of performance changes; therefore decisions to alter the database environment can be made with the highest level of confidence Improve application performance through SQL optimization and Abstract Plans usage Identify unused indexes in the database to free up space and decrease maintenance
  • Visual SQL Inspector: Gathers SQL performance statistics from ASE monitoring tables. It allows users to scheduled monitoring tasks to capture performance statistics. Capture statistics are consolidated in different data views for powerful visual analysis and performance bottleneck diagnostics. SQL Monitor: Monitors and captures SQL statements from the Sybase Monitor Server. SQL Scanner: Scans database objects, abstract plan groups, files and application source code for a non-intrusive analysis of potential SQL performance bottlenecks.
  • Syntactical SQL Optimizer: Transforms a SQL statement using the AI-based Feedback-Searching Engine to generate every possible semantically equivalent SQL alternative and unique query plan. Optimizes a SQL statement for Abstract Plans, thus proving a solution for source-less SQL tuning. Batch tests each alternative SQL and compares run time results to the original. Abstract Plan Manager: Allows you to easily manage abstract plans within groups in different databases. You can search for abstract plans and import/export groups of abstract plans to other databases and users. Index Advisor: Proposes new index scenarios to improve the performance of a given SQL statement. It provides performance estimations for every index scenario to assist the user in selecting which index alternative to test, evaluate or implement. Index alternatives can be benchmarked to identify which set will yield the greatest performance gain for the SQL statement.
  • Index Impact Analyzer: Evaluates the effect of the creation of the indexes in the database system. It shows which SQL statements are impacted by the new indexes and identifies the index set alternative that yields the highest performance gain with the least impact on the database system. Migration Analyzer: Compares SQL performance changes between different database environment allowing users to preempt performance degradation when performing database migrations, database upgrades and application rollouts. Configuration Analyzer: Analyzes the effect on SQL performance when changing ASE configuration parameters. Unused Index Analyzer: Identifies unused indexes by analyzing query plans from SQL statements in applications. It reports unused indexes that can be deleted to free up space, improve speed of DML statements and decrease maintenance.
  • SQL Worksheet: Allows users to create, modify and execute T-SQL scripts and commands. Database Explorer: Provides a comprehensive GUI that allows users to view and manage database objects. SQL Formatter: Provides consistent indenting and formatting of SQL statements. Code Finder: Identifies database objects and files that contain a specific text. Object Extractor: Generates DDL scripts for databases and database objects.
  • For more information about SQL Expert and Database Expert visit www.leccotech.com and www.sybase.com
  • 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>
    1. A particular slide catching your eye?

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

    ×