0% found this document useful (0 votes)
78 views2 pages

Debug Log Setup for PO Approval

The document outlines the steps to enable debugging for the Purchase Order (PO) approval process and concurrent requests in Oracle. It includes setting specific profiles, running SQL queries to obtain log sequences, and uploading the outputs for further analysis. Additionally, it provides instructions on enabling trace for concurrent programs to capture SQL execution details for troubleshooting.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views2 pages

Debug Log Setup for PO Approval

The document outlines the steps to enable debugging for the Purchase Order (PO) approval process and concurrent requests in Oracle. It includes setting specific profiles, running SQL queries to obtain log sequences, and uploading the outputs for further analysis. Additionally, it provides instructions on enabling trace for concurrent programs to capture SQL execution details for troubleshooting.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Please do the following after reducing the amount in 1 line and saving the PO before submitting for

approval.
---------------------------------------------------
Please take debug logs for the approval process as follows:

1) Set profiles below for user that will Submit PO for approval
a) FND: Debug Log Enabled = Yes
b) FND: Debug Log Level = Statement
c) FND: Debug Log Module = %
d) PO: Set Debug Workflow ON = Yes

2) Run the following sql to get the max(log_sequence): << this is needed for FND debug log
SQL> select max(log_sequence) from fnd_log_messages;

3) Execute the following sql query to get max(execution_sequence): << this is needed for PO
workflow debug log
SQL> SELECT Max(execution_sequence) FROM po_wf_debug;

4) Submit #188 for approval and run workflow background process

Steps to get FND log messages:


------------------------------
5) Run the following sql to get the FND log messages :

select module, message_text


from fnd_log_messages
where log_sequence > '&output_step2';

Steps to get the PO Workflow debug messages:


--------------------------------------------------
6) Run the following sql to get the po_wf_debug log messages :

SELECT * FROM po_wf_debug WHERE execution_sequence > '&output_step3';

--------------------------------------------------
Upload outputs of step 5 and step 6 on the SR . Then you can reset the profiles back.

Concurrent request Debug

You can also enable trace for a concurrent program in Oracle by following these steps:

1. Ensure the profile Concurrent: Allow Debugging is enabled


2. Navigate to View > Requests > Submit request

3. Enter the request name

4. Select Debug Options

5. Set the trace values and press Ok

FND: Debug Log Enabled YES


FND: Debug Log Filename NULL
FND: Debug Log Level STATEMENT
FND: Debug Log Module %

Sample setting to debug ONLY Receivables:

FND: Debug Log Enabled YES


FND: Debug Log Filename NULL
FND: Debug Log Level STATEMENT
FND: Debug Log Module PN%

You can get more options and dynamically enable trace during a program or report submission. A
trace file may be required while debugging an issue to show the SQL run and other important details
about a program or report. A common way to enable trace is via system administration setup with
the "Enable Trace" Checkbox on the concurrent program setup under System Admin > Concurrent >
Program > Define.

Common questions

Powered by AI

Not setting appropriate modules when enabling debug logs in an Oracle system can lead to a deluge of irrelevant data being captured, making it difficult to isolate effective information for issue resolution. This increases the time and effort needed to identify root causes of issues, delays problem-solving, and can cause performance issues due to extensive logging. Proper module settings narrow down the logging to relevant components only, enhancing focus and efficiency in debugging efforts .

To prepare debug logs for a purchase order approval process in Oracle, you should set the necessary profile options for the user submitting the PO for approval: FND: Debug Log Enabled = Yes, FND: Debug Log Level = Statement, FND: Debug Log Module = %, and PO: Set Debug Workflow ON = Yes . Then, retrieve the max(log_sequence) using SQL and the max(execution_sequence) for PO workflow debug logs. After that, submit PO #188 for approval and run the workflow background process . Finally, run SQL queries to extract FND log messages that exceed the retrieved log sequence and PO workflow debug messages exceeding the execution sequence, and upload these outputs to the SR .

The suggested process involves first enabling FND debug options for the user, then obtaining the maximum log and execution sequence numbers before PO submission, followed by executing the PO submission and running relevant SQL queries to obtain logs filed post-execution. Each step is critical as enabling debug options ensures logs are generated, obtaining current max sequences allows filtering for new log entries, and executing SQL queries retrieves only relevant log data post-submission for issue analysis .

Concurrent program debugging in Oracle can be dynamically adjusted during runtime by enabling or modifying debug and trace parameters through system administration settings, such as the 'Enable Trace' Checkbox. This ability allows for adaptive diagnostics without needing to halt or restart processes, facilitating real-time error identification and resolution. It enhances flexibility and responsiveness in handling unexpected issues, allowing administrators to tailor the exact scope and detail of logging as problems arise .

Using SQL queries post-purchase order approval helps in precisely targeting the log messages that are generated in response to particular processes or actions. This approach ensures that the information retrieved is directly relevant to the specific instance of PO submission being investigated, enhancing the efficiency and relevance of the debugging process. It narrows down results to new entries, which are the focal point of current debugging efforts .

Enabling debug on a concurrent program in Oracle is beneficial for diagnosing issues because it provides a trace file that records the SQL run and other critical details about the program or report execution. This detailed log aids in pinpointing the source of errors or performance bottlenecks. Options available for enabling this include setting the profile 'Concurrent: Allow Debugging' to Yes, navigating to View > Requests > Submit request, entering the request name, selecting Debug Options, and setting the trace values . Additional options include dynamically enabling trace via the system administration setup with the 'Enable Trace' Checkbox .

Setting FND debug options with 'Yes', a log level of 'Statement', and a module of '%' allows Oracle to capture detailed log data per individual database statement execution. This provides comprehensive insights into the operations within Oracle modules, facilitating the identification of exact points of failure or performance issues within processes being debugged .

Resetting debug profiles after obtaining debug logs is necessary to prevent unnecessary resource consumption and potential performance degradation. Continuous debugging creates extensive logs that can consume storage and processing resources, impacting system performance negatively. Failing to reset the profiles might lead to excessive logging, making production environments unstable and more challenging to manage due to resource overhead .

The 'Enable Trace' checkbox can improve problem resolution efficiency in scenarios where precise diagnostics of SQL executions and system interactions are required, such as identifying bottlenecks in a complex warehouse management report generation or diagnosing unexpected behavior in a financial ledger update process. By tracing, you obtain granular insights into each SQL statement execution, which helps quickly identify sources of errors or performance issues .

The SQL queries necessary are: 'select max(log_sequence) from fnd_log_messages;' to get the maximum FND debug log sequence before submission and 'SELECT Max(execution_sequence) FROM po_wf_debug;' to retrieve the maximum execution sequence for PO workflow debug logs. After submitting the purchase order, run 'select module, message_text from fnd_log_messages where log_sequence > '&output_step2';' to fetch updated FND log messages and 'SELECT * FROM po_wf_debug WHERE execution_sequence > '&output_step3';' for updated PO workflow debug messages . These queries are important as they isolate the relevant log messages generated after the PO submission, aiding in effective troubleshooting .

You might also like