Plan Analyzer Zos Product Brief Us

8
CA PLAN ANALYZER® FOR DB2 FOR z/OS (CA PLAN ANALYZER) IMPROVES DB2 PERFORMANCE BY EFFICIENTLY ANALYZING SQL AND OFFERING SQL PERFORMANCE IMPROVEMENT RECOMMENDATIONS BY APPLYING EXPERT RULES. Overview Analyzing DB2 plans is important in optimizing performance in a production environment. CA Plan Analyzer offers analysis capabilities that go beyond the plan and package level. Any SQL can be analyzed from a single statement to an entire application. Benefits CA Plan Analyzer provides clear recommendations for improving SQL performance. CA Plan Analyzer also streamlines the development process by providing SQL performance recommenda- tions to developers and showing how changes to the application SQL will impact access paths. The CA Advantage CA Plan Analyzer is a component of the CA Database Management Solutions for DB2 that provide DB2 for z/OS database performance management, database administration and backup and recovery. CA Database Management Solutions for DB2 is an integral part of CA’s Enterprise IT Management initiative, which helps you unify and simplify IT manage- ment across your entire organization for better business results. CA Plan Analyzer ® r11.5 for DB2 for z/OS PRODUCT BRIEF: CA PLAN ANALYZER FOR DB2 FOR z/OS

Transcript of Plan Analyzer Zos Product Brief Us

Page 1: Plan Analyzer Zos Product Brief Us

8/8/2019 Plan Analyzer Zos Product Brief Us

http://slidepdf.com/reader/full/plan-analyzer-zos-product-brief-us 1/8

CA PLAN ANALYZER® FOR DB2 FOR z/OS (CA PLAN ANALYZER) IMPROVES DB2 PERFORMANCEBY EFFICIENTLY ANALYZING SQL AND OFFERING SQL PERFORMANCE IMPROVEMENTRECOMMENDATIONS BY APPLYING EXPERT RULES.

Overview

Analyzing DB2 plans isimportant in optimizingperformance in a productionenvironment. CA PlanAnalyzer offers analysiscapabilities that go beyondthe plan and package level.Any SQL can be analyzedfrom a single statement to anentire application.

Benefits

CA Plan Analyzer providesclear recommendations forimproving SQL performance.CA Plan Analyzer alsostreamlines the developmentprocess by providing SQLperformance recommenda -tions to developers andshowing how changes to theapplication SQL will impactaccess paths.

The CA Advantage

CA Plan Analyzer is acomponent of the CADatabase ManagementSolutions for DB2 thatprovide DB2 for z/OSdatabase performancemanagement, databaseadministration and backupand recovery. CA DatabaseManagement Solutions forDB2 is an integral part of CA’s

Enterprise IT Managementinitiative, which helps youunify and simplify IT management across your entireorganization for betterbusiness results.

CA Plan Analyzer ® r11.5 forDB2 for z/OS

PRODUCT BRIEF: CA PLAN ANALYZER FOR DB2 FOR z/OS

Page 2: Plan Analyzer Zos Product Brief Us

8/8/2019 Plan Analyzer Zos Product Brief Us

http://slidepdf.com/reader/full/plan-analyzer-zos-product-brief-us 2/8

2 PRODUCT BRIEF: CA PLAN ANALYZER FOR DB2 FOR z/OS

The Importance of DB2 Plan AnalysisIt is frustrating and time-consuming to analyze thousands of SQL statements and their

complex access paths using conventional methods, such as the DB2 EXPLAIN facility, just tofind the subset of statements that needs database administrator (DBA) attention. It is also adifficult task to read and interpret cryptic PLAN_TABLE output or collect DB2 catalog statisticsand dependency information to determine which access path DB2 has chosen and why. If yourenvironment demands efficiency and conservation of DBA resources, your organization needsa better solution.

CA Plan Analyzer offers analysis capabilities that go beyond the plan and package level.Any SQL can be analyzed from a single statement to an entire application. This product alsohelps determine how plans will perform in production by analyzing a test plan on the productionDB2 subsystem. When CA Plan Analyzer processes SQL, rules are used to evaluate the SQLstatements and the underlying physical objects. If a rule exception is triggered, CA Plan Analyzer

displays the rule in a report, followed by clear recommendations for improving performance.

Key CapabilitiesSQL STATEMENT SOURCES CA Plan Analyzer can analyze a specific application or track a groupof logically related items over time, evaluating changes in SQL statements and the access pathsthat affect performance. Its advanced analysis services can analyze SQL from many sources.

• SQL Statements Specific SQL statements from an SQL editor or file.

• Plans and Packages All SQL in a given plan or package, or groups of plans/packages.

• Catalog Objects All SQL that access a given database, tablespace, table, index, view,synonym, alias, or column.

• Query SQL SQL queries from either IBM’s Query Management Facility (QMF) orCA Report Facility.

• DBRMLIB All SQL from a DBRM member of a DBRM library.

• Dynamic SQL Dynamic SQL such as that captured by CA Detector® for DB2 for z/OS(CA Detector).

ADVANCED EXPLAIN SERVICES This product’s Explain Services describes the SQL access pathschosen by DB2 in clear, easy-to-understand terminology. This eliminates the need to understandcryptic and encoded PLAN_TABLE output, catalog statistics, DB2 optimizer documentation and

object dependency trees to determine what access path DB2 has chosen and why.• User Modes The level of the information can be tailored to your skill level. Novice Mode

allows for a simplified interface by just allowing plan or package SQL source types. ExpertMode allows for all SQL source types. The long access path report provides a very detailedsentence format explain report for the new user (See Figure A). As you become morefamiliar with both CA Plan Analyzer and DB2 performance topics, you can use Expert Modeto customize the level of detail provided.

Page 3: Plan Analyzer Zos Product Brief Us

8/8/2019 Plan Analyzer Zos Product Brief Us

http://slidepdf.com/reader/full/plan-analyzer-zos-product-brief-us 3/8

PRODUCT BRIEF: CA PLAN ANALYZER FOR DB2 FOR z/OS

• Explain Profile This feature simplifies the explain process by allowing a DBA to defineprofiles of explain options and streamlines the explain process. An explain profile can beused to predefine screens of explain options to expedite the explain process and to enhanceuser productivity.

• Plan Explain Options CA Plan Analyzer uses the information present in the DB2 PLAN_TABLEand provides a detailed explanation of current plan information. It can also predict the accesspath choices that would take effect if the plan were rebound by passing the SQL statementsto DB2 for an immediate explain using current catalog statistics. For non-catalog SQL, youspecify the isolation method (CS, RR, RS, UR) for the DB2 analysis of this SQL.

• Explain Plans During Development Developers can perform explain processing on aproduction DB2 subsystem for a plan or package that resides on the test subsystem withoutmoving the item. They can tune applications during development testing knowing how theywill perform when bound on the production subsystem. If production information is notavailable, projected statistics can be used to predict SQL performance.

• Access Path Analysis Enhanced Explain analysis includes the access path chosen and thefactors that led to its choice. These factors include DB2 catalog statistics and physical objectmetrics. The output is presented in several easy-to-read reports.

• Performance Recommendations CA Plan Analyzer goes beyond DB2 EXPLAIN analysiswith an Expert Rules System that governs SQL syntax, physical design, plan design and useof predicates. Triggered Rules are displayed along with recommendations on resolving theflagged items.

NEW USER EXPLAIN MODEFIGURE A

CA Plan Analyzer explain display,showing full access path details.

Page 4: Plan Analyzer Zos Product Brief Us

8/8/2019 Plan Analyzer Zos Product Brief Us

http://slidepdf.com/reader/full/plan-analyzer-zos-product-brief-us 4/8

4 PRODUCT BRIEF: CA PLAN ANALYZER FOR DB2 FOR z/OS

HISTORICAL DATABASE SERVICES CA Plan Analyzer can save the SQL source, explain data, andexpert system rules violation information into the CA Plan Analyzer Historical Database forlater generation of reports and comparison against modified SQL sources. Information can bepresented online or in batch reports.

• Explain Analysis Reports Explain Summary displays the access methods used and otherfactors affecting performance; Cost Summary analyzes the relative, average and maximumcosts when executing the SQL; Statement Type Summary summarizes the number ofSELECT, UPDATE, INSERT and DELETE statements in the SQL; Object Summary identifiesthe number of tables and indexes that an SQL statement references; Information Summarysummarizes object information and lets you identify the SQL statements whose text oraccess path has changed and the SQL statements that are causing one or more expertsystem rule violations.

• Compare Explain Versions Old and new versions of SQL, SQL costs and Explain data can becompared, highlighting changes that may be of performance concern. Differences in the SQLtext are shown along with differences in DB2 SQL costs or chosen access paths, even whenthe SQL is unchanged. This is ideal for those situations where a migration to a new version ofDB2 requires a rebind of many or all plans. You can use the compare options (cost marginmilliseconds (ms), cost margin service units (su) and cost margin timerons (tm)) to compareSQL costs and set a threshold to trigger notification when a cost change has taken place thatis outside of the threshold.

• SQL Problem Reports The Explain Problem Report will identify access methods used mostfrequently by an organization’s SQL, the most costly SQL statements, statement typesfrequently used and objects referenced. The Rule Problem Report will identify SQL sourcesthat have triggered an expert system rule in the CA Plan Analyzer historical database.

EXPERT RULES SYSTEM CA Plan Analyzer performance evaluation uses an Expert Rules Systemcontaining more than 200 rules gathered from the industry’s foremost DB2 experts. You canupdate these rules to implement specific standards in your organization. By updating thresholdvalues and activating or deactivating specific rules, you can create custom rule sets for each ofapplication area or DB2 subsystem. These rules cover four distinct areas.

• SQL Rules Indicate possible problems in the way that the SQL has been coded. For example,SQL rules can identify poorly coded SQL that is not taking advantage of an existing index(See Figure B).

• Physical Design Rules Highlight possible problems with the DB2 objects referenced by theSQL. For example, physical design rules can identify indexes with an excessive leafdistribution.

• Plan Rules Identify possible problems with the options used to bind plans and packages.• Predicate Rules Indicate problems with the predicates coded in the SQL. Incorrectly coded

predicates and incorrectly defined predicate operands are among the most common codingerrors that can adversely influence access path choice. Predicate rules will highlight all Stage1 and Stage 2 predicates and show whether they are indexable.

Page 5: Plan Analyzer Zos Product Brief Us

8/8/2019 Plan Analyzer Zos Product Brief Us

http://slidepdf.com/reader/full/plan-analyzer-zos-product-brief-us 5/8

PRODUCT BRIEF: CA PLAN ANALYZER FOR DB2 FOR z/OS

EXPERT SYSTEM RULES

MANAGE CATALOG STATISTICS During an explain, statistics stored in the DB2 catalog are usedto determine the optimal access path. The Statistics Manager component of CA Plan Analyzerallows you to easily specify new values for selected catalog statistics. Doing this work manuallywould take hours and many calculations.

• Update Statistics Move production statistics to test subsystems to see how a new ormodified application will perform in production. Also create a set of statistics for a test

environment when no production statistics exist.• Temporary Changes Carry out “what if” projections, then commit or roll back the changes.

For example, you can change the cardinality of a table and propagate the cardinality todependent objects to evaluate the effect on the access path selection.

REPORTING SERVICES CA Plan Analyzer provides a variety of reports that enable you tounderstand the results of the analysis, details of the DB2 objects, and helps to identify problemSQL. Information can be presented online or in batch reports.

• Plan, DBRM, and Package Reports These reporting facilities generate catalog-based reportsdetailing SQL statements, bind parameters, rebind parameters, and user authorizations inaddition to other information. All reports support Distributed Data Facility (DDF) locations.

• Object Reports The object reporting facility gives you the ability to view a list of plans orpackages based on object dependencies, database, tablespace, table, index, view, synonym,alias, or column. From the online reports, you can drill down to the SQL statement whereadditional reports like access path and predicate analysis can be generated. All reportssupport Distributed Data Facility (DDF) locations.

FIGURE B

SQL statement has violated rule #73,as shown.

Page 6: Plan Analyzer Zos Product Brief Us

8/8/2019 Plan Analyzer Zos Product Brief Us

http://slidepdf.com/reader/full/plan-analyzer-zos-product-brief-us 6/8

6 PRODUCT BRIEF: CA PLAN ANALYZER FOR DB2 FOR z/OS

• SQL Statement Reports These reports allow you the ability to report on SQL from thecatalog based on statement type and SQL syntax elements. From the online reports, you candrill down to the SQL statement where additional reports like access path and predicateanalysis can be generated.

• Problem Reports Problem Plans/Packages Reports search plans and packages for ninedifferent problem conditions including plans and packages that use Repeatable Read orUncommitted Read for isolation level, that are Invalid or Inoperative or are bound withEXPLAIN (NO). SQL Problem Reports identify access methods used most frequently by anorganization’s SQL, the most costly SQL statements, statement types frequently used andobject referenced.

INTEGRATION To work more efficiently, you can take advantage of the interface betweenCA Plan Analyzer and other CA Database Management Solutions for DB2 for z/OS.

• CA Detector CA Detector integrates with CA Plan Analyzer enabling captured SQL

statements to be passed directly to CA Plan Analyzer for explain analysis and suggestionsfor improving SQL performance. CA Plan Analyzer shares a common database ofperformance data to ensure the greatest possible return on tuning efforts. CA Detector canfeed this database with the dynamic SQL and execution statistics it collects so that CA PlanAnalyzer can explain this SQL and display the execution statistics.

• CA SQL-Ease® for DB2 for z/OS This product shares the same Explain Engine, includingexpert systems rules and explain database as CA Plan Analyzer.

PLAN TABLE MAINTENANCE This facility gives the user the ability to easily set up optimizationhints in the user’s plan table. The optimization hints can then be bound into a plan or packageto override the access paths generated by the DB2 optimizer.

What’s New in r11.5DB2 VERSION 8 FEATURE SUPPORT This release of CA Plan Analyzer adds support for thefollowing features of DB2 for z/OS Version 8.

• Long Names Extended object and package names are supported in CA Plan AnalyzerExplain and Reporting services.

• Sequence Objects SQL referencing sequence objects can be explained and managed

• PLAN_TABLE The DB2 Version 8 PLAN_TABLE format is supported and can be created,analyzed and reported on.

• 2Mb SQL Statement Support CA Plan Analyzer can perform future explains of extendedSQL up to 2 Megabytes in length when passed from CA Detector or any single SQLstatement source.

• SQL Syntax CA Plan Analyzer has been enhanced to support DB2 for z/OS Version 8SQL syntax.

• Search Conditions 10 new search conditions along with support for new Column, Scalar andTable functions has been added and is available in Enhanced Explain and Statement Reporting.

Page 7: Plan Analyzer Zos Product Brief Us

8/8/2019 Plan Analyzer Zos Product Brief Us

http://slidepdf.com/reader/full/plan-analyzer-zos-product-brief-us 7/8

PRODUCT BRIEF: CA PLAN ANALYZER FOR DB2 FOR z/OS

• New Objects Supported The Predicate analysis reports now support the Distinct predicatetype. The Object Dependency Report now includes information on:– Materialized Query tables (MQT)– Triggers– Identity Columns– Volatile tables using index access– New Index types– Table-based partitioning index– Data partitioning secondary index (DPSI)– Index Padding for VARCHAR columns– Column Stats Format (Pad statistics with spaces)

• Enhanced SQL Correlation and Predicate Analysis Improved SQL dependency and predicateanalysis enables more detailed reporting along with a better understanding of theimplications of coding SQL predicates.

SUPPORT FOR DB2 9 FOR z/OS Statistics Manager component of CA Plan Analyzer has beenenhanced to support the new DB2 9 catalog statistics related to index expressions, XMLindexes, histogram statistics, and data prefetch factor enabled by the DSNZPARM STATCLUSparameter.

NEW COMPARE COST REPORTING You can use the new compare options (cost marginmilliseconds (ms), cost margin service units (su) and cost margin timerons (tm)) to compareSQL costs and set a threshold to trigger notification when a cost change has taken place that isoutside of the threshold.

• SQL Cost The SQL cost comparison uses ms and su values populated at explain time forcompare. The tm value (also known as relative cost CPU plus I/O utilization) is captured for

comparison and will allow the user to set a specific return code, if SQL cost comparisondifferences are detected.

• Short Access Path Report The Short Access Path report has also been enhanced to include anew cost detail line at the beginning of the report that displays the cost fields (ms, su, and tm).

CA Plan Analyzer Proactively Evaluates DB2 PlansCA Plan Analyzer improves DB2 performance by efficiently analyzing SQL and offering SQLperformance improvement recommendations applying expert rules. It reduces the time andeffort involved in SQL analysis by analyzing groups of SQL statements and providing in-depth

SQL reports.This product also helps determine how plans will perform in production by analyzing a testplan on the production DB2 subsystem. When CA Plan Analyzer processes SQL, rules are usedto evaluate the SQL statements and the underlying physical objects. If a rule exception istriggered, CA Plan Analyzer displays the rule in a report, followed by clear recommendationsfor improving performance.

Page 8: Plan Analyzer Zos Product Brief Us

8/8/2019 Plan Analyzer Zos Product Brief Us

http://slidepdf.com/reader/full/plan-analyzer-zos-product-brief-us 8/8

CA Plan Analyzer also streamlines the development process by providing SQL performancerecommendations to developers and showing how changes to the application SQL will impactaccess paths. This reduces test time and performance surprises when applications are movedinto production.

The CA AdvantageThe CA Database Management Solutions for DB2 for z/OS provide the advanced technologyto proactively manage DB2 for z/OS environments. By using our products, customersmaximize performance and minimize, or eliminate, database downtime. These capabilitiesenhance the overall business value provided by DB2 applications.

The CA Database Management Solutions for DB2 for z/OS are part of a family of databaseproducts supporting both mainframe and distributed environments that help enable you toreduce the amount of time, effort and human error involved in implementing, maintaining andmaximizing the availability of efficient database applications. Organized into three solutionareas comprised of Database Administration, Database Performance Management, andDatabase Backup and Recovery, our products allow Database Administrators (DBAs) to bemore productive and get the task right the first time.

Enterprise IT Management (EITM) is CA’s vision for how to unify and simplify IT managementto maximize the value to the business. To transform IT management, CA delivers solutions thateffectively govern, manage, and secure IT.

The CA Database Management Capability Solution is an integral part of EITM providingproducts that help manage the total cost of database ownership by automating day-to-day

operations and increasing overall service responsiveness. From DB2 and IMS on the mainframe,to Oracle, DB2 and SQL Server on distributed servers, CA Database Management providesadvanced technology and integration to manage increasingly large and complex databases.

CA Services and our partners can help you assess your current IT situation, define your goalsand implement solutions to gain measurable results. To keep your CA Solutions operating atpeak performance, CA Support delivers unparalleled technical and customer supportworldwide, and we offer training and certification through CA Education.

Next StepsCA Plan Analyzer offers analysis capabilities that go beyond the plan and package level. AnySQL can be analyzed from a single statement to an entire application.

To learn more, and see how CA database management solut ions enable organizations to un ifand simplify IT management for better business results, visit ca.com/databasemanagement.

Copyright © 2008 CA. All rights reserved. All trademarks, trade names, service marks and logos referenced herein belong to their respective companies. PB05ESMPA01E MP32709030

Learn more about how CA can help you

transform your business atca.com