9/29/2010

https://support.oracle.com/CSP/main/ar…

Tuning performance on eBusiness suite [ID 744143.1] Modified 13-MAY-2009 In this Document Purpose Last Review Date Instructions for the Reader Troubleshooting Details How to interpret AWR or Statspack report ? Commonly Observed Wait Events Best practices for tuning performance References Type TROUBLESHOOTING Status PUBLISHED

Applies to:
Oracle Application Object Library - Version: 11.5.10.2 to 12.0.4 Information in this document applies to any platform.

Purpose

This note describes how to investigate overall slow performace on eBusiness suite. In particular , we highlight the the most common wait events and how to interpret them in AWR/Statspack report. at the end we provide best practices on tuning performance on Database / Applications tier.

Last Review Date
October 20, 2008

Instructions for the Reader
A Troubleshooting Guide is provided to assist in debugging a specific issue. When possible, diagnostic tools are included in the document to assist in troubleshooting.

Troubleshooting Details
1.Ensure the initialization parameters for eBusiness suite are set correctly. It can be checked by using Note 174605.1 bde_chk_cbo.sq l .Then you verify the result with one of the following two notes : Note 216205.1 Database Initialization Parameters for Oracle Applications 11i Note 396009.1 Database Initialization Parameters for Oracle Applications Release 12 2.Make sure Gather Shema Stats is running on periodical basis. It can be checked with bde_last_analyzed.sql (Note:163208.1) which verifies stats by schema and index. Do not gather statistics excessively on entire schemas or the entire database such as nightly or weekly.
support.oracle.com/CSP/main/article?c… 1/6

1 PERFORMANCE TUNING USING 10g ADVISORS AND MANAGEABILITY . then either AWR or Statspack report is must checking.5 7.Unless you use the ‘No Invalidate’ option. then you need to go deeper in AWR and investigate SQL ordered by Reads .1 420.929 23.com/CSP/main/article?c… 2/6 .948.com/CSP/main/ar… Do not gather statistics on permanent objects during peak intervals. or for a particular table. Provided the STATISTICS_LEVEL is set to TYPICAL or ALL and the SGA_TARGET is set to a value other than "0" Oracle will control the memory pools which would otherwise be controlled by the following parameters: DB_CACHE_SIZE (default block size) SHARED_POOL_SIZE LARGE_POOL_SIZE JAVA_POOL_SIZE 4. When you start Investigating. To execute the corresponding FND_STATS procedures from SQL*Plus to gather CBO stats for one or all schemas. The SGA_TARGET parameter sets the amount of memory available to the SGA. You will see something like the following example in AWR or Statspack report : Top 5 Timed Events Event Class db file sequential read db file scattered read enq: TX . -For 9i Database users. you will see something like the following : support. Plans are not likely to change if the data distribution has not changed. The option 'GATHER_AUTO' can be used.All schemas SQL> exec fnd_stats. This puts Oracle in control of allocating memory within the SGA.One schema SQL> exec fnd_stats. Gathering statistics invalidates cursors . It is not supported. Do NOT USE the analyze or dbms_stats command directly. Gathering statistics requires dictionary and object level locks. <.Statspack Complete Reference How to interpret AWR or Statspack report ? In the below example we are trying to give you some guidelines to help you interpreting AWR or Statspack report.1 Title: FAQ.oracle.9/29/2010 https://support.The possible cause of db file sequential read is poorly tuned SQL.One table 3.327 Avg Wait(ms) % Total Call Time 56.If all the above settings are fine.oracle.893 8. and still you face slow performance.'MRP_FORECAST_DATES').gather_table_stats('MRP'. refer to Note 276103.431 2. we recommend to enable ASMM(Automatic shared memory management). Use only FND_STATS or the Gather Schema and Gather Table Statistics Concurrent Programs.992.For 10g Database users.gather_schema_statistics('MRP'). This parameter can be altered dynamically up to a maximum of the SGA_MAX_SIZE parameter value. <.2 19.634 535. -For10g Database users.697 31.gather_schema_statistics('ALL'). and results in sub-optimal plans. first thing you need to look at is the Top 5 timed events.9 Wait User I/O User I/O Application In the above case db file sequential read is the first wait event . use the following examples: # sqlplus apps/<apps_pwd> SQL> exec fnd_stats.405 32.row lock contention CPU time Waits Time(s) 11. refer to Note 94224. <. to gather statistics only on objects that have changes above the specified 'Modification Threshold' (percentage of DML compared to the number of rows of the table).348 10.

9.00 641.CHARGE_LINE_ID..62 11. The ses sion has issued an I/O reques t to read a series of contiguous clocks from a data file Into the other buffer cache and is waiting for the operation to complete. I/O SQL tuning db file scattered read Review AWR/Stats pack Top SQL ordered by gets and by reads .42 537.222.this will give you like a baseline in which you can compare the numbers when you get any performance issue again. monitor your performance and see if this is satisfied to you. If one of SQL statements doesn't belong to standard oracle apps modules like what we see above 'XXPOLCWB'. then this needs to be tuned by customer's development team. This typically happens during an index lookup or fetch from a table by ROWID when the required data block is not already in memory..LISTEN ( p_ag.089 8.. 8..9/29/2010 https://support. we collect the most commonly observed wait events and gives an of the overview diagnostics that could be useful to review next.16 520. This typically happens during full table scan or fast full index scan.081.oracle. In other cases you may see CPU time is the top wait event ..131 50 175.13 10598. PO . XCD.889.62 1761.oracle.683.78 1774.91 g0g2sj2by3p75 JDBC Thin Client BEGIN WF_EVENT. FND or WF then this needs to be investigated by team owns the product. Segments by Physical Reads.. Check the top SQL statements. After you tune SQL statement.01 12.089 9.com/CSP/main/ar… Physical Reads Executions Reads per Exec %Total CPU Time (s) Elapsed Time (s) SQL Id SQL Module SQL Text 9.63 9u72nudw7csmy XXPOLCWB SELECT 1 FROM XXPO_LC_CHARGE. Check that s ess ion for the tablespace I/O s tats and make s ure that avg reading is <20m for the top tablespace Buffer cache/DBWR Buffer busy waits the s ess ion wants to acces s Review s egment statis tics by support. In the table below.then go deeper and investigate SQL ordered by CPU Time so you need to treat it same way as the above example.891.217 1. We would recommend to have AWR or Statspack report generated when performance is good .com/CSP/main/article?c… 3/6 .142 1. If you find one SQL statement belong to one of oracle modules like GL.761.77 12. Commonly Observed Wait Events wait event db file sequential read Description Area Examine Review AWR/Stats pack Top SQL ordered by reads I/O SQL tuning The ses sion has issued an I/O reques t to read one block from a data file into buffer cache and is waiting for the operation to complete.66 73gnca4jdqv67 XXPOLCWB SELECT XCD.

etc So its too much parsing or not s haring s ql shared pool/latches Review the latch Statistics section of the AWR report to determine the hot latches Trace s ome waiter and holder ses sions to determine actual caus e & SQL statements Review AWR/Stats pack SQL ordered by Parse Calls Use the s tatements in Note 62143. so we need to rebuild the block from the undo segments In any case.163424. or 2.1:Understanding and Tuning the Shared Pool under 'Us eful SQL for looking at Shared Pool problems ' to identify the problematic s ql Enque waits (enq:) Depends on enq type: TX Transaction Lock Generally due to application or table s etup issues See Note 62354. TM DML enqueue Generally due to application issues.com/CSP/main/article?c… 4/6 . dynamic object creation/removal. suboptimal SQL which performs full table or full index scans.in memory but in an incompatible mode( (for example another s ess ion have updated the block but not commit ed). The following two articles describe referential integrity iss ues Locks Review the following sections : enqueue.1 How To Identify a Hot Block Within The Databas e Buffer Cache Library cache latch contention is often a symptom due to a legitimate problem such as non-sharable SQL.com/CSP/main/ar… a data block that is either: 1. particularly if foreign key constraints have not been indexed.oracle.. but another process has already iss ued an I/O reques t to read the block into memory.9/29/2010 https://support. there is a 'hot block' buffer busy waits Refer to Note.1 for example s cenarios which can cause TX lock waits.Currently not in memory. or what we call . means that at leas t 2 sessions are competing for the s ame blocks .oracle. row lock & ITL waits support.

1 on how to enable and tune Cancel query related parameters • To Disable Cancel Query : Set the Profile “FND: Enable Cancel Query” to ‘No’ For tuning JVM/OC4J Refer to Note 362851.1 Recommended Performance Patches for the Oracle E-Business Suite. There are several optimizer related patches that need to be applied on top of 10.XML. lots of sorting etc. Applications tier Deploy with socket mode for internal users: R12: Refer to Note 384241.0.2. Convert to the OATM Tablespace Model for the EBusiness Suite. Enable Forms Dead Client Detection Value specified in minutes : FORMS_TIMEOUT=10 • Terminates fwebmx processes for dead clients. s_forms_catchterm and s_forms_time for R12 users.9/29/2010 https://support.(2/3).oracle.1 How to run OATM migration utility. You will find them as s_f60catchterm and s_f60time parameters for 11i users. Disable Cancel Query • Cancel Query increases middle-tier CPU as well as DB CPU • Refer to MetaLink Note 138159.1:Guidelines to setup the JVM in Apps 11i Use one JVM per 2 CPUs • No more than one JVM/CPU • No more than 100 concurrent users per JVM support. Best practices for tuning performance Database tier Refer to note 244040.1 for more information about the ST enqueue.oracle.1 ST Space management enqueue Usually caused by too much space management occurring (Eg: small extent sizes .1 for an updated list.. See Note 404954. Refer to note 244040.1.) See Note 33567. • Enable Forms Abnormal Termination Handle Do not set FORMS_CATCHTERM The above two variables ( FORMS_TIMEOUT and FORMS_CATCHTERM ) can be changed from context file.1 TM locks and Foreign Key Cons traints Note 33453.com/CSP/main/article?c… 5/6 .com/CSP/main/ar… related to TM locking: Example TM locks During Referential Integrity Enforcement Note 38373.

1 .Creating a StatsPack performance report NOTE:153507.6 .PERFORMANCE TUNING USING 10g ADVISORS AND MANAGEABILITY FEATURES NOTE:34566.com/CSP/main/ar… References NOTE:1020008.SCRIPT TO RETURN MEDIUM DETAIL LOCKING INFO NOTE:122371.Statspack Complete Reference http://blogs.6 .1 .5.Reports Database Initialization Parameters related to an Apps 12 or 11i instance NOTE:216205.1 .1 .Guidelines to setup the JVM in Apps Ebusiness Suite 11i and R12 NOTE:396009.html Related Products Oracle E-Business Suite > Applications Technology > Application Object Library > Oracle Application Object Library Keywords CBO.1 .1 .oracle.Troubleshooting Oracle Applications Performance Issues NOTE:174605.1 . WAIT TIME Back to top Rate this document support.FAQ.10 NOTE:149124.com/CSP/main/article?c… 6/6 .oracle. PERFORMANCE TUNING.sql .bde_chk_cbo.Systemwide Tuning using STATSPACK Reports NOTE:276103.1 .WAITEVENT: "enqueue" Reference Note NOTE:362851. ORACLE APPS. SQL TUNING.1 .com/stevenChan/2008/10/tuning_all_layers_of_the_oracle_e-business_suite.9/29/2010 https://support.1 .Database Initialization Parameters for Oracle Applications Release 12 NOTE:94224.How To Gather Statistics For Oracle Applications Prior to 11.Oracle Applications and StatsPack NOTE:169935.SCRIPT: FULLY DECODED LOCKING NOTE:1020012.oracle.1 . INITIALIZATION PARAMETERS.Database Initialization Parameters for Oracle Applications Release 11i NOTE:228913.1 .

Sign up to vote on this title
UsefulNot useful