Professional Documents
Culture Documents
SAP System ID
SAP Component SAP ERP Central Component 5.0
DB System ORACLE 9.2.0.6
Operating AIX
System
Customer CenturyTel
Service Center SAP Support, Dublin
Telephone +353 1 467 4000
Fax +353 1 467 4100
1 Table of Contents
1 TABLE OF CONTENTS.......................................................................................................................................... 2
2 R/3 PERFORMANCE OVERVIEW QAS.................................................................................................................4
3 DATABASE LOAD ANALYSIS............................................................................................................................... 4
3.1 DATABASE OVERVIEW...................................................................................................................... 4
3.2 MEMORY ALLOCATION..................................................................................................................... 8
3.3 DATABASE PARAMETER SETTINGS.................................................................................................... 8
3.3.1 Parameters.............................................................................................................................................. 8
4 EXPENSIVE SQL STATEMENTS...........................................................................................................................9
4.1 EXPENSIVE SQL STATEMENT DETAILS.............................................................................................. 9
4.1.1 SQL Statement 1: full table scan on BDCPS...........................................................................................9
4.1.2 SQL Statement 1: access on table zboc................................................................................................10
5 ISSUES................................................................................................................................................................. 12
5.1 LATEST ORACLE PATCH 9.2.0.8 IS NOT IMPLEMENTED....................................................................12
5.2 ISSUE : PSAPTEMP TYPE............................................................................................................ 12
5.3 ISSUE : SMALL STATISTICS SAMPLE SIZES......................................................................................12
5.4 ISSUE: SEGMENTS WITH ACTIVATED PARALLELISM DEGREE.............................................................13
5.5 ISSUE : MISSING TABLE STATISTICS...............................................................................................20
5.6 ISSUE : MISSING INDEX STATISTICS................................................................................................20
------------------------------------------------------------------------------------------------
Name Value
GENERAL INFORMATION:
RESOURCE INFORMATION:
SPACE INFORMATION:
Tablespaces 37
Datafiles 1834 ( 3579.29 GB)
Tempfiles 0 ( 0.00 GB)
Freespace fragments 13791 ( 288.50 GB)
Redo log groups 4
Redo log members 2
Redo log size (min.) 1024.00 MB
CBO STATISTICS:
PSAPBTABD 34.31 %
PSAPSTABD 32.45 %
PSAPUSER1I 32.20 %
PSAPBTABI 0.68 %
PSAPCLUD 0.18 %
PSAPCLUI 0.05 %
PSAPSTABI 0.05 %
SYSTEM 0.02 %
PSAPTEMP 0.01 %
PSAPES640D 0.00 %
The main timed events and the general tuning approaches are:
- db file sequential read
o Meaning: Reading a single block from disk
o General tuning approaches:
Larger buffer pool so that more blocks can be stored in memory
Improvement of I/O performance
Tuning of expensive SQL statements in terms of disk reads
o SAP Notes: 619188, 793113
- buffer busy waits
o Meaning: Waiting for a block that is held in incompatible mode, usually a secondary problem
(e.g. related to “log buffer space” waits or archiver stuck situations) or related to massively
parallel INSERTs
o General tuning approaches:
Analyze and tune the primary problem
Optimize INSERTs
o SAP Note: 619188
- db file scattered read
o Meaning: Reading multiple consecutive blocks from disk, happens usually during full table
scans
o General tuning approaches:
See section “db file sequential read”
Tune expensive SQL statements performing full table scans
o SAP Notes: 619188, 793113
o
PGA_AGGREGATE_TARGET 0 still using the manual PGA. See SAP Note 619876.
Recommendation: Based on the analysis of your current parameter settings, the following table provides
recommendations to the parameters that are not in accordance with SAP standard recommendations.
CURRENT SETTINGS
Name Recommendation
*** date/time 2010-10-28/16:12 *** note/version 830576/175 124361/143
*** 632427/14 632556/75 ***
_optimizer_join_sel_sanity_check add with value "TRUE"
_table_lookup_prefetch_size add with value "0"
db_writer_processes check if default value "1" is suitable
(change default in case of dbwr problems
only)
shared_pool_size check if default value "67108864" is
suitable (appropriately set; at least
400MB)
_eliminate_common_subexpr check if value "FALSE" is suitable (FALSE
as workaround for fixes in 814514,
822638)
PGA_AGGREGATE_TARGET Activate automatic PGA See sap note
619876
Description:
This Statement was causing the highest number of disk reads in your system and contributes to 39% of the total
disk reads in your database. It read 573 million disk reads in the sql cache area. It retrieves 1 row per execution.
Name Value
Total number of executions 3,030
No. of 'disk reads' 573,232,340
No. of 'disk reads' per execution 189,185.6
No. of "buffer gets" 581,573,237
No. of 'buffer gets' per execution 191,938.4
Number of processed rows 3,029
Processed rows for execution 1.0
No. of 'buffer gets' per row 192,001.7
CPU Time (microsec) 37,479,310,000
CPU Time/Exec 12,369,409.2
Elapsed Time (Microsec) 204,824,679,146
Elapsed Time/Exec 67,598,904.0
ABAP program
Recommendation:
See SA P Note 444124
Description:
This Statement was causing the second highest number of buffer gets in your system and contributes to 2% of the
total buffer gets in your database. It read 606 million buffer gets in the sql cache area. It retrieves 335 row per
execution.
Name Value
Total number of executions 1,666,824
No. of 'disk reads' 21,023
No. of "buffer gets" 606,309,292
No. of 'buffer gets' per execution 363.8
Number of processed rows 558,572,053
Processed rows for execution 335.1
No. of 'buffer gets' per row 1.1
CPU Time (microsec) 3,894,740,000
CPU Time/Exec 2,336.6
Elapsed Time (Microsec) 13,221,420,033
Elapsed Time/Exec 7,932.1
ABAP program
Recommendation:
Create a secondary index on table ZBOC with field EMP_EMPNO
Description:
Oracle patch 9.2.0.6 is not the newest patchset for oracle 9i and is not supported anymore. The extended support
maintenance terminated in July 2010.
Impact on Business:
This can cause database inconsistencies, higher your database activities and increase your business process
response time. This will impact your hardware resources such as hard drives, memory, and CPU.
Recommendation:
As explained in SAP Note 1330038 - Oracle sustaining support for Version 9.2 it is recommended to upgrade to
Oracle version 10.2.0.4.
If this is not possible due to your project deadlines, Implement Oracle patch 9.2.0.8 as per SAP Note 539921 -
Current patch set for Oracle 9.2.0, then Oracle 9.2.0.8 Merger fix as per SAP Note 992261 - Optimizer merge fix
for Oracle 9.2.0.8 and all patches recommended in SAP Note 938986 - Oracle Database 9.2: Patches for 9.2.0.
Description:
You have set up the temporary tablespace PSAPTEMP as dictionary managed tablespace with permanent
contents (DMTS/P). In case of design problems (e.g. small extent sizes) this can result in critical performance
problems.
Business impact:
Medium risk of performance degradations
Recommendation:
Create PSAPTEMP as locally managed tablespace with temporary contents (LMTS/T). See SAP Note 659946 for
more information.
Description:
The CBO statistics sample sizes of the following tables are significantly lower than the BRCONNECT default
sample sizes (SQL: “CBOStatistics_SmallStatisticSampleSizes.txt”):
Business impact:
Small risk of performance degradations
Recommendation:
Force a creation of new statistics for the mentioned tables:
Description:
Parallelism is activated on segment level for the following segments (SQL: “Segments_ParallelDegreeActive.txt”):
This parallelism impacts the CBO cost calculation and can lead to parallelized full table scans or index fast full
scans.
Business impact:
Medium risk of performance degradations
Recommendation:
Reset the segments to NOPARALLEL using:
Description:
No CBO statistics exist for the following tables (SQL: “CBOStatistics_TablesWithoutStatistics.txt”):
Most of the missing statistics are a direct consequence of outdated DBSTATC settings (ACTIV=I, ACTIV=R,
ACTIV=N).
Business impact:
Medium risk of performance degradations
Recommendation:
Initialize the statistics control table DBSTATC by executing the script dbstatc.sql attached to SAP Note 403704.
After the next statistics run all table should have CBO statistics.
Description:
No CBO statistics are created for the following index(es), although the related tables have CBO statistics (SQL:
“CBOStatistics_IndexesWithoutStatistics.txt”):
Recommendation:
Create new CBO statistics for the mentioned index(es):