SAP Service Tools for Performance Analysis Kerstin Knebusch Active Global Support Month 05, 2013 Public
Performance Analysis Wait event based Focus on statements causing high load and / or high wait time Based on Oracle workload repository integrated in SAP environment 2013 SAP AG. All rights reserved. 2
SAP Service tools for Performance Analysis Integrated into Solution Manger Self Service Session available for customers as SAP Technical Performance Optimization Self_SQL Data collected on satellite system Integration provided in service session This presentation will not focus on the integration in the solution manager, but on the tools used to collect the data and answer typical questions What are the requirements? Where does the data come from? What is the benefit (for the administrator of the system)? ST-PI ST-A/PI BI in Solution Manager SAP and Oracle workload data integrated in workbench and Report Generation 2013 SAP AG. All rights reserved. 3
SAP Servicetool for Performance Analysis Data source: ST-PI (at least ST-PI SP7 and available notes, better SP8) Program (start with SE38 or SA38) /SDF/RSORADLD_NEW ( function /SDF/DLD_SQL_STMTS_ORA) statement download Functions (start with SE37, additional Cockpit might be provided in the future ) /SDF/DLD_ORA_CONFIG_CHECKS /SDF/DLD_ORA_HOURLY_KEY_FIG /SDF/DB_TIME_HIST_WITH_OBJ /SDF/DLD_ORA_IO_KEYFIG Graphic display for functions in charts only in solution manager and generated word reports, but Usage for display is an option if no other tools are on your fingertips at that point in time (specifically on older ERP releases) Can be called in SE37 for some functions use RSORASTT for better display options Statement download is providing screens for selection and display and can be used as an alternative for DBACockpit on lower SAP releases 2013 SAP AG. All rights reserved. 4
SAP Servicetool for Performance Analysis RSORASTT (see note 1314689) is available for SAP customers With pre build scripts providing charts for mainstream selections Script collection 1438410 is integrated Wait event analysis with RSORASTT ( or /SDF/DB_TIME_HIST_WITH_OBJ) Database wait time with object names related to them 2013 SAP AG. All rights reserved. 5
SAP Servicetool for Performance Analysis : RSORASTT RSORASTT - > graphics to support better identification of bottlenecks See the wait events color coded Identify peak wait times easily in a chart Check for special hours of complain either here or in the function Do not forget to compare with SAP workload and hardware load information 2013 SAP AG. All rights reserved. 6
SAP Servicetool for Performance Analysis : TPO session TPO session - > based on /SDF/DB_TIME_HIST_WITH_OBJ See the wait events color coded (next release, depends on ST package) With chart preview in session 2013 SAP AG. All rights reserved. 7
SAP Servicetool for Performance Analysis : TPO session TPO session - > based on /SDF/DLD_ORA_IO_KEYFIG See the wait events color coded (next release, depends on ST package) With chart preview in session 2013 SAP AG. All rights reserved. 8
SAP Servicetool for Performance Analysis : /sdf/rsoradld_new SE38: /sdf/rsoradld_new Main purpose Select statements for service session (Early watch, Technical Performance Optimization) Display of analysis details for support consultant What is interesting for daily use Select statements from history or cache (as of ST-PI SP7) All common details as typically known from DBACockpit available (but SAP Basis release independent, downward compatible to 46C) Filter options for selection available Check statements related to specific hours Display ABAP source directly from here (if applicable) Active session history Hourly load data Plans from history Bind Values 2013 SAP AG. All rights reserved. 9
SAP Servicetool for Performance Analysis : SE38: /sdf/rsoradld_new 2013 SAP AG. All rights reserved. 10
SAP Servicetool for Performance Analysis : SE38: /sdf/rsoradld_new Display statements based on SQL_ID with relevant load data Same layout (as far as possible) for both sources 2013 SAP AG. All rights reserved. 11
SAP Servicetool for Performance Analysis : SE38: /sdf/rsoradld_new Double click to see the statement details Main leading columns are fixed Verify other load details while still having the reference to the SQL_ID available 2013 SAP AG. All rights reserved. 12
SAP Servicetool for Performance Analysis : SE38: /sdf/rsoradld_new Select different plan for detailed display if avialble 2013 SAP AG. All rights reserved. 13
SAP Servicetool for Performance Analysis : SE38: /sdf/rsoradld_new Details can be used to analyze the reason of system behavior Pay attention to special settings, changing plans and different load history to understand the problem 2013 SAP AG. All rights reserved. 14
SAP Servicetool for Performance Analysis : SE38: /sdf/rsoradld_new Without having the trouble to use different tools you can display the hourly load data in the SAP system now and verify problems and improvements quicker than before. 2013 SAP AG. All rights reserved. 15
SAP Servicetool for Performance Analysis : SE38: /sdf/rsoradld_new Check for which access most of the time is needed Don t forget to check if the number of samples is significant Check all other details Specifically interesting for views and joins 2013 SAP AG. All rights reserved. 16
SAP Servicetool for Performance Analysis : SE38: /sdf/rsoradld_new ASH on plan id level with Filter predicates direct display More details displayed for index and table if available Compression Last DDL Estimated storage quality 2013 SAP AG. All rights reserved. 17
SAP Servicetool for Performance Analysis : TPO session Benefit: data integration Load Data Program Information Object information (table, field description, available solution) Check for duplicates 2013 SAP AG. All rights reserved. 18
SAP Servicetool for Performance Analysis : TPO session Where Clause Analysis, Indexes, Object Data 2013 SAP AG. All rights reserved. 19
SAP Servicetool for Performance Analysis: SQL Monitor SQL Monitor: SQLM (shipment with SAP Basis 7.40 and Kernel 7.21 also provided: down port with notes) /sdf/zqlm (note 1855676) ST-PI SP8 July 2013 Advantage (business case for statement optimization) Identify the related main program or transaction for statement recorded in cache or workload repository Important if change needs to be implemented into application code 2013 SAP AG. All rights reserved. 20
SAP Servicetool for Performance Analysis: SQL Monitor Select options: Request type = transaction Tables 2013 SAP AG. All rights reserved. 21
SAP Servicetool for Performance Analysis: SQL Monitor Merge info from database and ABAP kernel to identify the origin of a statement /SDF/ZQLM SQL Cache 2013 SAP AG. All rights reserved. 22
SAP Servicetool for Performance Analysis: SQL Monitor Outlook Tool to be provided in allowing collection of hourly samples, also from ABAP point of view to provide the missing piece of information Possibly named /sdf/sql 2013 SAP AG. All rights reserved. 23
SAP Servicetool for Performance Analysis Summary Lots of different tools Complicated problems will need some expertise to be resolved Depending on purpose and circumstances the best choice might be different 2013 SAP AG. All rights reserved. 24
Thank you Contact information: Kerstin Knebusch SAP AG Raiffeisenring 44 68789 St. Leon-Rot Germany T +49 6227 7-46069 2013 SAP AG. All rights reserved. 25
2013 SAP AG. All rights reserved No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iseries, pseries, xseries, zseries, eserver, z/vm, z/os, i5/os, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer, StreamWork, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects Software Ltd. Business Objects is an SAP company. Sybase and Adaptive Server, ianywhere, Sybase 365, SQL Anywhere, and other Sybase products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Sybase, Inc. Sybase is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. The information in this document is proprietary to SAP. No part of this document may be reproduced, copied, or transmitted in any form or for any purpose without the express prior written permission of SAP AG. This document is a preliminary version and not subject to your license agreement or any other agreement with SAP. This document contains only intended strategies, developments, and functionalities of the SAP product and is not intended to be binding upon SAP to any particular course of business, product strategy, and/or development. Please note that this document is subject to change and may be changed by SAP at any time without notice. SAP assumes no responsibility for errors or omissions in this document. SAP does not warrant the accuracy or completeness of the information, text, graphics, links, or other items contained within this material. This document is provided without a warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP shall have no liability for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. This limitation shall not apply in cases of intent or gross negligence. The statutory liability for personal injury and defective products is not affected. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third-party Web pages nor provide any warranty whatsoever relating to third-party Web pages. 2013 SAP AG. All rights reserved. 26