0% found this document useful (0 votes)
93 views

How Can Trace and Debug Be Turned On For A Concurrent Request (Doc ID 759389.1)

This document provides steps to enable SQL tracing and FND logging for concurrent requests in Oracle applications. The steps include setting a profile option to enable the debug options button, selecting the debug options when submitting the request, exporting the log data and trace files, and using tkprof to analyze the trace files.

Uploaded by

cubNguyen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views

How Can Trace and Debug Be Turned On For A Concurrent Request (Doc ID 759389.1)

This document provides steps to enable SQL tracing and FND logging for concurrent requests in Oracle applications. The steps include setting a profile option to enable the debug options button, selecting the debug options when submitting the request, exporting the log data and trace files, and using tkprof to analyze the trace files.

Uploaded by

cubNguyen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Document 759389.

1 1 of 10

How Can Trace and Debug Be Turned On For A Concurrent Request? (Doc ID 759389.1)

In this Document

Goal
Solution
References

APPLIES TO:

Oracle Trade Management - Version 11.5.10 to 12.1.3 [Release 11.5 to 12.1]


Oracle Service Contracts - Version 11.5.10 to 12.1.3 [Release 11.5 to 12.1]
Oracle Sales Online - Version 11.5.10.0 to 11.5.10.2 [Release 11.5.10]
Oracle iProcurement - Version 11.5.1 to 12.0.0 [Release 11.5 to 12]
Oracle Territory Management - Version 11.5.10.0 to 11.5.10.2 [Release 11.5.10]
Information in this document applies to any platform.
Verified for currency - 22-JUL-2013

GOAL

How can the SQL trace and FND Diagnostics be enabled when run a concurrent program?

SOLUTION

Attention: If using Release 12 - the following patch is required for the trace to work properly using the steps below. Patch 8743459

The following steps outline how to enable a sql level trace and FND logging when submitting a concurrent program.

These steps utilize SQL Developer.


SQL Developer can be downloaded from the following location for free and is recommended:
http://www.oracle.com/technology/software/products/sql/index.html

1. The following profile options will need to be set in order to enable the Debug Options button in the Concurrent Request Submission
form: Profile - Concurrent: Allow Debugging

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state... 2016-06-13 13:57


Document 759389.1 2 of 10

2. Next, proceed to the Concurrent Request Submission form to submit the concurrent program in question.
- Select the Single Request - and input all parameters

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state... 2016-06-13 13:57


Document 759389.1 3 of 10

Rather than submitting the request, choose the 'Debug Options' button now enabled in the submission form.

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state... 2016-06-13 13:57


Document 759389.1 4 of 10

Rather than submitting the request, choose the 'Debug Options' button now enabled in the submission form.

3. In the web based form that opens, choose the options as seen below to enable trace and FND logging.

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state... 2016-06-13 13:57


Document 759389.1 5 of 10

Upon selecting the options, choose the OK button off to the right.

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state... 2016-06-13 13:57


Document 759389.1 6 of 10

A new screen will appear showing that the rule was created, choose the OK button which closes the window.

4. Submit the request. Let it complete.

Pull the FND Logging using SQL Developer using the following SQL:

SELECT log.*
FROM fnd_log_messages log,
fnd_log_transaction_context con
WHERE con.transaction_id = &requestid
AND con.transaction_type = 'REQUEST'
AND con.transaction_context_id = log.transaction_context_id
ORDER BY log.log_sequence;

5. Export the data to an Excel Spreadsheet, using the export functionality within SQL Developer.

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state... 2016-06-13 13:57


Document 759389.1 7 of 10

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state... 2016-06-13 13:57


Document 759389.1 8 of 10

6. To locate the trace file, utilize the following sql to confirm the trace file location on the database server.

select name, value


from v$parameter
where name like 'user_dump_dest';

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state... 2016-06-13 13:57


Document 759389.1 9 of 10

Move to the directory given on the database server, and list the trace files based on the Concurrent Request ID which was submitted.

The trace filename will contain the USER_NAME which submitted the concurrent request along with the letters CR - as can be seen
above.

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state... 2016-06-13 13:57


Document 759389.1 10 of 10

Upload both the raw and tkprof trace files.


- tkprof <filename>.trc <filename>.out explain=<found username/password>
example: tkprof sox_ora_7095_CBAKER_CR3514556.trc 7095.out explain=<apps/apps>

PERFORMANCE ISSUES:
If the issue is for a performance problem, please use the following tkprof syntax so that the highest cost statement is seen first in the
tkprof output -

- tkprof <filename>.trc <filename>.out explain=apps/apps sys=no sort='prsela, exeela, fchela'


- example: tkprof sox_ora_7095_CBAKER_CR3514556.trc 7095.out explain=<apps/apps> sys=no sort='prsela, exeela, fchela'

Didn't find what you are looking for?

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state... 2016-06-13 13:57

You might also like