Vous êtes sur la page 1sur 9

Expertise in Oracle

Apps....
Ajikumar G
Oracle Applications e-Bbook
FRIDAY, 21 MAY 2010

How to trace a Concurrent Request and generate the TKPROF


file.
I hope this document will help you to find-out the long-running concurrent request from an oracle applications
11i/R12.
1. Generate Trace File

Enable Tracing For The Concurrent Manager Program


Select the Enable Trace Checkbox
Note : Checking the Trace Check box on the Concurrent Program gives an Event 10046 Level 8 trace. So even if the
trace is set for Binds and Waits on the Submission form once the concurrent program is encountered in the trace it
will reset to level 8 so no binds will be present in the trace after that point.
Turn On Tracing
Responsibility: System Administrator
Navigate: Profiles > System
Query Profile Option Concurrent: Allow Debugging
Set profile to Yes
Run Concurrent Program With Tracing Turned On
Logon to the Responsibility that runs the Concurrent Program

In the Submit Request Screen click on Debug Options (B)


Select the Checkbox for SQL Trace

If the Debug option is greyed out & not updateable set the profile Concurrent: Allow Debugging to Yes
2. Find Trace File Name
Run the following SQL to find out the Raw trace name and location for the concurrent program. The SQL prompts
the user for the request id
prompt
accept request prompt 'Please enter the concurrent request id for the appropriate concurrent program:'
prompt
column traceid format a8
column tracename format a80
column user_concurrent_program_name format a40
column execname format a15
column enable_trace format a12
set lines 80
set pages 22
set head off
SELECT 'Request id: '||request_id ,
'Trace id: '||oracle_Process_id,
'Trace Flag: '||req.enable_trace,
'Trace Name:
'||dest.value||'/'||lower(dbnm.value)||'_ora_'||oracle_process_id||'.trc',
'Prog. Name: '||prog.user_concurrent_program_name,
'File Name: '||execname.execution_file_name|| execname.subroutine_name ,
'Status : '||decode(phase_code,'R','Running')
||'-'||decode(status_code,'R','Normal'),
'SID Serial: '||ses.sid||','|| ses.serial#,
'Module : '||ses.module
from fnd_concurrent_requests req, v$session ses, v$process proc,
v$parameter dest, v$parameter dbnm, fnd_concurrent_programs_vl prog,
fnd_executables execname
where req.request_id = &request
and req.oracle_process_id=proc.spid(+)
and proc.addr = ses.paddr(+)

and dest.name='user_dump_dest'
and dbnm.name='db_name'
and req.concurrent_program_id = prog.concurrent_program_id
and req.program_application_id = prog.application_id
and prog.application_id = execname.application_id
and prog.executable_id=execname.executable_id;
To check the timeline of the request :
SELECT request_id, TO_CHAR( request_date, 'DD-MON-YYYY HH24:MI:SS' )
request_date, TO_CHAR( requested_start_date,'DD-MON-YYYY HH24:MI:SS' )
requested_start_date, TO_CHAR( actual_start_date, 'DD-MON-YYYY HH24:MI:SS' )
actual_start_date, TO_CHAR( actual_completion_date, 'DD-MON-YYYY HH24:MI:SS' )
actual_completion_date, TO_CHAR( sysdate, 'DD-MON-YYYY HH24:MI:SS' )
current_date, ROUND( ( NVL( actual_completion_date, sysdate ) - actual_start_date ) * 24, 2 ) duration
FROM fnd_concurrent_requests
WHERE request_id = TO_NUMBER('&p_request_id');
You may produce a complete report reference of the request ID using the Note:187504.1 bde_request.sql Process
and Session info for one Concurrent Request(11.5)
3. TKPROF Trace File
Once you have obtained the Raw trace file you need to format the file using TKPROF.
$tkprof raw_trace_file.trc output_file explain=apps/apps sort=(exeela,fchela) sys=no
Where:
raw_trace_file.trc: Name of trace file
output_file: tkprof out file
explain: This option provides the explain plan for the sql statements
sort: This provides the sort criteria in which all sql statements will be sorted. This will bring the bad sql at the top
of the outputfile.
sys=no: Disables sql statements issued by user SYS
Another example: To get (TKPROF) sorted by longest running queries first and limits the results to the "Top 10"
long running queries
$ tkprof sys=no explain=apps/ sort='(prsela,exeela,fchela)' print=10

Related Posts by Categories


11i

How to verify Oracle HTTP Server MLR Patchset 4393827 applied or not?

How to recreate the concurrent manager service for 11i on Windows Platforms

afcmgr.odf - ORA-00054: resource busy and acquire with NOWAIT specified

Relink of module "MSCXGCAL" failed

Forms Runtime Diagnostic - Steps to take FRD trace in 11.5.10 & R12

HOME button on 11i Navigator is not working

11i.ATG_PF.H.delta.7 (Patch:6241631) fails on icxwtab.odf

Installing JDK Version 6 with Oracle E-Business Suite 11i

New Apps 11i AutoConfig + Templates Rollup Patch U Now Available

appsborg2.zip does not exist in target after cloning

How to change and which Apps database users passwords can be changed in a Multi-Node Apps
Installation

Autoconfig Error on Appstier Tier: Context Value Management Failed

FRM-92130, FRM-92120 Registry.dat missing occurs while access the applicaitons

Relink of module "adpchnew" failed.

How to configure printers ins EBS 11i/R12

How to change the default passwords in Oracle Applications

FRM-92120 Registry.dat is missing error message with EBusiness Suite 11i

After application of Patch 9444996 the Forms session hangs

Enable/Disable the Forms Listener Servlet 11i

How to collect Apache and Jserv debugging information - 11i

How to compile Apps Schema (invalid objects) in 11i and R12

How to restrict single session per user in 11i and R12

Migrate from Jinitiator to Sun Java JRE plug-in for 11i.

Current ICM logfile and logfile, output file from concurrent request

How to start the Output Post Processing (OPP) in 11i


How to

How to create an Oracle VirtualBox host-only network adapter in Windows 7

How to check if the Workflow Mailer is Running?

FNDCPASS Fails With "ORA-01017" Error When Changing Password with 11G Database

How to Relink Oracle Database Software

How to verify Oracle HTTP Server MLR Patchset 4393827 applied or not?

How to find the versions of technology stack components?

How to Enable Automatic Compilation of JSP pages in R12

Forms Runtime Diagnostic - Steps to take FRD trace in 11.5.10 & R12

How to remove an OA Framework Personalization

Get the source file of any 'Pl/Sql Stored Procedure' on current program

How to enable and collect debug for HTTP, OC4J and OPMN - R12

How to change and which Apps database users passwords can be changed in a Multi-Node Apps
Installation

How to enable debugging for Concurrent Managers

Audit - responsibilities and Data in Oracle Applications

How to track HTML Page Access in Oracle Applications Release 12.0

How to sync refreshed database with already applied patches in Test Apps Tiers

How to Upgrade Oracle Application Server to 10.1.3.5 (10g R3 patchset 5)

How to Enable Tracing in Jinitiator

What role APPLSYSPUB user plays in oracle applications?

How to change the default passwords in Oracle Applications

After doing a clone all the concurrent managers do not start

How to bounce Apache, clear HTML cache and have updated Java code class active in R12

How to relink a single executable (binary file) using ADADMIN utility ?

Enable/Disable the Forms Listener Servlet 11i

How To Find Oracle Application File Versions.

R12

Error While Loading Shared Libraries: libdb.so.2 on RedHat Linux 5

Glimpses of E-Business Suite 12.2: WebLogic Server and Online Patching

Blank Page Accessing R12 - 'Missing class: _RF' in OACore application.log

R12 - How to enable Apache, OC4J and OPMN logging

Cloning Oracle Applications Release 12 with Rapid Clone

Configuring maintenance mode for R12.

How to remove an Oracle E-Business Suite Release 12.x Windows Environment

What's New with Applications Node Services in EBS R12?

R12 Certified with New Virtualization + Partitioning Technologies

Gather Schema Statistics fails with Ora-20001 errors after 11G database upgrade

Deploying a new forms EAR file in R12

Oracle E-Business Suite Release 12.1.3 RUP

Oracle E-Business Suite Release 12.1.3

R12 Login issue on target after cloning , fresh install or upgrade

How to Enable Automatic Compilation of JSP pages in R12

How to compile JSP manually in R12

Apply Release 12.1.3 - R12.ATG_PF.B.delta.3

RC-50013: FATAL: Instantiate driver did not complete successfully on DBTier

Upgrading R12 OracleAS 10g Release 3 (10.1.3) Patch Set 5 (10.1.3.5.0)

Oracle Reports Cache directory growing rapidly

Upgradation from 11.5.10.2 Oracle Apps to R12.1.1

Concurrent Manger status : System Hold, Fix Manager before resetting

EBS Release 12.1 RUP3 for AD/ATG/HRMS Released on My Oracle Suppport

Forms Runtime Diagnostic - Steps to take FRD trace in 11.5.10 & R12

New Apps 11i AutoConfig + Templates Rollup Patch U Now Available

Posted by Ajikumar G at 07:45


Labels: 11i, How to, R12

0 comments:
Post a Comment

Links to this post


Create a Link
Newer PostOlder PostHome
Subscribe to: Post Comments (Atom)
BUY FROM AMAZON.COM

Search Amazon.

Concurrent

Joe Duffy (Pa

$43.70

CLR via C#

Jeffrey Richte

$36.51

The Art of

Maurice Herli

$41.14

The JR Programmi ng Langua


Springer

C++ Netw

Douglas C. S

$38.42

Programm

David R. Bute

$44.98

Framewor

Krzysztof Cw

$43.94

Get Widget

Privacy

SEARCH SITE CONTENTS


Search

powered by
ABOUT ME

Ajikumar G
Dubai, United Arab Emirates
Certified Oracle E-Business Suite R12/11i Application Database Administrator with
over 10+ years experience with Linux Systems and with Oracle Databases.
View my complete profile
TOTAL PAGEVIEWS

116,687
SUBSCRIBE VIA EMAIL

Subscribe to Oracle Apps DBA by Email


SOME OF THE GOOD ARTICLES...

How to create an Oracle VirtualBox host-only network adapter in Windows 7


Error While Loading Shared Libraries: libdb.so.2 on RedHat Linux 5
Oracle Fusion Applications architecture
Glimpses of E-Business Suite 12.2: WebLogic Server and Online Patching
ORA-20011: Approximate NDV failed: ORA-00600: internal error code, arguments
BLOG ARCHIVE

July 2011 (2)


June 2011 (2)
February 2011 (2)
January 2011 (2)
December 2010 (9)
November 2010 (18)
October 2010 (2)
September 2010 (3)
August 2010 (15)
July 2010 (29)
June 2010 (38)
May 2010 (56)
April 2010 (12)
CATEGORIES

10g (5) 11g (13)

11i (55) 11i

architecture (5) Autoconfig (8) BI

installation (7)12i

Installation (7) AD

Utilities (11) ADI (2) Apps

Errors

Publisher (1)cloning (12) CM (2) configuration (4) EM (3)

and
Apps (1) How

Solutions (50) Excel (2)exporting data (1) Extended Support for EBS 11i (3)FND (4) Fusion
to (56) IE8 (1)JRE/Jinitiator (3) Linux (5) OBIEE-11g (8) Opatch (1)OPP (1) Patches (14) Printers (1) R12 (78)Scripts (7) Sess
ions (2) Startup/Shutdown (3) TOPs(3) Upgrades (8) User Management (1) Workflow (1)XML Publisher (2)

FOLLOWERS
YES.. YOU CAN!

Did you find here a solution to your problem?


Did you learn something new?
Maintaining this site is a time consuming task and resources are required to keep it growing.
You can help me out with a minimal effort...

POPULAR POSTS

How to bounce Apache, clear HTML cache and have updated


Java code class active in R12
In this post, sharing the difficulties of boucing Apache, clearing
HTML comparing with 11i. To clear HTML cache and bounce Apache
at R12 ...

How to find log files locations in 11i and R12


The following log files location could help you to find-out issues and
errors from your application 11i instance. Database Tier Logs are...

FRM-92130, FRM-92120 Registry.dat missing occurs while


access the applicaitons
When the user attempting to run the form : FRM-92120 REGISTRY
FILE: \ORACLE\FORMS\REGISTRY\REGISTRY.DAT IS MISSING
or FRM-92130 Registry...

Some useful notes - FND Concurrent Manager


When would one be required to bounce (stop and restart) the
Concurrent Manager? When you modify the Printer Driver you have
to restart t...

How to trace a Concurrent Request and generate the TKPROF file.

11G CERTIFICATION TRACK

I hope this document will help you to find-out the long-running


concurrent request from an oracle applications 11i/R12. 1. Generate
Trace F...

Forms Process (FRMWEB) Consumes 100% of CPU in Oracle


Applications R12
On Oracle Applications R12 when checking the top processes on the
OS level for the middle tier, you find that forms process (frmweb)
almost ...

Oracle E-Business Suite Release 12.1.3 RUP


I have successfully done upgradation of 12.1.3 RUP on my instance
without having any problems. The details of my instance details are
Instan...

Concurrent Manger status : System Hold, Fix Manager before


resetting
After upgradation from 11.5.10.2 to 12.1.1, some of the concurrent
managers are not coming up and showing the following error: The
actual...

Installation of 12.1.1 in Windows XP (Vision Demo instance)


Guidance or Training for Oracle Apps, OBIEE 11g, .NET and Java I
have installed Oracle E-Business Suite Release 12.1.1 VISION demo
instanc...

R12 - How to enable Apache, OC4J and OPMN logging


Whenever raise SR with Oracle support for R12 application logging
related issue, they will ask you to produce the logging details by
enablin...

Vous aimerez peut-être aussi