SlideShare a Scribd company logo
1 of 44
Download to read offline
1 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
2 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Performance Tuning Oracle E-Business Suite
Part 2: Concurrent Processing and Tracing
Andy Tremayne, Senior Architect & Uday Moogala, Senior Principal
Applications Performance Oracle Development
3 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
<Insert Picture Here>
Agenda
ā€¢ Tuning the Concurrent Manager
ā€¢ Tracing
4 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
ā€¢ 50% of performance tuning is in the business!
ā€“ Review long-running auto resubmitted jobs
ā€“ Review short/long-running jobs ā€“ selective parameters?
ā€“ Donā€™t purge jobs that the users then have to run again
ā€¢ Points to note
ā€“ More managers/workers != more throughput
ā€“ Avoid enabling an excessive number of managers/workers
ā€¢ New systems: a start point is 1-2 target process per CPU
ā€“ Balance with resources required by online activity
Introduction
5 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
ā€¢ Conflict Resolution Manager
ā€“ Carefully consider reducing the CRM sleep time to 5 ~ 10 secs
ā€¢ Purge issues
ā€“ 2GB limit on any output filesā€¦ esp. reports.log (Doc ID 842850.1)
ā€“ Set Concurrent: Force Local Output File Mode" to "Yesā€œ
ā€“ Patch 7530490 for R12 or 7834670 for 11i (Doc ID 822368.1)
ā€¢ High throughput: Keep out and log on fast disks
ā€“ Separate if throughput seems slow esp. on NFS Filers
ā€¢ Use IPC or bequeath if the CM and DB are co-located
General Points
6 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
ā€¢ Use queues in RAC
ā€“ System Profile: Concurrent:TM Transport Type: Pipe/Queue
ā€“ Failover
ā€“ Available in 11i (Doc ID 413636.1)
ā€“ For R12 (or 11i post Oracle 10.1) AQ is largely self-tuning
ā€¢ Single instance can still use pipes
ā€“ Some customers have reported better performance
ā€“ Description of how pipes work Doc ID 105133.1
Pipes vs Queue
7 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
ā€¢ Synchronous processing: PO Approvalsā€¦
ā€¢ PO, CRP, INV, AR, and OE all ship TMs
ā€“ Set the profile Concurrent:Wait for Available TM to 1 (second)
ā€“ Set the sleep time on the TMs to a high number (e.g. 10 minutes)
ā€“ Setting timeouts too low may return a TIMEOUT before completion
ā€¢ But the job then completes
ā€¢ Tracing: set 'Initialization SQL - Customā€˜
ā€“ fnd_transaction.synchronous(rpc_timeout,:2,:3,'PO','RCVTPO'ā€¦.
WAIT #420: nam='pipe get' ela= 2929821 handle address=29374777744 buffer
length=4096 timeout=172800 obj#=4292320 tim=4590000269038
Transaction Managers
8 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
Concurrent
Requests
At least 1 job
Time
9 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
ļŠ
Select for Update
Select for Update
Select for Update
Select for Update
Select for Update
Select for Update
ļŠ
ļŒ
ļŒ
ļŒ
Job Status
A
B
C
D
E
Job Run
Job Run
Job Run
Job Run
Select Runnable
Select Runnable
Select Runnable
Select Runnable
A
B
A
B
A
B
A
B
A B
A B
A B
A B
A
B
A
B
A
B
A
B
Lock?
Lock?
Lock?
Lock?
Running
ļƒ¼
X
X
X
Select for Update
Select for Update
Select for Update
ļŠ
ļŒ
ļŒ
ļƒ¼
Running
X
X
Update Set A Running
Update Set B Running
Running
Select Runnable
Select Runnable
C
D
C
D
C
D
C
D
C D
C D
ļŠ
ļŒ
Lock?
Lock?
Update Set C Running
ļƒ¼
X
Running
Select Runnable
Select for Update
Update Set A Complete
Running
ļƒ¼
Select for Update
Select Runnable
Complete
Update Set D Running
E
E
E ļŠ
Update Set E Running
Lock?
ļƒ¼
Running
Update Set D Complete
Complete
None
Worker 1
Worker 2
Worker 3
Worker 4
FND_CONCURRENT_REQUESTS
Sleep
Concurrent Manager
10 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
ā€¢ Avoid short sleep times
ā€“ *Enough for a couple of minutes of work
ā€“ **Set cache size to at least twice the number of workers
ā€¢ Specialization rules and work shifts
ā€“ Bind specific jobs to specific time windows
ā€“ Profile Option: Concurrent: Active Request Limit
ā€“ Specialize if there are too many jobs in a specific category
Workload Management Strategy
Fast
Medium
Slow
Long
Critical
Cache
Enough*
2xworkers
= 2xworkers**
= workers**
?
Sleep
15 - 20
60
60
60
30 or 60
Workers
Lots
A few
Not many
Very few
?
Avg. Duration
10s
5 mins
30 mins
2 hours +
N/A
11 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
How do you know your strategy needs review?
ā€¢ More workers = more accesses
ā€¢ 9301929 (fix 12.1.4) modifies fnd_concurrent_requests_u2
ā€“ Adds program_application_id and concurrent_program_id
12 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
ā€¢ 11.5.10
ā€“ 4 Node RAC: 40 CPUs per node
ā€“ 5,000 concurrent users
ā€“ In addition to ā€œstandard processingā€
ā€¢ 400,000 concurrent requests per day (24,000 per hour peak)
ā€¢ Typically run times 2 ~ 3 seconds
ā€¢ Using ā€œFast, Medium and Slowā€ strategy
ā€“ CPU running at 85% on all nodes and jobs were queuing
Implementation Example: The Problem
13 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
ā€¢ 4 Specialized Managers
ā€“ 15 Workers, Cache 30, Sleep15s
ā€“ 24,000 jobs/hr = 400 jobs/worker/hr = ~800~1200 secs/hr/worker
ā€¢ 4 Managers/15 Workers = 1 manager/60 workers
ā€“ Each scan caches 30 jobs = 60~90 secs work
ā€“ Divide that by 60 processes ā€“ avg. 1 sec work/worker
ā€“ Add back the other managers
ā€“ Scan 2+ million row table 2 ā€“ 3 times/second
Implementation Example: The Workload
14 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
ā€¢ Get enough work for a few minutes of work
ā€¢ Customer still had things to work out (in red)
ā€¢ CPU Improvement: 85% => 25% with no backlog
Implementation Example: The Strategy
Number Manager Workers Cache Sleep Description
1 Fast 30 100 15 Jobs < 2 mins
1 Intermediate 15 70 60 Jobs >2 <40 mins
1 Slow 2 20 180 Jobs > 40 mins
4 Very Fast 30 400 10 Fast specialized < 3secs
3 Standard managers 30 20 60 Mixed workload
3 Other specialized 5 50 60 Other Specialized jobs
20 Other (specialized) 50 ~ ~ Various
15 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
ā€¢ Goal: Direct some workload components to specific RAC
nodes to maximize scalability by minimizing inter-node
communication and synchronization work
ā€“ Put parent and all child processes on the same RAC node
ā€“ RAC/PCP Doc ID1359612.1
ā€¢ May cause an overload one node
ā€“ Decision: load balance or affinitize
ā€“ Can also happen on Failover
ā€“ Recommended: set the profile option ā€˜Concurrent: PCP Instance
Check ā€˜ to OFF
Affinity
16 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
Affinity
ā€¢ PCP: 1 ā€“ 1 correspondence of CM nodes to RAC nodes
ā€“ Set <s_cp_twotask> per CM node to tie to a specific RAC instance
ā€“ Define primary/secondary CM nodes for failover
ā€¢ Use dedicated queues
ā€“ Use specialization rules for programs with high scalability needs
ā€“ Group by application, program, user, request_type; examples:
ā€¢ OM, Receivables Super User, Create Accounting
ā€¢ WF background engines Node to ITEM_TYPE assignment
ā€¢ 12.1 define node affinity at the program level
ā€“ Concurrent | Program | Define ( See Doc ID 1129203.1)
17 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
ā€¢ Forms
ā€“ Set Profile Option "Database Instance" at App or Resp level
which can be tied to two_task value or to a service
ā€¢ Self Service
ā€“ Set Profile Options ā€œApp%Agentā€ to web tier hosts configured
for specific services ā€¦or
ā€“ Set Profile Option "Applications Database ID" to node specific
DBC file name
Extending Affinity to the Applications Tier
18 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
ā€¢ 16TB DB 4 Node Cluster, R12, Oracle 11.1.0.7
ā€¢ 15K concurrent peak users
Affinity Examples
Node 1
Order Management
Install Base
Shipping
Education
Contracts
Node 2
Payroll
HR (with self-service)
Benefits
OTL (self-service)
Node 3
Financials ā€“
GL, AP, PO, FA
Self-Service ā€“
iProc, Expenses
DBI
Node 4
Accounts Receivable
Project Accounting
Imaging
19 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
ā€¢ Large AR Telco system: Batch Affinity
ā€“ Node 1: AutoInvoice,Create Accounting-Invoices
ā€“ Node 2: AutoReceipt, Remittance, Create Accounting- Receipts
ā€¢ Order Management Benchmark: Batch Affinity
ā€“ Node 1: Order Management, Shipping, WF background- OE Item Type
ā€“ Node 2: Financials, Procurement, WF for PO item types
ā€¢ Incentive Comp system: No Affinity
ā€“ 4 node cluster, commodity HW; nodes too small to handle required OIC batch
workload in one node
ā€“ Scaled to customerā€™s needs with RAC to required throughputs, BUT ā€¦
ā€“ Needed custom partitioning, and several development and custom code
optimizations, index changes/drops and other tuning
Affinity Examples
20 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Eg) Network Traffic received
= 232.31*8k=1.9 Mb/sec
Concurrent Manager
ā€¢ Baseline & Monitor AWR
ā€“ Global Cache Load Profile: ā€œEstimated Interconnect Trafficā€
ā€“ Global Cache and Enqueue Services - Messaging Statistics
ā€¢ ā€œAverage message sent queue time on ksxpā€
ā€¢ IPC efficiency > 2ms = interconnect/CPU capacity/issue
Interconnect Messaging Performance ā€“ Instance Level
21 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
ā€¢ E-Business Suite Technology-Related Sessions at OpenWorld 2011
ā€¢ https://blogs.oracle.com/stevenChan/entry/e_business_suite_technology_related
Interconnect Messaging Performance ā€“ Instance Level
22 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
Interconnect Messaging Performance ā€“ Statement Level
23 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
ā€¢ Much of the functionality has now been built into 12.1
ā€¢ Procedure: How to get the REQUEST_ID into a shell script
Enhancing The Concurrent Manager (Doc ID 164085.1)
24 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Concurrent Manager
ā€¢ Program Level
ā€“ Not recommended
ā€“ Enable the trace/profiling option in the concurrent program definition
ā€¢ Request Level
ā€“ Ensure ā€œConcurrent: Allow Debuggingā€ is set to ā€˜Yesā€™
ā€“ Use the Debug Options button in the Request Submission Form
ā€¢ Tracing Documents
ā€“ 280391.1 How to Retrieve SID Information For a Running Request
Tracing
25 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Doc ID Document
1359612.1 Webcast 'E-Business Suite - RAC & Parallel Concurrent Processing
1367676.1 Webcast 'E-Business Suite - Concurrent Manager Performance
164085.1 Enhancing and Automating Oracle Applications Concurrent Processing
1057802.1 Best Practices for Performance for Concurrent Managers
1304305.1 E-Business Concurrent Processing Information Center
Concurrent Manager
Useful References
26 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
<Insert Picture Here>
<Insert Picture Here>
Agenda
ā€¢ Tuning the Concurrent Manager
ā€¢ Tracing
27 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Tracing
ā€¢ Good idea to create a user called ā€œTraceā€
ā€“ Collecting Diagnostic Data for Performance Issues in Oracle E-
Business Suite - Doc ID 1121043.1
ā€“ Enhanced Performance Diagnostics for Oracle E-Business Suite
Release 12.1.3 ā€“ Doc ID 1362660.1
ā€¢ For 11g apply tracing related patches
ā€“ 7522002, 8342329, 11687336, and 8328200
ā€¢ SQL Trace Level 8 (with waits)
ā€“ Raw trace and TKPROF
General Points
28 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Tracing
ā€¢ Forms: Help ļƒ  Diagnostics ļƒ Trace
ā€¢ OA HTML: Diagnostics ļƒ  Tracing
ā€¢ Catch-All
ā€“ Set the profile: ā€œInitialization SQL Statement - Custom"
BEGIN
FND_CTL.FND_SESS_CTL('','','TRUE','TRUE','','ALTER SESSION
SET TRACEFILE_IDENTIFIER=''TESTING''
MAX_DUMP_FILE_SIZE=unlimited STATISTICS_LEVEL = ALL
EVENTS=''10046 TRACE NAME CONTEXT FOREVER, LEVEL 8''');
END;
Catch-All
29 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Tracing
ā€¢ max_dump_file_size=unlimited
ā€“ Ensure there is sufficient disk space in the tracing directory
ā€¢ user_dump_dest or if diagnostic_dest is set in Oracle11g
ā€“ (diagnostic_dest)/diag/rdbms/(dbname)/(instname)/trace
ā€“ background_dump_dest for parallel slave processes
ā€¢ STATISTICS_LEVEL=ALL
Parameters
30 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Tracing
ā€¢ Run TKPROF from the correct Oracle home
ā€“ Use the sort options = fchela,exeela,prsela
ā€¢ Checks
ā€“ Check file contains runtime execution plans and row source stats
ā€“ Check the last line: ā€œelapsed seconds in trace fileā€œ
Plan Completeness
31 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Tracing
Rows Row Source Operation
------- ---------------------------------------------------
0 NESTED LOOPS (cr=5 pr=0 pw=0 time=0 us cost=4 size=71 card=1)
1 TABLE ACCESS BY INDEX ROWID FND_PROFILE_OPTIONS (cr=3 pr=0 pw=0 time=0 us cost=2 size=44 card=1)
1 INDEX UNIQUE SCAN FND_PROFILE_OPTIONS_U2 (cr=2 pr=0 pw=0 time=0 us cost=1 size=0 card=1)(object id 215619)
0 TABLE ACCESS BY INDEX ROWID FND_PROFILE_OPTION_VALUES (cr=2 pr=0 pw=0 time=0 us cost=2 size=27 card=1)
0 INDEX RANGE SCAN FND_PROFILE_OPTION_VALUES_U1 (cr=2 pr=0 pw=0 time=0 us cost=1 size=0 card=1)(object id 224902)
Rows Execution Plan
------- ---------------------------------------------------
0 SELECT STATEMENT MODE: ALL_ROWS
0 NESTED LOOPS
1 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID) OF 'FND_PROFILE_OPTIONS' (TABLE)
1 INDEX MODE: ANALYZED (UNIQUE SCAN) OF 'FND_PROFILE_OPTIONS_XX_1' (INDEX (UNIQUE))
0 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID) OF 'FND_PROFILE_OPTION_VALUES' (TABLE)
0 INDEX MODE: ANALYZED (RANGE SCAN) OF 'FND_PROFILE_OPTION_VALUES_U1' (INDEX (UNIQUE))
Plan Completeness
Explain option == ā€˜explain plan forā€™ on SQL*Plus
Actual runtime plan needed for diagnosis
ā€¢ New tracing option: plan_stat=adaptive (patch 8328200)
ā€“ Sampled statistics are dumped for every minute of DB time
32 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Tracing
ā€¢ Trace Analyzer (TRCA)
ā€“ Doc ID 224270.1
ā€“ Reads an Event 10046 SQL Trace file
ā€“ Provides a comprehensive report for performance analysis and
tuning
ā€¢ Interpreting Raw SQL_TRACE files Doc ID 39817.1
Event 10046
33 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Tracing
ā€¢ SQLTXPLAIN (aka SQLT)
ā€“ Maintained by Oracle Support - often requested
ā€“ Analyses why the execution plan was chosen
ā€¢ Always use the latest version
ā€“ Doc ID 215187.1
ā€¢ XTRACT report is preferred output
ā€“ Focuses on actual SQL execution runtime data
SQLT XTRACT for Poorly Performing SQL
34 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Tracing
SQLT XTRACT for Poorly Performing SQL
35 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Tracing
SQLT XTRACT - Completeness
With
Statistics_level = ALL
36 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Tracing
ā€¢ Doc ID 1362660.1/Patch 12544073
ā€¢ Trace a session
ā€“ Run Gather Diagnostic Data for Traced Sessions
ā€¢ AWR and ADDM Reports
ā€¢ ASH Report
ā€¢ Session Statistics
ā€¢ Trace Analyzer output, which includes SQLT output for top SQLs
ā€¢ Object statistics when a SQL statement is traced, but SQLT output is not chosen or not installed
ā€¢ SQLT output (requires SQLT tool ā€“ Doc ID 215187.1
ā€¢ Real-Time SQL Monitor Report when a SQL statement is traced (in Oracle Database 11g and higher)
ā€¢ SQL Detail Report when a SQL Statement is traced (in Oracle Database 11gR2 and higher)
ā€¢ Also use to capture information for individual SQL(s)
Enhanced Tracing in R12.1.3
37 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Tracing
ā€¢ AWR (Automatic Workload Repository) Report
ā€¢ ADDM Report
ā€¢ ASH (Active Session History) Report
ā€¢ Real-Time SQL Monitoring Report (11g+)
ā€“ Parallel queries and queries taking > 5 seconds
ā€¢ Operating system statistics
ā€“ OSW Document Doc ID 301137.1
ā€“ OSWg Document Doc ID 461053.1
System Level Performance Information
38 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Tracing
Real-Time SQL Monitoring Report
39 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Tracing
ā€¢ AWR is to an entire SYSTEM
ā€“ TRCA is to a PROCESS
ā€“ SQLT is to ONE SQL
ā€¢ ASH
ā€“ Session, Module, SQL etc
ā€¢ Process
ā€“ SQLTrace followed by TKPROF and/or TRCA
ā€¢ ONE SQL
ā€“ SQLT using XTRACT method
Takeaway
40 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Doc ID Document
1121043.1 Collecting Diagnostic Data for Performance Issues in Oracle E-Business Suite
1362660.1 Enhanced Performance Diagnostics for Oracle E-Business Suite Release 12.1.3
301137.1 OSW Document
461053.1 OSWg Document
215187.1 SQLTXPLAIN (SQLT)
224270.1 Trace Analyzer (TRCA)
39817.1 Interpreting Raw SQL_TRACE files
280391.1 How to Retrieve SID Information For a Running Request
Tracing
Useful References
41 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
PC and Network Performance
ā€¢ PC
ā€“ Windows 7 vs Windows XP
ā€“ Longevity of old clients
ā€¢ Network
ā€“ Real world network maps
ā€“ WAN emulation
ā€“ WAN and VSAT optimization
March 22nd
42 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
Q&A
43 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
44 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.

More Related Content

Similar to cmandtracing-1560359.pdf

C15LV: Ins and Outs of Concurrent Processing Configuration in Oracle e-Busine...
C15LV: Ins and Outs of Concurrent Processing Configuration in Oracle e-Busine...C15LV: Ins and Outs of Concurrent Processing Configuration in Oracle e-Busine...
C15LV: Ins and Outs of Concurrent Processing Configuration in Oracle e-Busine...Maris Elsins
Ā 
Database failover from client perspective
Database failover from client perspectiveDatabase failover from client perspective
Database failover from client perspectivePriit Piipuu
Ā 
CON5451_Brydon-OOW2014_Brydon_CON5451 (1).pptx
CON5451_Brydon-OOW2014_Brydon_CON5451 (1).pptxCON5451_Brydon-OOW2014_Brydon_CON5451 (1).pptx
CON5451_Brydon-OOW2014_Brydon_CON5451 (1).pptxSergioBruno21
Ā 
Velocity 2018 preetha appan final
Velocity 2018   preetha appan finalVelocity 2018   preetha appan final
Velocity 2018 preetha appan finalpreethaappan
Ā 
ebs-performance-tuning-part-1-470542.pdf
ebs-performance-tuning-part-1-470542.pdfebs-performance-tuning-part-1-470542.pdf
ebs-performance-tuning-part-1-470542.pdfElboulmaniMohamed
Ā 
Surviving the Crisis With the Help of Oracle Database Resource Manager
Surviving the Crisis With the Help of Oracle Database Resource ManagerSurviving the Crisis With the Help of Oracle Database Resource Manager
Surviving the Crisis With the Help of Oracle Database Resource ManagerMaris Elsins
Ā 
Con8780 nair rac_best_practices_final_without_12_2content
Con8780 nair rac_best_practices_final_without_12_2contentCon8780 nair rac_best_practices_final_without_12_2content
Con8780 nair rac_best_practices_final_without_12_2contentAnil Nair
Ā 
UKOUG APPS 14: Optimizing Performance for Oracle EPM Systems
UKOUG APPS 14: Optimizing Performance for Oracle EPM SystemsUKOUG APPS 14: Optimizing Performance for Oracle EPM Systems
UKOUG APPS 14: Optimizing Performance for Oracle EPM SystemsAlithya
Ā 
206510 p6 upgrade considerations
206510 p6 upgrade considerations206510 p6 upgrade considerations
206510 p6 upgrade considerationsp6academy
Ā 
OUG Harmony 2012 - Using SQL Plan Baselines for Performance Testing
OUG Harmony 2012 -  Using SQL Plan Baselines for Performance TestingOUG Harmony 2012 -  Using SQL Plan Baselines for Performance Testing
OUG Harmony 2012 - Using SQL Plan Baselines for Performance TestingMaris Elsins
Ā 
Slow things down to make them go faster [FOSDEM 2022]
Slow things down to make them go faster [FOSDEM 2022]Slow things down to make them go faster [FOSDEM 2022]
Slow things down to make them go faster [FOSDEM 2022]Jimmy Angelakos
Ā 
Database performance management
Database performance managementDatabase performance management
Database performance managementscottaver
Ā 
Adding Value in the Cloud with Performance Test
Adding Value in the Cloud with Performance TestAdding Value in the Cloud with Performance Test
Adding Value in the Cloud with Performance TestRodolfo Kohn
Ā 
IBM MQ Disaster Recovery
IBM MQ Disaster RecoveryIBM MQ Disaster Recovery
IBM MQ Disaster RecoveryMarkTaylorIBM
Ā 
Heart of the SwarmKit: Store, Topology & Object Model
Heart of the SwarmKit: Store, Topology & Object ModelHeart of the SwarmKit: Store, Topology & Object Model
Heart of the SwarmKit: Store, Topology & Object ModelDocker, Inc.
Ā 
Postgresql in Education
Postgresql in EducationPostgresql in Education
Postgresql in Educationdostatni
Ā 
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...Courtney Llamas
Ā 
Ebs performance tuning session feb 13 2013---Presented by Oracle
Ebs performance tuning session  feb 13 2013---Presented by OracleEbs performance tuning session  feb 13 2013---Presented by Oracle
Ebs performance tuning session feb 13 2013---Presented by OracleAkash Pramanik
Ā 

Similar to cmandtracing-1560359.pdf (20)

C15LV: Ins and Outs of Concurrent Processing Configuration in Oracle e-Busine...
C15LV: Ins and Outs of Concurrent Processing Configuration in Oracle e-Busine...C15LV: Ins and Outs of Concurrent Processing Configuration in Oracle e-Busine...
C15LV: Ins and Outs of Concurrent Processing Configuration in Oracle e-Busine...
Ā 
Database failover from client perspective
Database failover from client perspectiveDatabase failover from client perspective
Database failover from client perspective
Ā 
CON5451_Brydon-OOW2014_Brydon_CON5451 (1).pptx
CON5451_Brydon-OOW2014_Brydon_CON5451 (1).pptxCON5451_Brydon-OOW2014_Brydon_CON5451 (1).pptx
CON5451_Brydon-OOW2014_Brydon_CON5451 (1).pptx
Ā 
Apouc 2014-enterprise-manager-12c
Apouc 2014-enterprise-manager-12cApouc 2014-enterprise-manager-12c
Apouc 2014-enterprise-manager-12c
Ā 
Velocity 2018 preetha appan final
Velocity 2018   preetha appan finalVelocity 2018   preetha appan final
Velocity 2018 preetha appan final
Ā 
ebs-performance-tuning-part-1-470542.pdf
ebs-performance-tuning-part-1-470542.pdfebs-performance-tuning-part-1-470542.pdf
ebs-performance-tuning-part-1-470542.pdf
Ā 
Surviving the Crisis With the Help of Oracle Database Resource Manager
Surviving the Crisis With the Help of Oracle Database Resource ManagerSurviving the Crisis With the Help of Oracle Database Resource Manager
Surviving the Crisis With the Help of Oracle Database Resource Manager
Ā 
Con8780 nair rac_best_practices_final_without_12_2content
Con8780 nair rac_best_practices_final_without_12_2contentCon8780 nair rac_best_practices_final_without_12_2content
Con8780 nair rac_best_practices_final_without_12_2content
Ā 
UKOUG APPS 14: Optimizing Performance for Oracle EPM Systems
UKOUG APPS 14: Optimizing Performance for Oracle EPM SystemsUKOUG APPS 14: Optimizing Performance for Oracle EPM Systems
UKOUG APPS 14: Optimizing Performance for Oracle EPM Systems
Ā 
206510 p6 upgrade considerations
206510 p6 upgrade considerations206510 p6 upgrade considerations
206510 p6 upgrade considerations
Ā 
OUG Harmony 2012 - Using SQL Plan Baselines for Performance Testing
OUG Harmony 2012 -  Using SQL Plan Baselines for Performance TestingOUG Harmony 2012 -  Using SQL Plan Baselines for Performance Testing
OUG Harmony 2012 - Using SQL Plan Baselines for Performance Testing
Ā 
Slow things down to make them go faster [FOSDEM 2022]
Slow things down to make them go faster [FOSDEM 2022]Slow things down to make them go faster [FOSDEM 2022]
Slow things down to make them go faster [FOSDEM 2022]
Ā 
Database performance management
Database performance managementDatabase performance management
Database performance management
Ā 
Adding Value in the Cloud with Performance Test
Adding Value in the Cloud with Performance TestAdding Value in the Cloud with Performance Test
Adding Value in the Cloud with Performance Test
Ā 
IBM MQ Disaster Recovery
IBM MQ Disaster RecoveryIBM MQ Disaster Recovery
IBM MQ Disaster Recovery
Ā 
Heart of the SwarmKit: Store, Topology & Object Model
Heart of the SwarmKit: Store, Topology & Object ModelHeart of the SwarmKit: Store, Topology & Object Model
Heart of the SwarmKit: Store, Topology & Object Model
Ā 
Postgresql in Education
Postgresql in EducationPostgresql in Education
Postgresql in Education
Ā 
ADF Performance Monitor
ADF Performance MonitorADF Performance Monitor
ADF Performance Monitor
Ā 
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Ā 
Ebs performance tuning session feb 13 2013---Presented by Oracle
Ebs performance tuning session  feb 13 2013---Presented by OracleEbs performance tuning session  feb 13 2013---Presented by Oracle
Ebs performance tuning session feb 13 2013---Presented by Oracle
Ā 

Recently uploaded

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
Ā 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
Ā 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
Ā 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
Ā 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
Ā 
FULL ENJOY šŸ” 8264348440 šŸ” Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY šŸ” 8264348440 šŸ” Call Girls in Diplomatic Enclave | DelhiFULL ENJOY šŸ” 8264348440 šŸ” Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY šŸ” 8264348440 šŸ” Call Girls in Diplomatic Enclave | Delhisoniya singh
Ā 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
Ā 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
Ā 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
Ā 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
Ā 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
Ā 
Scaling API-first ā€“ The story of a global engineering organization
Scaling API-first ā€“ The story of a global engineering organizationScaling API-first ā€“ The story of a global engineering organization
Scaling API-first ā€“ The story of a global engineering organizationRadu Cotescu
Ā 
Swan(sea) Song ā€“ personal research during my six years at Swansea ... and bey...
Swan(sea) Song ā€“ personal research during my six years at Swansea ... and bey...Swan(sea) Song ā€“ personal research during my six years at Swansea ... and bey...
Swan(sea) Song ā€“ personal research during my six years at Swansea ... and bey...Alan Dix
Ā 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
Ā 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
Ā 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
Ā 
Integration and Automation in Practice: CI/CD in MuleĀ Integration and Automat...
Integration and Automation in Practice: CI/CD in MuleĀ Integration and Automat...Integration and Automation in Practice: CI/CD in MuleĀ Integration and Automat...
Integration and Automation in Practice: CI/CD in MuleĀ Integration and Automat...Patryk Bandurski
Ā 
Transcript: #StandardsGoals for 2024: Whatā€™s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: Whatā€™s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: Whatā€™s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: Whatā€™s new for BISAC - Tech Forum 2024BookNet Canada
Ā 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
Ā 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
Ā 

Recently uploaded (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Ā 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Ā 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
Ā 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Ā 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Ā 
FULL ENJOY šŸ” 8264348440 šŸ” Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY šŸ” 8264348440 šŸ” Call Girls in Diplomatic Enclave | DelhiFULL ENJOY šŸ” 8264348440 šŸ” Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY šŸ” 8264348440 šŸ” Call Girls in Diplomatic Enclave | Delhi
Ā 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Ā 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Ā 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
Ā 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Ā 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Ā 
Scaling API-first ā€“ The story of a global engineering organization
Scaling API-first ā€“ The story of a global engineering organizationScaling API-first ā€“ The story of a global engineering organization
Scaling API-first ā€“ The story of a global engineering organization
Ā 
Swan(sea) Song ā€“ personal research during my six years at Swansea ... and bey...
Swan(sea) Song ā€“ personal research during my six years at Swansea ... and bey...Swan(sea) Song ā€“ personal research during my six years at Swansea ... and bey...
Swan(sea) Song ā€“ personal research during my six years at Swansea ... and bey...
Ā 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
Ā 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Ā 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Ā 
Integration and Automation in Practice: CI/CD in MuleĀ Integration and Automat...
Integration and Automation in Practice: CI/CD in MuleĀ Integration and Automat...Integration and Automation in Practice: CI/CD in MuleĀ Integration and Automat...
Integration and Automation in Practice: CI/CD in MuleĀ Integration and Automat...
Ā 
Transcript: #StandardsGoals for 2024: Whatā€™s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: Whatā€™s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: Whatā€™s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: Whatā€™s new for BISAC - Tech Forum 2024
Ā 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Ā 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Ā 

cmandtracing-1560359.pdf

  • 1. 1 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
  • 2. 2 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Performance Tuning Oracle E-Business Suite Part 2: Concurrent Processing and Tracing Andy Tremayne, Senior Architect & Uday Moogala, Senior Principal Applications Performance Oracle Development
  • 3. 3 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. <Insert Picture Here> Agenda ā€¢ Tuning the Concurrent Manager ā€¢ Tracing
  • 4. 4 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager ā€¢ 50% of performance tuning is in the business! ā€“ Review long-running auto resubmitted jobs ā€“ Review short/long-running jobs ā€“ selective parameters? ā€“ Donā€™t purge jobs that the users then have to run again ā€¢ Points to note ā€“ More managers/workers != more throughput ā€“ Avoid enabling an excessive number of managers/workers ā€¢ New systems: a start point is 1-2 target process per CPU ā€“ Balance with resources required by online activity Introduction
  • 5. 5 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager ā€¢ Conflict Resolution Manager ā€“ Carefully consider reducing the CRM sleep time to 5 ~ 10 secs ā€¢ Purge issues ā€“ 2GB limit on any output filesā€¦ esp. reports.log (Doc ID 842850.1) ā€“ Set Concurrent: Force Local Output File Mode" to "Yesā€œ ā€“ Patch 7530490 for R12 or 7834670 for 11i (Doc ID 822368.1) ā€¢ High throughput: Keep out and log on fast disks ā€“ Separate if throughput seems slow esp. on NFS Filers ā€¢ Use IPC or bequeath if the CM and DB are co-located General Points
  • 6. 6 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager ā€¢ Use queues in RAC ā€“ System Profile: Concurrent:TM Transport Type: Pipe/Queue ā€“ Failover ā€“ Available in 11i (Doc ID 413636.1) ā€“ For R12 (or 11i post Oracle 10.1) AQ is largely self-tuning ā€¢ Single instance can still use pipes ā€“ Some customers have reported better performance ā€“ Description of how pipes work Doc ID 105133.1 Pipes vs Queue
  • 7. 7 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager ā€¢ Synchronous processing: PO Approvalsā€¦ ā€¢ PO, CRP, INV, AR, and OE all ship TMs ā€“ Set the profile Concurrent:Wait for Available TM to 1 (second) ā€“ Set the sleep time on the TMs to a high number (e.g. 10 minutes) ā€“ Setting timeouts too low may return a TIMEOUT before completion ā€¢ But the job then completes ā€¢ Tracing: set 'Initialization SQL - Customā€˜ ā€“ fnd_transaction.synchronous(rpc_timeout,:2,:3,'PO','RCVTPO'ā€¦. WAIT #420: nam='pipe get' ela= 2929821 handle address=29374777744 buffer length=4096 timeout=172800 obj#=4292320 tim=4590000269038 Transaction Managers
  • 8. 8 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager Concurrent Requests At least 1 job Time
  • 9. 9 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. ļŠ Select for Update Select for Update Select for Update Select for Update Select for Update Select for Update ļŠ ļŒ ļŒ ļŒ Job Status A B C D E Job Run Job Run Job Run Job Run Select Runnable Select Runnable Select Runnable Select Runnable A B A B A B A B A B A B A B A B A B A B A B A B Lock? Lock? Lock? Lock? Running ļƒ¼ X X X Select for Update Select for Update Select for Update ļŠ ļŒ ļŒ ļƒ¼ Running X X Update Set A Running Update Set B Running Running Select Runnable Select Runnable C D C D C D C D C D C D ļŠ ļŒ Lock? Lock? Update Set C Running ļƒ¼ X Running Select Runnable Select for Update Update Set A Complete Running ļƒ¼ Select for Update Select Runnable Complete Update Set D Running E E E ļŠ Update Set E Running Lock? ļƒ¼ Running Update Set D Complete Complete None Worker 1 Worker 2 Worker 3 Worker 4 FND_CONCURRENT_REQUESTS Sleep Concurrent Manager
  • 10. 10 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager ā€¢ Avoid short sleep times ā€“ *Enough for a couple of minutes of work ā€“ **Set cache size to at least twice the number of workers ā€¢ Specialization rules and work shifts ā€“ Bind specific jobs to specific time windows ā€“ Profile Option: Concurrent: Active Request Limit ā€“ Specialize if there are too many jobs in a specific category Workload Management Strategy Fast Medium Slow Long Critical Cache Enough* 2xworkers = 2xworkers** = workers** ? Sleep 15 - 20 60 60 60 30 or 60 Workers Lots A few Not many Very few ? Avg. Duration 10s 5 mins 30 mins 2 hours + N/A
  • 11. 11 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager How do you know your strategy needs review? ā€¢ More workers = more accesses ā€¢ 9301929 (fix 12.1.4) modifies fnd_concurrent_requests_u2 ā€“ Adds program_application_id and concurrent_program_id
  • 12. 12 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager ā€¢ 11.5.10 ā€“ 4 Node RAC: 40 CPUs per node ā€“ 5,000 concurrent users ā€“ In addition to ā€œstandard processingā€ ā€¢ 400,000 concurrent requests per day (24,000 per hour peak) ā€¢ Typically run times 2 ~ 3 seconds ā€¢ Using ā€œFast, Medium and Slowā€ strategy ā€“ CPU running at 85% on all nodes and jobs were queuing Implementation Example: The Problem
  • 13. 13 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager ā€¢ 4 Specialized Managers ā€“ 15 Workers, Cache 30, Sleep15s ā€“ 24,000 jobs/hr = 400 jobs/worker/hr = ~800~1200 secs/hr/worker ā€¢ 4 Managers/15 Workers = 1 manager/60 workers ā€“ Each scan caches 30 jobs = 60~90 secs work ā€“ Divide that by 60 processes ā€“ avg. 1 sec work/worker ā€“ Add back the other managers ā€“ Scan 2+ million row table 2 ā€“ 3 times/second Implementation Example: The Workload
  • 14. 14 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager ā€¢ Get enough work for a few minutes of work ā€¢ Customer still had things to work out (in red) ā€¢ CPU Improvement: 85% => 25% with no backlog Implementation Example: The Strategy Number Manager Workers Cache Sleep Description 1 Fast 30 100 15 Jobs < 2 mins 1 Intermediate 15 70 60 Jobs >2 <40 mins 1 Slow 2 20 180 Jobs > 40 mins 4 Very Fast 30 400 10 Fast specialized < 3secs 3 Standard managers 30 20 60 Mixed workload 3 Other specialized 5 50 60 Other Specialized jobs 20 Other (specialized) 50 ~ ~ Various
  • 15. 15 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager ā€¢ Goal: Direct some workload components to specific RAC nodes to maximize scalability by minimizing inter-node communication and synchronization work ā€“ Put parent and all child processes on the same RAC node ā€“ RAC/PCP Doc ID1359612.1 ā€¢ May cause an overload one node ā€“ Decision: load balance or affinitize ā€“ Can also happen on Failover ā€“ Recommended: set the profile option ā€˜Concurrent: PCP Instance Check ā€˜ to OFF Affinity
  • 16. 16 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager Affinity ā€¢ PCP: 1 ā€“ 1 correspondence of CM nodes to RAC nodes ā€“ Set <s_cp_twotask> per CM node to tie to a specific RAC instance ā€“ Define primary/secondary CM nodes for failover ā€¢ Use dedicated queues ā€“ Use specialization rules for programs with high scalability needs ā€“ Group by application, program, user, request_type; examples: ā€¢ OM, Receivables Super User, Create Accounting ā€¢ WF background engines Node to ITEM_TYPE assignment ā€¢ 12.1 define node affinity at the program level ā€“ Concurrent | Program | Define ( See Doc ID 1129203.1)
  • 17. 17 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager ā€¢ Forms ā€“ Set Profile Option "Database Instance" at App or Resp level which can be tied to two_task value or to a service ā€¢ Self Service ā€“ Set Profile Options ā€œApp%Agentā€ to web tier hosts configured for specific services ā€¦or ā€“ Set Profile Option "Applications Database ID" to node specific DBC file name Extending Affinity to the Applications Tier
  • 18. 18 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager ā€¢ 16TB DB 4 Node Cluster, R12, Oracle 11.1.0.7 ā€¢ 15K concurrent peak users Affinity Examples Node 1 Order Management Install Base Shipping Education Contracts Node 2 Payroll HR (with self-service) Benefits OTL (self-service) Node 3 Financials ā€“ GL, AP, PO, FA Self-Service ā€“ iProc, Expenses DBI Node 4 Accounts Receivable Project Accounting Imaging
  • 19. 19 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager ā€¢ Large AR Telco system: Batch Affinity ā€“ Node 1: AutoInvoice,Create Accounting-Invoices ā€“ Node 2: AutoReceipt, Remittance, Create Accounting- Receipts ā€¢ Order Management Benchmark: Batch Affinity ā€“ Node 1: Order Management, Shipping, WF background- OE Item Type ā€“ Node 2: Financials, Procurement, WF for PO item types ā€¢ Incentive Comp system: No Affinity ā€“ 4 node cluster, commodity HW; nodes too small to handle required OIC batch workload in one node ā€“ Scaled to customerā€™s needs with RAC to required throughputs, BUT ā€¦ ā€“ Needed custom partitioning, and several development and custom code optimizations, index changes/drops and other tuning Affinity Examples
  • 20. 20 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Eg) Network Traffic received = 232.31*8k=1.9 Mb/sec Concurrent Manager ā€¢ Baseline & Monitor AWR ā€“ Global Cache Load Profile: ā€œEstimated Interconnect Trafficā€ ā€“ Global Cache and Enqueue Services - Messaging Statistics ā€¢ ā€œAverage message sent queue time on ksxpā€ ā€¢ IPC efficiency > 2ms = interconnect/CPU capacity/issue Interconnect Messaging Performance ā€“ Instance Level
  • 21. 21 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager ā€¢ E-Business Suite Technology-Related Sessions at OpenWorld 2011 ā€¢ https://blogs.oracle.com/stevenChan/entry/e_business_suite_technology_related Interconnect Messaging Performance ā€“ Instance Level
  • 22. 22 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager Interconnect Messaging Performance ā€“ Statement Level
  • 23. 23 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager ā€¢ Much of the functionality has now been built into 12.1 ā€¢ Procedure: How to get the REQUEST_ID into a shell script Enhancing The Concurrent Manager (Doc ID 164085.1)
  • 24. 24 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Concurrent Manager ā€¢ Program Level ā€“ Not recommended ā€“ Enable the trace/profiling option in the concurrent program definition ā€¢ Request Level ā€“ Ensure ā€œConcurrent: Allow Debuggingā€ is set to ā€˜Yesā€™ ā€“ Use the Debug Options button in the Request Submission Form ā€¢ Tracing Documents ā€“ 280391.1 How to Retrieve SID Information For a Running Request Tracing
  • 25. 25 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Doc ID Document 1359612.1 Webcast 'E-Business Suite - RAC & Parallel Concurrent Processing 1367676.1 Webcast 'E-Business Suite - Concurrent Manager Performance 164085.1 Enhancing and Automating Oracle Applications Concurrent Processing 1057802.1 Best Practices for Performance for Concurrent Managers 1304305.1 E-Business Concurrent Processing Information Center Concurrent Manager Useful References
  • 26. 26 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. <Insert Picture Here> <Insert Picture Here> Agenda ā€¢ Tuning the Concurrent Manager ā€¢ Tracing
  • 27. 27 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Tracing ā€¢ Good idea to create a user called ā€œTraceā€ ā€“ Collecting Diagnostic Data for Performance Issues in Oracle E- Business Suite - Doc ID 1121043.1 ā€“ Enhanced Performance Diagnostics for Oracle E-Business Suite Release 12.1.3 ā€“ Doc ID 1362660.1 ā€¢ For 11g apply tracing related patches ā€“ 7522002, 8342329, 11687336, and 8328200 ā€¢ SQL Trace Level 8 (with waits) ā€“ Raw trace and TKPROF General Points
  • 28. 28 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Tracing ā€¢ Forms: Help ļƒ  Diagnostics ļƒ Trace ā€¢ OA HTML: Diagnostics ļƒ  Tracing ā€¢ Catch-All ā€“ Set the profile: ā€œInitialization SQL Statement - Custom" BEGIN FND_CTL.FND_SESS_CTL('','','TRUE','TRUE','','ALTER SESSION SET TRACEFILE_IDENTIFIER=''TESTING'' MAX_DUMP_FILE_SIZE=unlimited STATISTICS_LEVEL = ALL EVENTS=''10046 TRACE NAME CONTEXT FOREVER, LEVEL 8'''); END; Catch-All
  • 29. 29 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Tracing ā€¢ max_dump_file_size=unlimited ā€“ Ensure there is sufficient disk space in the tracing directory ā€¢ user_dump_dest or if diagnostic_dest is set in Oracle11g ā€“ (diagnostic_dest)/diag/rdbms/(dbname)/(instname)/trace ā€“ background_dump_dest for parallel slave processes ā€¢ STATISTICS_LEVEL=ALL Parameters
  • 30. 30 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Tracing ā€¢ Run TKPROF from the correct Oracle home ā€“ Use the sort options = fchela,exeela,prsela ā€¢ Checks ā€“ Check file contains runtime execution plans and row source stats ā€“ Check the last line: ā€œelapsed seconds in trace fileā€œ Plan Completeness
  • 31. 31 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Tracing Rows Row Source Operation ------- --------------------------------------------------- 0 NESTED LOOPS (cr=5 pr=0 pw=0 time=0 us cost=4 size=71 card=1) 1 TABLE ACCESS BY INDEX ROWID FND_PROFILE_OPTIONS (cr=3 pr=0 pw=0 time=0 us cost=2 size=44 card=1) 1 INDEX UNIQUE SCAN FND_PROFILE_OPTIONS_U2 (cr=2 pr=0 pw=0 time=0 us cost=1 size=0 card=1)(object id 215619) 0 TABLE ACCESS BY INDEX ROWID FND_PROFILE_OPTION_VALUES (cr=2 pr=0 pw=0 time=0 us cost=2 size=27 card=1) 0 INDEX RANGE SCAN FND_PROFILE_OPTION_VALUES_U1 (cr=2 pr=0 pw=0 time=0 us cost=1 size=0 card=1)(object id 224902) Rows Execution Plan ------- --------------------------------------------------- 0 SELECT STATEMENT MODE: ALL_ROWS 0 NESTED LOOPS 1 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID) OF 'FND_PROFILE_OPTIONS' (TABLE) 1 INDEX MODE: ANALYZED (UNIQUE SCAN) OF 'FND_PROFILE_OPTIONS_XX_1' (INDEX (UNIQUE)) 0 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID) OF 'FND_PROFILE_OPTION_VALUES' (TABLE) 0 INDEX MODE: ANALYZED (RANGE SCAN) OF 'FND_PROFILE_OPTION_VALUES_U1' (INDEX (UNIQUE)) Plan Completeness Explain option == ā€˜explain plan forā€™ on SQL*Plus Actual runtime plan needed for diagnosis ā€¢ New tracing option: plan_stat=adaptive (patch 8328200) ā€“ Sampled statistics are dumped for every minute of DB time
  • 32. 32 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Tracing ā€¢ Trace Analyzer (TRCA) ā€“ Doc ID 224270.1 ā€“ Reads an Event 10046 SQL Trace file ā€“ Provides a comprehensive report for performance analysis and tuning ā€¢ Interpreting Raw SQL_TRACE files Doc ID 39817.1 Event 10046
  • 33. 33 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Tracing ā€¢ SQLTXPLAIN (aka SQLT) ā€“ Maintained by Oracle Support - often requested ā€“ Analyses why the execution plan was chosen ā€¢ Always use the latest version ā€“ Doc ID 215187.1 ā€¢ XTRACT report is preferred output ā€“ Focuses on actual SQL execution runtime data SQLT XTRACT for Poorly Performing SQL
  • 34. 34 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Tracing SQLT XTRACT for Poorly Performing SQL
  • 35. 35 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Tracing SQLT XTRACT - Completeness With Statistics_level = ALL
  • 36. 36 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Tracing ā€¢ Doc ID 1362660.1/Patch 12544073 ā€¢ Trace a session ā€“ Run Gather Diagnostic Data for Traced Sessions ā€¢ AWR and ADDM Reports ā€¢ ASH Report ā€¢ Session Statistics ā€¢ Trace Analyzer output, which includes SQLT output for top SQLs ā€¢ Object statistics when a SQL statement is traced, but SQLT output is not chosen or not installed ā€¢ SQLT output (requires SQLT tool ā€“ Doc ID 215187.1 ā€¢ Real-Time SQL Monitor Report when a SQL statement is traced (in Oracle Database 11g and higher) ā€¢ SQL Detail Report when a SQL Statement is traced (in Oracle Database 11gR2 and higher) ā€¢ Also use to capture information for individual SQL(s) Enhanced Tracing in R12.1.3
  • 37. 37 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Tracing ā€¢ AWR (Automatic Workload Repository) Report ā€¢ ADDM Report ā€¢ ASH (Active Session History) Report ā€¢ Real-Time SQL Monitoring Report (11g+) ā€“ Parallel queries and queries taking > 5 seconds ā€¢ Operating system statistics ā€“ OSW Document Doc ID 301137.1 ā€“ OSWg Document Doc ID 461053.1 System Level Performance Information
  • 38. 38 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Tracing Real-Time SQL Monitoring Report
  • 39. 39 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Tracing ā€¢ AWR is to an entire SYSTEM ā€“ TRCA is to a PROCESS ā€“ SQLT is to ONE SQL ā€¢ ASH ā€“ Session, Module, SQL etc ā€¢ Process ā€“ SQLTrace followed by TKPROF and/or TRCA ā€¢ ONE SQL ā€“ SQLT using XTRACT method Takeaway
  • 40. 40 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Doc ID Document 1121043.1 Collecting Diagnostic Data for Performance Issues in Oracle E-Business Suite 1362660.1 Enhanced Performance Diagnostics for Oracle E-Business Suite Release 12.1.3 301137.1 OSW Document 461053.1 OSWg Document 215187.1 SQLTXPLAIN (SQLT) 224270.1 Trace Analyzer (TRCA) 39817.1 Interpreting Raw SQL_TRACE files 280391.1 How to Retrieve SID Information For a Running Request Tracing Useful References
  • 41. 41 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. PC and Network Performance ā€¢ PC ā€“ Windows 7 vs Windows XP ā€“ Longevity of old clients ā€¢ Network ā€“ Real world network maps ā€“ WAN emulation ā€“ WAN and VSAT optimization March 22nd
  • 42. 42 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved. Q&A
  • 43. 43 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.
  • 44. 44 Copyright Ā© 2012, Oracle and/or its affiliates. All rights reserved.