54
1 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Ebs performance tuning session feb 13 2013---Presented by Oracle

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Ebs performance tuning session  feb 13 2013---Presented by Oracle

1 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Page 2: Ebs performance tuning session  feb 13 2013---Presented by Oracle

2 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

E-Business Suite Performance Tuning (11.5.x/12.x.x)

Oracle Support is pleased to Welcome you to  the WebCast.The Session will commence shortly.

 Audio Conf Details: Audio Conference ID: # 89316108Passcode: 2013 India Toll-Free Dial-In Number: 0008001006550Operator Assisted International Dial-In Number: + 61285249600 Thanks for joining

Page 3: Ebs performance tuning session  feb 13 2013---Presented by Oracle

3 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

The following is intended to outline our general product direction.It is intended for information purposes only, and may not be

incorporated into any contract. It is not a commitment to deliver anymaterial, code, or functionality, and should not be relied upon in

makingpurchasing decisions. The development, release, and timing of anyfeatures or functionality described for Oracle’s products remains at

thesole discretion of Oracle.

Safe Harbor Statement

Page 4: Ebs performance tuning session  feb 13 2013---Presented by Oracle

4 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Performance Tuning E-Business Suite 11.5.x/12.x.x

Kandasamy NainamalaiSenior Principal Support Engineer - Applications Technology Group

Page 5: Ebs performance tuning session  feb 13 2013---Presented by Oracle

5 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Program Agenda

• Applications Architecture• Defining & Isolating issue• How to approach a performance issue• SQL Trace and TKPROF output• AWR/Statspack Report• Best Practices - Maximizing the performance• Announcement : Upcoming training “Concurrent Manager – Best

Practice”• Q&A

Page 6: Ebs performance tuning session  feb 13 2013---Presented by Oracle

6 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

<Insert Picture Here>

Oracle Applications Architecture

Page 7: Ebs performance tuning session  feb 13 2013---Presented by Oracle

7 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Oracle Applications Architecture

– 3 Tier architecture.– Distributed Computing & Internet Based Computing– Applications components are distributed among multiple levels,

or tiers, of machines.

• Database Tier• Application / Middle Tier• Desktop Tier

Page 8: Ebs performance tuning session  feb 13 2013---Presented by Oracle

8 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

3-Tier Architecture

Page 9: Ebs performance tuning session  feb 13 2013---Presented by Oracle

9 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

<Insert Picture Here>

Defining & Isolating issue

Page 10: Ebs performance tuning session  feb 13 2013---Presented by Oracle

10 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Defining & Isolating issueWhat is slow ?

1. Entire system is slow 2. Sub-system is slow

• Forms Based Applications• Web Based Applications• Concurrent Manager

3. Particular process is slow.

Page 11: Ebs performance tuning session  feb 13 2013---Presented by Oracle

11 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Defining & Isolating issue• When is slow

– Month end/yearend |– Peak hours | Concurrency, due to Load (or) H/W is not sized.– All the time |

• Was it working fine earlier?– All of sudden

• List out recent Changes– Patch, Gather Schema, New RAC-node/modules/users, Data load, OS, Network/DNS

– Deteriorated over a period• Who are all affected?

– All users– Specific to some module.

Page 12: Ebs performance tuning session  feb 13 2013---Presented by Oracle

12 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Defining & Isolating issue

• By this time, We should be in a position to isolate which component is the source of performance issue.

• Once we identify the component , then we need to investigate what could be the problem.

• How to go about doing that ?

Page 13: Ebs performance tuning session  feb 13 2013---Presented by Oracle

13 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

<Insert Picture Here>

How to approach a performance issue

Page 14: Ebs performance tuning session  feb 13 2013---Presented by Oracle

14 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

<Insert Picture Here>

Approaching performance issue Gathering Required information

Page 15: Ebs performance tuning session  feb 13 2013---Presented by Oracle

15 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Approaching performance issue

Desktop

– Though its a thin client; browser has jinitator as a plug-in. It uses Java for the presentation Layer.

– It requires resource at Desktop.– Check Enough resource CPU/RAM– Ensure no heavy applications running when accessing Applications.

Page 16: Ebs performance tuning session  feb 13 2013---Presented by Oracle

16 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Approaching performance issue

Concurrent Manger

– Concurrent jobs are CPU intensive. – Hence ensure enough resource CPU/RAM available on the DB tier.– Check RAC & PCP enabled. – Check concurrent manager definition for Sleep time & Cache are set correctly– Check resource intensive batch requests scheduled during peak hours. (Separate

manager for long running process with less number of managers )– Check there are short running requests waiting for longer time to process

(Resolution : specialized managers)– Check Fnd_concurrent_requests & Processes are purged & defragment regularly.– Avoid enabling an excessive number of standard or specialized managers. – Note 1057802.1 Best Practices for Performance for Concurrent Managers

Page 17: Ebs performance tuning session  feb 13 2013---Presented by Oracle

17 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Approaching performance issue

Forms Server– Memory Intensive. Ensure RAM & CPU– Check Sar & top ( check for spinning f60webmx) – Check FORMS60_CATCHTERM FORMS_RECORD_GROUP_MAX – Debug/FRD enabled– Check load balancing enabled and work effectively– Forms Patch set level with IO patches.– Servlet Vs Socket Mode

Page 18: Ebs performance tuning session  feb 13 2013---Presented by Oracle

18 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Approaching performance issue

Applications– How many concurrent users are there ?– What are all the modules used?

• Any resource intensive module is used.– When was gather schema statistics request run last ?– Diagnostics profiles are disabled as this will consume lots of resource– Sign on Audit is disabled if not needed.– Audit on other tables have been enabled (additional overhead)– Purging is done periodically.

Page 19: Ebs performance tuning session  feb 13 2013---Presented by Oracle

19 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Approaching performance issue

Database

– DB process are basically CPU Intensive– Check adequate resource (CPU/RAM) is available– Monitor Sar / vmstat output (first thing to do)

• Wio is high then need to check I/O setup & SQL queries• CPU Is high then check for CPU intensive queries.

– Monitor top OS process at OS level• Top (HP) / prstat (Sun) / ps aux (AIX)

– init.ora setup (Refer 216205.1 written by Dev). init.ora check – Version of the Database & performance patch applied.– AWR / Statspack

Page 20: Ebs performance tuning session  feb 13 2013---Presented by Oracle

20 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Approaching performance issue

Web Tier (OC4J, Apache & Jserv)

– Check JVM is hanging (due to Out of Memory issue).– Check Heap size and how many JVM thread are defined.– Disable statement/debug level logs when not needed.–  AOL/J Database Connection Pool Status (Doc ID 278868.1)– Review DBC file configuration– Review Apache/Jserv configuration

Network– It plays vital role if Applications accessed through VPN/WAN– Check for sufficient Bandwidth (ping host –l 1024 –t)– Latency should be as less as possible. Network Test ((Doc ID 556738.1)– Socket Vs Servlet

Page 21: Ebs performance tuning session  feb 13 2013---Presented by Oracle

21 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

<Insert Picture Here>

SQL Trace and TKPROF outputWhen specific process takes time

Page 22: Ebs performance tuning session  feb 13 2013---Presented by Oracle

22 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Different trace levels

– 4 possible levels:• Level 1 : Regular Trace / SQL Trace• Level 4 : Trace with Binds• Level 8 : Trace with Waits• Level 12 : Trace with Binds and Waits

– Level 8 is preferred option for analyzing performance issues as Level 12 is too expensive.

Page 23: Ebs performance tuning session  feb 13 2013---Presented by Oracle

23 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Create trace file - Form

– Trace menu availability: 11.5.7 or higher– Trace file name contains application User Name– Trace in Pre 11.5.7

• Identify the Session/Process Id then enable trace as below.• ORADEBUG SETOSPID &&pid• ORADEBUG EVENT 10046 TRACE NAME CONTEXT FOREVER, LEVEL 8• rem ORADEBUG EVENT 10046 TRACE NAME CONTEXT off

Page 24: Ebs performance tuning session  feb 13 2013---Presented by Oracle

24 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Page 25: Ebs performance tuning session  feb 13 2013---Presented by Oracle

25 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Concurrent Report Tracing

Report Level Vs Program level

– Set “Enable Trace” flag in the Concurrent Program Definition Form. (Program level)

– Enable trace for a specific request (SRS form –> Debug Options) (Request level)• The profile “Concurrent: Allow Debugging” should be set to “Yes.”• Recommended way to enable trace.

Page 26: Ebs performance tuning session  feb 13 2013---Presented by Oracle

26 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Enabling Trace at the program Level

Page 27: Ebs performance tuning session  feb 13 2013---Presented by Oracle

27 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Enabling Trace at the Request Level

Page 28: Ebs performance tuning session  feb 13 2013---Presented by Oracle

28 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Create a trace file – Self Service

After tuning JVM , if you need to take DB trace if web pages are slow. There are two options.

– Set Profile Option “FND: Diagnostics” to Yes

– Alternative: Profile Option called ‘Initialization SQL Statement - Custom’

– What to choose from the above two options ?

Page 29: Ebs performance tuning session  feb 13 2013---Presented by Oracle

29 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Page 30: Ebs performance tuning session  feb 13 2013---Presented by Oracle

30 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Create a trace file – Anywhere

– Profile Option : Initialization SQL Statement - Custom

– Can always be used, e.g.:• Concurrent Programs• Background processes like Workflow• ...

– Set on User level only– SQL code will execute for each new DB session which it initialized for an application user– SQL Statement for a level 12 trace:

begin fnd_ctl.fnd_sess_ctl ('','','TRUE','TRUE','LOG','ALTER SESSION SET tracefile_identifier=''MYTRACE'' EVENTS=''10046 TRACE NAME CONTEXT FOREVER, LEVEL 12'''); end;

Page 31: Ebs performance tuning session  feb 13 2013---Presented by Oracle

31 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Page 32: Ebs performance tuning session  feb 13 2013---Presented by Oracle

32 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

What is TKPROF ?

– Formatted report of SQL Trace file– Includes all SQL statements with statistical info– Allows to identify the performance problem by using different sort

methods– Invoke tkprof from Database Tier (10g/11g)

Page 33: Ebs performance tuning session  feb 13 2013---Presented by Oracle

33 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Getting TKPROF output

tkprof tracefile.trc output.txt sort=fchela,exeela,prsela

– Invoke tkprof from Database Tier– Upload raw trace and tkprof output– i.e. output.txt and tracefile.trc

Page 34: Ebs performance tuning session  feb 13 2013---Presented by Oracle

34 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

total time # rows

Page 35: Ebs performance tuning session  feb 13 2013---Presented by Oracle

35 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Identify culprit SQL statement

– Identify Culprit SQL statement is within TKPROF files– Most relevant is TKPROF – Sorted by elapsed time– In general the first SQL statement is the culprit

Tip: Always look for ‘large numbers’

Page 36: Ebs performance tuning session  feb 13 2013---Presented by Oracle

36 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Gather Enhanced Explain Plan

– Isolate the culprit SQL statement in a text file– Gather Enhanced Explain Plan using SQLTXPLAIN.SQL: Note.215187.1– Do NOT replace BIND variables with literals!– Creates a TXT report and trace file– Gathers information e.g.:

• tables and indexes used• last_analyzed dates

– Sample Query Tuning• Any full table scan is used. See any index can be used• Check Statistics collected for the tables involved• Temp, interface tables are purged and de fragmented• Any index which is not appropriate being used• Rebuild all index for the tables involved• Patch (for Higher version of code ) which resolves it

Page 37: Ebs performance tuning session  feb 13 2013---Presented by Oracle

37 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Page 38: Ebs performance tuning session  feb 13 2013---Presented by Oracle

38 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

<Insert Picture Here>

AWR/Statspack Report

Page 39: Ebs performance tuning session  feb 13 2013---Presented by Oracle

39 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

DEMO

• Demo AWR Report• If you see any DML is consuming more elapsed time. Get the explain plan using sql_id as below.you can run the following

commands to obtain the runtime statistics, as well as past plans recorded in AWR:

• SQL> SELECT * FROM table(dbms_xplan.display_cursor('&sql_id',null,'ALLSTATS')) ;• SQL> SELECT * FROM table(DBMS_XPLAN.DISPLAY_AWR('&sql_id',null,null,'ALL'));

Page 40: Ebs performance tuning session  feb 13 2013---Presented by Oracle

40 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

AWR/ Statspack Report

Top 5 Events sectionThis section shows the Top 5 timed events that must be considered to focus the tuning efforts.Top 5 Wait Events~~~~~~~~~~~~~~~~~ Wait % TotalEvent Waits Time (cs) Wt Time-------------------------------------------- ------------ ------------ -------db file sequential read 1,797,963 11,207,291 42.67db file scattered read 792,958 9,651,032 36.75buffer busy waits 158,725 1,554,054 5.92log file sync 31,317 994,507 3.79SQL*Net break/reset to client 15,489,369 497,062 1.89 -------------------------------------------------------------

Page 41: Ebs performance tuning session  feb 13 2013---Presented by Oracle

41 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

AWR / Statspack ReportHandling “db file scattered read” This wait happens when a session is waiting for a multi block IO to complete. This typically occurs during full table scans or index fast full scans. Oracle reads up to DB_FILE_MULTIBLOCK_READ_COUNT consecutive blocks at a time and scatters them into buffers in the buffer cache. • Check if there are any full table scans.In this case query tuning should be used to

optimize the SQL.• See if partitioning can be used to reduce the amount of data you need to scan.• Review SGA Database Buffer Cache

Page 42: Ebs performance tuning session  feb 13 2013---Presented by Oracle

42 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Best Practices for Maximizing the Performance

• Techstack upgrade (for Performance & High-Availability)Ø Upgrade Database to 11.2.0.3 (Note 1058763.1 & Doc ID 881505.1)Ø OracleAS 10g Release 3 Patch Set 5 (10.1.3.5.0) (Note 454811.1)Ø Forms bundle patch on10.1.2.3.0 (Doc ID 437878.1)

• Upgrade EBS to 12.1.3 (Note 269.1)Ø New functionalityØ Changes in business requirementsØ Release 12 provides upgrade path to Fusion ApplicationsØ Support - Premier Support for 11.5.10 ended in November 2010

• Apply Recommended Performance Patches (Doc ID 244040.1)

Page 43: Ebs performance tuning session  feb 13 2013---Presented by Oracle

43 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Best Practices for Maximizing the Performance• Regular Health check to be performed

• Database – Sufficient resource CPU/RAM available (20 - 30% free RAM/CPU is healthy)– Sar & Top process has to be examined (Store it ; can be used later to compare) – Ensure init.ora parameters are as per standard– AWR/Statspack report examined

• Forms Server– Sufficient resource RAM & SWAP available – Spinning of forms process

• set FORMS_RECORD_GROUP_MAX=10000 (Doc ID 745711.1)• Disable Cancel Query “FND: Enable Cancel Query” to ‘No’• Tweak FORMS60_CATCHTERM & FORMS_CATCHTERM

– Servlet Vs Socket Mode https://blogs.oracle.com/stevenChan/entry/which_is_better_forms_servlet_or_socket_mode• Note 384241.1 - Using Forms Socket Mode with Oracle E-Business Suite Release 12

Page 44: Ebs performance tuning session  feb 13 2013---Presented by Oracle

44 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Best Practices for Maximizing the Performance• Concurrent Manager

– Tune using Best Practice Concurrent Manager (Note 1057802.1)– Sufficient resource CPU/RAM available– Sleep time (30 secs) & Cache size (equal to number of process)– Specialized Manger are used if needed.– Purge / de-fragment Concurrent tables

• Applications– 11g Database , Apply Apps Patch (13443215 & 12830671 ) to speed to Gather schema Stats

• Gather schema statistics collected at regular interval with 10 – 40 %– Diagnostics profiles/FRD/Traces are disabled if not needed.– Hardware Sizing.– Sign-on Audit & Audit tables are disabled if not needed.– Purge & De-fragment interface/transaction tables periodically. (Note 752322.1)

• Purge portal is available in OAM that can be used to purge Apps.

Page 45: Ebs performance tuning session  feb 13 2013---Presented by Oracle

45 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Best Practices for Maximizing the Performance

• Network– Audit Network usage.– Tool to help identify the source of of the problem

• Oracle E-Business Suite Network Utilities: Best Practices [ID 556738.1]– Note 967992.1 - Symmetrical Network Acceleration with Oracle E-Business Suite Release 12 – Note 786582.1 - Performance Degradation in Forms in R12 When not Using Swan Color Scheme

• Web Tier (OC4J, Apache & Jserv)• Ensure heapsize is set properly (Doc ID 362851.1 )• Tune s_oacore_jvm_start_option (R12) (Doc ID 362851.1)

– $ grep s_oacore_jvm_start_option $CONTEXT_FILE (OS command to check it out)• Tune oacore_nprocs( R12)• Tune ApJServGroup OACoreGroup in jserv.properties (R11i )

Page 46: Ebs performance tuning session  feb 13 2013---Presented by Oracle

46 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Summary

• Monitor Resource (CPU/ I/O /RAM) Utilization.• Ensure Init.ora standards are met (Note 174605.1)• AWR Report for Database wide performance issue• Best Practice Concurrent Manager (Note 1057802.1)• Purge & Defragment interface/transaction tables. (Note 752322.1) • Gather Schema Statistics at regular Interval.• Apply FND_STATS  Patch (13443215 or 12830671 ) to speed to Gather

schema Stats (relevant for 11g Database).• Upgrade Applications & Techstack.

• Performance Tuning

Page 47: Ebs performance tuning session  feb 13 2013---Presented by Oracle

47 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

References

• A Holistic Approach to Performance Tuning Oracle Applications Systems (Doc ID 69565.1)

• Best Practices for Performance for Concurrent Managers in EBS (Doc ID 1057802.1)

• Reducing Your EBS Data Footprint using Archiving, Purging, and ILM (Doc ID 752322.1)

• bde_chk_cbo.sql - EBS initialization parameters - Healthcheck (Doc ID 174605.1)• Collecting Diagnostic Data for Performance Issues in Oracle E-Business Suite (Doc

ID 1121043.1)• Oracle E-Business Suite Recommended Performance Patches (Doc ID 244040.1)• https://blogs.oracle.com/stevenChan/entry/which_is_better_forms_servlet_or_socket_mode

Page 48: Ebs performance tuning session  feb 13 2013---Presented by Oracle

48 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

References

• JVM: Guidelines to setup the Java Virtual Machine in Apps Ebusiness Suite 11i and R12 (Doc ID 362851.1).

• Forms Process (FRMWEB) Consumes 100% of CPU in Oracle Applications R12 (Doc ID 745711.1)

Page 49: Ebs performance tuning session  feb 13 2013---Presented by Oracle

49 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

References

Upgrading E-Business Database • Upgrade Advisor: E-Business Suite (EBS) Upgrade from 11.5.10.2 to 12.1.3 (Doc

ID 269.1)• Interoperability Notes EBS R12 with Database 11gR2 (Doc ID 1058763.1)• Interoperability Notes Oracle EBS 11i with Oracle Database 11gR2 (11.2.0) (Doc ID

881505.1)• Upgrading to the Latest OracleAS 10g 10.1.3.x Patch Set in Oracle E-Business

Suite Release 12 (Doc ID 454811.1)• Upgrading OracleAS 10g Forms and Reports in Oracle E-Business Suite Release

12 (Doc ID 437878.1)

Page 50: Ebs performance tuning session  feb 13 2013---Presented by Oracle

50 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

You can visit us at

https://communities.oracle.com

Page 51: Ebs performance tuning session  feb 13 2013---Presented by Oracle

51 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Ø Training on “EBS Concurrent Manager Performance - Best Practices”Ø When : 13th March 2013 ( 11:30 to 1:00 pm)Ø Agenda

Ø Overview of Concurrent ManagerØ Enhancing Performance - Best Practices

Ø Tuning Concurrent Queue Parameters Ø Specialized Concurrent managerØ Output Post Processor – OPPØ Tuning PCP/RACØ Transaction Manager (TM)

Ø Common / Typical issues and resolutionØ Purging Concurrent recordsØ Running cmclean.sqlØ OPP and TM related issues.Ø Resolving concurrent requests

Ø Trouble-shooting Concurrent manager

Announcement : Upcoming Webcast in this series

Page 52: Ebs performance tuning session  feb 13 2013---Presented by Oracle

52 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Q&A

Page 53: Ebs performance tuning session  feb 13 2013---Presented by Oracle

53 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.

Page 54: Ebs performance tuning session  feb 13 2013---Presented by Oracle

54 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.