Upload
gaurav-jaidka
View
133
Download
9
Tags:
Embed Size (px)
Citation preview
Tracing & Debugging
Overview:
In this document different types of tracings are discussed.
Contents:
1. Online Tracingi) Debug options
Trace SQL Trace People Code
ii) Set Flags Option
2. Process Tracing Application Engine Tracing SQR Tracing
Index:
1) Online tracing ------------------------------------------------------ 2 page2) Debug Option ------------------------------------------------------ 2 page 3) Set Trace flags option ------------------------------------------------------ 3 page4) Process Tracing ------------------------------------------------------ 4 page5) Application Engine Trace ------------------------------------------------------ 4 page6) AE parameter values ------------------------------------------------------ 5 page7) Process details ------------------------------------------------------ 6 page8) Trace files ------------------------------------------------------ 7 page9) SQR Trace ------------------------------------------------------ 8 page
1 | P a g e
Online tracing can be done in two ways
Debug Option in People tools Set Trace flags option in login page
Debug Option in People tools (Trace SQL/Trace People Code)
1) Online tracing(Peopletools>Utilities> Debug)
Select the required Trace option like Trace SQL, Trace People Code,etc.,2) If Trace Option is “Trace SQL”
We have to select the above options as required; the total will be displayed below“Trace value”.
3)If Trace Option is “Trace People Code”
We have to select the above options as required; the total will be displayed below.“Trace value”.
Set Trace flags option in login page
2 | P a g e
4)Login Page
Click on here link for setting trace flags.5)Set Trace Flags Page
We have to select the above options (check) as required for Setting Trace.1. SQL Trace2. People Code Trace3. Component Processor Trace4. Page Generation Trace
Process Tracing:
3 | P a g e
In process tracing, we can trace a given process by appending trace parameters in the override options
1) Process Page(Peopletools>Process scheduler>processes)
Enter the Process Name like “AP_MATCH” click search.2)Click on Override Options
In the override options Parameter list select ‘Append’ and enter the parameters as shown.And check the parameters values from below tables.
3)Parameter values of Application Engine
Value Description
0 Disables tracing.
1 Initiates the Application Engine step trace.
2 Initiates the Application Engine SQL trace.
4 Initiates the trace for dedicated temporary table allocation to an Application Engine trace (AET) file. You can trace how the system allocates, locks, and releases temporary tables during program runs.
128 Initiates the statement timings trace to a file, which is similar to the COBOL timings trace to a file.
256 Initiates the PeopleCode detail to the file for the timings trace.
4 | P a g e
1024 Initiates the statement timings trace and stores the results in the following tables: PS_BAT_TIMINGS_LOG and PS_BAT_TIMINGS_DTL.
2048 Requests a database optimizer trace file.
4096 Requests a database optimizer to be inserted in the Explain Plan table of the current database.
8192 Sets a trace for PeopleSoft Integration Broker transform programs.
16384 Initiates a SQL timings trace and stores the results in the following tables: PS_AE_TIMINGS_LG and PS_AE_TIMINGS_DT.
ReferenceTo specify traces on the command line, you enter the sum of the desired trace options. This is similar to adding the trace values using PSADMIN, such as the COBOL statement timings or the SQL statement trace value. To specify a combination of traces, enter the sum of the corresponding trace values. For example, to enable the step (1), the SQL (2), and the statement timings (128) traces, you would enter 131—the sum of 1, 2, and 128.
To disable tracing, explicitly specify −TRACE 0. If you don’t include the −TRACE flag in the command line, PeopleSoft Application Engine uses the value specified in the Process Scheduler configuration file or in Configuration Manager. Otherwise, the command-line parameters override any trace settings that may be set in Configuration Manager.
Further follow the link http://download.oracle.com/docs/cd/E13292_01/pt849pbr0/eng/psbooks/tape/book.htm, to know more about what options we have for parameters.
4)Based on the above
parameters we can check the
trace file in the ouput when the process(app_en
gine or SQR) completed
either error or successful-
Click View Log/Trace link to look into the trace file
5 | P a g e
Trace File(people code) Trace file (Application Engine)
Trace File(AE Timings)
6 | P a g e
Trace file (AE steps)
Trace file(People Code)
7 | P a g e
Similarly for SQR Process
For the parameters u can followhttp://download.oracle.com/docs/cd/E13292_01/pt849pbr0/eng/psbooks/tsqr/book.htm
8 | P a g e