SAP Tuning 실무 교육 2003.10.

Slides:



Advertisements
Similar presentations
Tuning Oracle SQL The Basics of Efficient SQLThe Basics of Efficient SQL Common Sense Indexing The Optimizer –Making SQL Efficient Finding Problem Queries.
Advertisements

Tuning: overview Rewrite SQL (Leccotech)Leccotech Create Index Redefine Main memory structures (SGA in Oracle) Change the Block Size Materialized Views,
SAP Performance & Tuning Bonus material for 201 ABAP Interview Questions Material code : BM02 Author.
Introduction to SQL Tuning Brown Bag Three essential concepts.
Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.
SAP Memory Management (an Overview)
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Overview of performance tuning strategies Oracle Performance Tuning Allan Young June 2008.
Monitor & Analyse System
Equality Join R X R.A=S.B S : : Relation R M PagesN Pages Relation S Pr records per page Ps records per page.
© IBM Corporation Informix Chat with the Labs John F. Miller III Unlocking the Mysteries Behind Update Statistics STSM.
Finding the Performance Bottlenecks in Your Application Ian Jones and Roger Schrag Database Specialists, Inc. IOUG-A Live! 1999 Paper.
Module 17 Tracing Access to SQL Server 2008 R2. Module Overview Capturing Activity using SQL Server Profiler Improving Performance with the Database Engine.
Introduction to SAP.
Agenda Overview of the optimizer How SQL is executed Identifying statements that need tuning Explain Plan Modifying the plan.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 11 Database Performance Tuning and Query Optimization.
1 External Sorting for Query Processing Yanlei Diao UMass Amherst Feb 27, 2007 Slides Courtesy of R. Ramakrishnan and J. Gehrke.
Query Processing & Optimization
Chapter 8 Physical Database Design. McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved. Outline Overview of Physical Database.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
Today’s Agenda Chapter 12 Admin Tasks Chapter 13 Automating Admin Tasks.
Convergence /20/2017 © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Executing Explain Plans and Explaining Execution Plans Craig Martin 01/20/2011.
ABAP Chapter 3 Open SQL Internal Table. SAP System : 3 Tier Client/Server DB Server SAP Application Server SAP GUI Presentation Server SAP GUI.
0 UMN 2011 ERP Terapan ABAP Introduction Session # 8.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 11 Database Performance Tuning and Query Optimization.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Database Performance Tuning and Query Optimization.
What is Sure BDCs? BDC stands for Batch Data Communication and is also known as Batch Input. It is a technique for mass input of data into SAP by simulating.
AQS Web Quick Reference Guide Changing Raw Data Values Using Maintenance 1. From Main Menu, click Maintenance, Sample Values, Raw Data 2. Enter monitor.
As quick as you think! 06 Paul Landucci Stéphane Coez.
Improving Efficiency of I/O Bound Systems More Memory, Better Caching Newer and Faster Disk Drives Set Object Access (SETOBJACC) Reorganize (RGZPFM) w/
1 Optimizing Your ColdFusion Applications for Oracle Justin Fidler, CNA, CPS, CCFD Chief Technology Officer Bantu, Inc. 8 May 2001.
Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
1 Wenguang WangRichard B. Bunt Department of Computer Science University of Saskatchewan November 14, 2000 Simulating DB2 Buffer Pool Management.
BW Know-How Call : Performance Tuning dial-in phone numbers! U.S. Toll-free: (877) International: (612) Passcode: “BW”
Applications hitting a wall today with SQL Server Locking/Latching Scale-up Throughput or latency SLA Applications which do not use SQL Server.
User Dialog Overview. Update Statement TABLES customers. SELECT SINGLE * FROM customers WHERE id = 1. IF sy-subrc = 0. customers-name = ‘John’. UPDATE.
Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools.
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
ITEC3612 Enterprise Architecture and Resource Planning (Lab) ABAP Programming (2)
Parallel Execution Plans Joe Chang
By Shanna Epstein IS 257 September 16, Cnet.com Provides information, tools, and advice to help customers decide what to buy and how to get the.
Query Optimization CMPE 226 Database Systems By, Arjun Gangisetty
SAP DEVELOPMENT BASICS Bohuslav Tesar. TRAINING OVERVIEW Amazing life of ABAP developer ;) SAP introduction ABAP basics ABAP Reporting.
Presented by Vishy Grandhi.  Lesson 1: AX Overview  Lesson 2: Role based security  Lesson 3: Monitoring  Troubleshooting.
1 Chapter 9 Tuning Table Access. 2 Overview Improve performance of access to single table Explain access methods – Full Table Scan – Index – Partition-level.
Introduction to ABAP/4 A dvanced B usiness A pplication P rogram – Release 4 Why Use ABAP? –Programming language of SAP –Main purpose is to provide additional.
Dynamicpartnerconnections.com Development for performance Oleksandr Katrusha, Program manager
Copyright Sammamish Software Services All rights reserved. 1 Prog 140  SQL Server Performance Monitoring and Tuning.
 / 1 Optimize Database Access From ABAP QL.  / 2 Copyright Please note: No part of this Training Session may be reproduced or transmitted in any form.
BW 3.0A ABAP Coding 목차 1.InfoSources. 2.InfoProvider. 3.User Exit for Variables.
Troubleshooting Dennis Shasha and Philippe Bonnet, 2013.
What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently and safely. Provide.
Module 6: Creating and Maintaining Indexes. Overview Creating Indexes Understanding Index Creation Options Maintaining Indexes Introducing Statistics.
SAP Tuning 실무 SK㈜ ERP TFT.
ABAP Performance Tuning for SAP R/3 1 ABAP Performance Tuning.
Oracle Database Architectural Components
© 2014 Concentrix Corporation 1 Middleware Application Dashboard [26th-Dec-15 to 1st-Jan-15] IT Application Support Concentrix, INDIA.
Session Name Pelin ATICI SQL Premier Field Engineer.
CTS Change & Transport System. Introduction The Change and Transport System (CTS) is a tool that helps you to organize development projects in the ABAP.
SPECTO TRAINING contact us: , mail :
Tuning Oracle SQL The Basics of Efficient SQL Common Sense Indexing
XINFO – How to use XINFO in Development
Scaling SQL with different approaches
SAP ABAP Online Training
Installation and database instance essentials
Performance And Scalability In Oracle9i And SQL Server 2000
Sql Saturday Philadelphia
Presentation transcript:

SAP Tuning 실무 교육 2003.10

3. Tuning 방법 결정(DB or ABAP) 4. Performance Trace (DB) 목 차 1. SAP Architecture의 이해 2. Monitoring 3. Tuning 방법 결정(DB or ABAP) 4. Performance Trace (DB) 5. Run Time Analysis (CPU) 6. Index & Histogram 7. Tuning Tips 8. Q & A

1. SAP Architecture의 이해  Process의 흐름 Memory DISK **** 2 KB 0.1 ms SAP GUI SAP GUI SAP GUI SAP GUI SAP GUI Frontend- App Presentation **** 2 KB Application Dispather Dispather Gateway Gateway 0.1 ms 5 MB Table Buffer Enqueue Table Table Buffer DIA WP BTC WP SPO WP DIA WP ENP WP 120 MB 1 ms 32 KB Database Memory DB WP DB WP 500 MB DB WP **** 10 ms 10 GB – 500 + GB DISK

1. SAP Architecture의 이해(2)  Database Interface Native SQL Database data Application server Database server ABAP interpreter SELECT * FROM ... EXEC SQL. SELECT ... END EXEC. OPEN SQL Data DB interface Local buffers Database

3. Tuning 방법 결정(DB or ABAP) 4. Performance Trace (DB) 목 차 1. SAP Architecture의 이해 2. Monitoring 3. Tuning 방법 결정(DB or ABAP) 4. Performance Trace (DB) 5. Run Time Analysis (CPU) 6. Index & Histogram 7. Tuning Tips 8. Q & A

Process ID 로 ST04에서 Query 분석시 사용 2. Monitoring - SM66  SM66 : System wide work process overview Process ID 로 ST04에서 Query 분석시 사용 접속 App. Server

2. Monitoring - SM51 vs SM50  SM51 vs SM50 Dbl Click

2. Monitoring - ST04  Database Performance Anal.  ST04  Database Performance Analysis : Oracle SM66에서의 Process ID Next Page

2. Monitoring – Database Performance Anal.  데이터베이스 성능: 활성세션 Next Page 수행중인 SQL

2. Monitoring – Database Performance Anal.  Display Execution Plan for SQL Statement Execution Plan

 STAT : Local Transaction Statistics 2. Monitoring – STAT  STAT : Local Transaction Statistics Next Page

App. Server에서만 수행된시간 (DB Time 제외) 2. Monitoring – STAT  STAT – Workload : Display Statistical Records 총 수행시간 App. Server에서만 수행된시간 (DB Time 제외) 전체 수행시간 중 DB에 관련하여 수행된 시간 Next Page

2. Monitoring – STAT  STAT – Workload : Display Statistical Records

 ST03 – Workload : Analysis of SAP System (System명) 2. Monitoring – ST03  ST03 – Workload : Analysis of SAP System (System명) Next Page

 ST03 – Performance : Workload overview for Server TOTAL 2. Monitoring – ST03  ST03 – Performance : Workload overview for Server TOTAL Next Page

2. Monitoring – ST03  ST03 – Workload : Transaction Profile Report

2. Monitoring – ST03  ST03 – Workload : Transaction Profile Report

3. Tuning 방법 결정(DB or ABAP) 4. Performance Trace (DB) 목 차 1. SAP Architecture의 이해 2. Monitoring 3. Tuning 방법 결정(DB or ABAP) 4. Performance Trace (DB) 5. Run Time Analysis (CPU) 6. Index & Histogram 7. Tuning Tips 8. Q & A

3. SAP Tuning 방법의 결정 (DB or ABAP)  SAP Application Tuning DB 관련 Tuning 작업 수행 - ST04,ST05 에서 SQL 분석 - Index 생성/변경/삭제 - Nested Loop  Join 등… Monitoring - SM66 - ST04 - STAT - ST03 DB What is a bottleneck ? DB or App. CPU ? App.CPU ABAP Tuning 수행 - SE30 : Run time analysis - Binary search… - Logic 수정…

3. Tuning 방법 결정(DB or ABAP) 4. Performance Trace (DB) 목 차 1. SAP Architecture의 이해 2. Monitoring 3. Tuning 방법 결정(DB or ABAP) 4. Performance Trace (DB) 5. Run Time Analysis (CPU) 6. Index & Histogram 7. Tuning Tips 8. Q & A

4. Performance Trace (DB) – ST05  ST05 – Trace Requests Next Page

4. Performance Trace (DB) – ST05  ST05 – Basic SQL List – Sorted by PID Next Page Duration Operation Explain ABAP Display Double Click시 실제 DBMS에 전송된 SQL 조회 가능 Table or View name

4. Performance Trace (DB) – ST05  ST05 – Extended SQL List – Sorted by PID Array Record counts Next Page

4. Performance Trace (DB) – ST05  ST05 – SQL Trace : Select Data for Compression Next Page

4. Performance Trace (DB) – ST05  ST05 – SQL Trace : Display Compressed Data

3. Tuning 방법 결정(DB or ABAP) 4. Performance Trace (DB) 목 차 1. SAP Architecture의 이해 2. Monitoring 3. Tuning 방법 결정(DB or ABAP) 4. Performance Trace (DB) 5. Run Time Analysis (CPU) 6. Index & Histogram 7. Tuning Tips 8. Q & A

5. Run Time Analysis (CPU) – SE30  SE30 – ABAP Runtime Analysis : Initial Screen 분석 결과 파일의 Short Desc. In parallel session: 현 App. Server에서 수행중인 Job에 대한 분석 In Current session: 특정 PGM, T-Code, Func. 에 대한 분석 Restriction : 분석에 대한 Option 지정 Performance file : 분석 결과 파일 및 해당 파일에 대한 분석 수행 Next Page

5. Run Time Analysis (CPU) – SE30  SE30 – Restrictions에 Variant Setting 기존 Variant option 변경시 사용 Next Page

5. Run Time Analysis (CPU) – SE30  SE30 – Change Measurement Restriction Variant

5. Run Time Analysis (CPU) – SE30  SE30 – Change Measurement Restriction Variant

5. Run Time Analysis (CPU) – SE30  SE30 – Change Measurement Restriction Variant 분석 File의 크기 및 분석 최대 시간 지정 Aggregation : 분석 Type 지정

5. Run Time Analysis (CPU) – SE30  SE30 – Measuring the Data Transaction, Program, Function module명을 입력한 후 직접 실행하여 분석시 사용 현재 Login되어 있는 App. Server내에서 수행되고 있는 Job의 실시간 분석 1. Start measurement : 분석을 수행하고자 하는 Job에 해당하는 Line에 Cussor 위치 2. End measurement

5. Run Time Analysis (CPU) – SE30  SE30 – Analysing the Data Log File 삭제 이전 Log file 분석시 사용 Log File 정보 Next Page

5. Run Time Analysis (CPU) – SE30  SE30 – RunTime Analysis Evaluation : Overview Group(Interanl Table, DB Table, Method…) 별 세부 HIT List가 조회 금번 분석시 App. Server의 CPU에서 수행된 시간과 DB작업을 수행한 시간 을 비교 할 수 있음 HIT List Next Page

5. Run Time Analysis (CPU) – SE30  SE30 – RunTime Analysis Evaluation : Hit List Net Time Gross Time Call Hiearachy Absolute<->% Call 되어지는 Part or Statement Display Source Code

3. Tuning 방법 결정(DB or ABAP) 4. Performance Trace (DB) 목 차 1. SAP Architecture의 이해 2. Monitoring 3. Tuning 방법 결정(DB or ABAP) 4. Performance Trace (DB) 5. Run Time Analysis (CPU) 6. Index & Histogram 7. Tuning Tips 8. Q & A

6. Index & Histogram INDEX? 빠른 참조를 제공하는 키. 책, 잡지, 사전 등의 인덱스와 같은 이치이다. 항상 순차적으로 Sort된다. 인덱스는 Report Program에서 유용하다. 삽입, 갱신 , 삭제 시 인덱스는 시스템이 자동 Re - Sort된다. Table Customer Index Z01 (Country) Cust Code Country A India B Malaysia C India D India . . . . Z Malaysia Cust Code Country A India B India C India D Malaysia Z Malaysia . . . . F Zambia

6. Index & Histogram [1] Customer Code between ‘A’ & ‘D’ - Use Index Index Pointer Ranged is defined. [2] Customer Code = ‘NL035’ - Use Index Pointer directly to one record. [3] Customer Code <> ‘NL035’ - Does not use Index Pointer is confuses which to point. Full table scan – sequential read. [4] Customer Code in Cust - Use Index BUT…/ Pointer Range is null if the fields is not filled in. Index will be ignored. Full table scan take place. [5] Customer Code LIKE ‘%A’ - Does not use Index Index could not recognize ‘%’. [6] Customer Code LIKE ‘A%’ - Use Index Index pointer will be started at ‘A’ and ended at ‘AZZZ’.

6. Index & Histogram 인덱스를 생성 할 때 항상 histogram logic 사용을 고려해 본다. 인덱스는 reporting program에 유용하다. 가장 unique 한 fields를 포함 하는 것이 좋다. (example: Client No, Company Code, Plant code, Purchasing Group, Shipping Group and etc.) 4.인덱스를 삽입, 삭제, 변형 할 때 시스템의 모든 인덱스를 re-sorting하기 때문에 추가 시간이 걸린다. Index A Index B A B 111 112 A B C 111 112 인덱스 A와 인덱스 B는 같다. 인덱스 B가 인덱스 A 보다 unique 하기 때문에 인덱스 A는 필요치 않다.

6. Index & Histogram Index B Index A Apply Index B: BEST Where A = ‘ XXX ’ and B = ‘ XXX ’ and C = ‘ XXX ’. GOOD Where A = ‘ XXX ’ and B = ‘ XXX ’. AVERAGE Where A = ‘ XXX ’. BAD Where A = ‘XXX ’ and C = ‘ XXX ’. WORST Where B = ‘ XXX ’ and Index B Index A Index A is UNION of index B.

Detailed analysis button 6. Index & Histogram Database Performance: Tables and Indexes using transaction DB02 Detailed analysis button (세부분석)

Type the Table name in the Object name and press Confirm button. 6. Index & Histogram Type the Table name in the Object name and press Confirm button. Click on Table Columns, then system shows the histogram

6. Index & Histogram – Table Index 정보조회  SE11 – Display Table ABAP Data Dictionary 와 실제 DB의 상태를 점검하면서 Display ABAP Data Dictionary 와 실제 DB에 Index가 동일한지 여부 표시 Table에 생성되어 있는 Index

6. Index & Histogram – Table에 연관된 SQL 조회  SE11 – Display Table Where Used List - Table에 연관된 각종 Object 의 정보 조회 Table에 연결된 프로그램 조회시 : 연관된 SQL 조회 가능 Table에 연결된 View 조회시 사용 Next Page

6. Index & Histogram – Table에 연관된 SQL 조회  SE11 – Database table Table명 in Programs (** hits) Detail View Lines : 선택한 Program 항목에서 Table과 관련 된 부분을 Display Collapse : 펼쳐진 Program List를 접음 SQL 문장

3. Tuning 방법 결정(DB or ABAP) 4. Performance Trace (DB) 목 차 1. SAP Architecture의 이해 2. Monitoring 3. Tuning 방법 결정(DB or ABAP) 4. Performance Trace (DB) 5. Run Time Analysis (CPU) 6. Index & Histogram 7. Tuning Tips 8. Q & A