Presentation is loading. Please wait.

Presentation is loading. Please wait.

SAP Tuning 실무 교육 2003.10.

Similar presentations


Presentation on theme: "SAP Tuning 실무 교육 2003.10."— Presentation transcript:

1 SAP Tuning 실무 교육

2 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 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 – GB DISK

4 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

5 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 Process ID 로 ST04에서 Query 분석시 사용
2. Monitoring - SM66  SM66 : System wide work process overview Process ID 로 ST04에서 Query 분석시 사용 접속 App. Server

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

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

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

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

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

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

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

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

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

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

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

18 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

19 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 수정…

20 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

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

22 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

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

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

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

26 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

27 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

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

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

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

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

32 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

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

34 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

35 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

36 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

37 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

38 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’.

39 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는 필요치 않다.

40 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.

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

42 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

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

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

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

46 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


Download ppt "SAP Tuning 실무 교육 2003.10."

Similar presentations


Ads by Google