PeopleSoft Application Engine Trace Flag Calculator
This calculator adds up the bit values for Application Engine, SQL and PeopleCode tracing so you can pass the right numbers to psae or put them in psprcs.cfg. It uses the values documented for PeopleTools 8.5x and 8.6x.
Your numbers
Writes a _temptable.DAT file of rows affected by insert, update and delete statements.
PS_BAT_TIMINGS_LOG and PS_BAT_TIMINGS_DTL.
Your results
Bit values follow PeopleBooks (Enabling Application Engine Tracing and the psprcs.cfg Trace section, PeopleTools 8.56 and later). PeopleBooks for 8.56 and later also documents 16384 for SQL timings to PS_AE_TIMINGS_LG and PS_AE_TIMINGS_DT; add it by hand if you need it.
Have a slow Application Engine?
Send us an AET timings trace and we will point out the steps and SQL worth tuning first.
Optional. The tool and every export work without this. No spam.
How to use it
Turn on the AE options you need, pick a TraceSQL and TracePC level, and read the three values. A common starting point for a slow program is 1 + 2 + 128 = 131 (step, SQL and timings), which is the example PeopleBooks gives. Add 1024 to keep timings in tables for comparison between runs, and only use the optimizer options on a test copy. On the command line the values go into psae -TRACE 131 -TOOLSTRACESQL 3 -TOOLSTRACEPC 1984. A -TRACE value on the command line or process definition overrides the TraceAE value in the configuration file or Configuration Manager.
- Process definition: Override Options, Parameter List Append, add -TRACE 131.
- Server wide: TraceAE in the Trace section of psprcs.cfg, then reconfigure the domain.
- Two-tier runs: Configuration Manager, Trace tab.
Where the trace files land
Process Scheduler writes each request into a subdirectory of the Log/Output Directory named <process type>_<program>_<process instance>. The AE trace is named AE_<program>_<process instance>_<date/time stamp>.AET, and the SQL and PeopleCode traces go to a .trc file in the same place unless TraceAECombineOutput is set to Y, which merges them into the .AET. The temporary table data option writes a _temptable.DAT file alongside. When an AET file exceeds the AE Trace File Size set in Configuration Manager (default 500 MB), logging switches to a new file, so a long run can leave several files.
Reading results and the AE tables
In the timings report, sort by total time and compare execution counts with rows processed: a step executed once per row usually means a Do Select loop that should be set-based. The program definition you are tracing lives in PSAEAPPLDEFN (program), PSAESECTDEFN (sections), PSAESTEPDEFN (steps) and PSAESTMTDEFN (SQL and PeopleCode actions), which is handy for finding which section a traced statement belongs to. Timings to tables go to PS_BAT_TIMINGS_LOG and PS_BAT_TIMINGS_DTL, keyed by process instance.
- TraceSQL 3 shows statements with bind values, usually enough.
- TracePC options 1 and 2 are very verbose; prefer the call and parameter options.
- Switch tracing off afterwards; step, SQL and PeopleCode tracing add noticeable overhead to run time.
Frequently Asked Questions
What does -TRACE 131 mean in Application Engine?
131 is 1 + 2 + 128: the step trace, the SQL trace and the statement timings report, all written to the AET file. It is the standard first trace for a slow or failing Application Engine program and is the example value used in PeopleBooks.
Where are Application Engine trace files stored?
For scheduled runs, in the request subdirectory under the Process Scheduler Log/Output Directory, named after the process type, program and process instance. You can also open them from Process Monitor, View Log/Trace. For command-line or two-tier runs, they go to the trace directory set in Configuration Manager or the client temp directory.
What is the difference between TraceAE and TraceSQL?
TraceAE controls Application Engine specific output such as steps, AE SQL, timings and optimizer plans in the AET file. TraceSQL is the generic PeopleTools SQL trace of API calls such as statements, binds, fetches and commits. TracePC traces PeopleCode run by the program. Each is a separate bit field.
Can I set the trace for only one run of a program?
Yes. Add -TRACE n (and optionally -TOOLSTRACESQL m and -TOOLSTRACEPC p) in the process definition override parameters or on the run control as allowed, or run psae from the command line. The command-line value overrides psprcs.cfg, so other programs on the server are not traced.
If you want admins to ask in plain English which AE steps got slower this month, we can put a private AI layer over your trace and timing tables on your own servers.
Related Tools
PeopleSoft PeopleCode SQLExec, CreateSQL Fetch and Try-Catch Snippet Generator
Fill in a record, key field and message set and get ready-to-paste PeopleCode for SQLExec, CreateSQL Fetch loops, try-catch error handling, MsgGet and rowset loops.
Developer ToolsPeopleSoft Component Interface PeopleCode Generator
Generate the standard PeopleCode to open a Component Interface, Get or Create a key, set properties, Save with PSMessages error handling, plus a CallAppEngine example.
OraclePeopleSoft PeopleTools-Only Upgrade Checklist (8.5x to 8.61/8.62)
A step by step checklist for a PeopleTools-only upgrade with DPK and Change Assistant, from certifications to rollback, with the critical steps marked.
More Oracle tools
See all- Oracle PeopleSoft Private AI Layer Blueprint Generator
- Oracle PeopleSoft AI Assistant Sizing and Value Calculator
- PeopleSoft PeopleTools Metadata Tables Reference (PSRECDEFN, PSRECFIELD, PSPNLDEFN)
- PeopleSoft PeopleCode Events and Firing Order Reference
- PeopleSoft Process Scheduler RUNSTATUS and Report Manager Tables Reference
- PeopleSoft Integration Broker Tables and Message Status Reference
- PeopleSoft PUM Update and Change Package Checklist
- Oracle EBS Discrete Job Statuses Reference
- Oracle EBS Inventory Transaction Types Reference
Keep exploring
Free tools
- Oracle PeopleSoft AI Assistant Sizing and Value CalculatorEstimate peak load, GPUs, index size, hours saved and payback for an on-prem AI assistant on Oracle PeopleSoft.
- Oracle PeopleSoft Private AI Layer Blueprint GeneratorFill in your Oracle PeopleSoft version, database, hosting and users to get a shareable architecture plan for a private, on-prem AI assistant.
- PeopleSoft PUM Update and Change Package ChecklistStep through a PeopleSoft Update Manager cycle: update image, change package definition, compare reports, retrofit, apply to each environment and test.
ERP fixes and how-tos
- How to Add a Private AI Layer to PeopleSoft On-PremReference architecture for AI on PeopleSoft FSCM and HCM: PS Query and Integration Broker access, security join tables, a local model and approved write-back.
- NetSuite Lot and Serial Traceability: Forward and Backward TraceTrace a lot or serial number forward to customers and backward to vendors in NetSuite using inventory detail, inventory numbers, saved searches and SuiteQL.