Sei sulla pagina 1di 55

Student Administration

Tracing & Debugging in


PeopleTools 8.4x

Kai Markowitz
Technical Lead
** This presentation has notes, don’t just view/print the slides **
April 2007
Agenda
Student Administration

 Introduction
 PeopleTools 8.4x Changes
 Tracing SQL & PeopleCode
 Tracing SQR Programs
 Tracing Cobol Programs
 Tracing App Engine Programs
 PeopleCode Debugging
 Questions

2
Agenda
Student Administration

 Introduction
 PeopleTools 8.4x Changes
 Tracing SQL & PeopleCode
 Tracing SQR Programs
 Tracing Cobol Programs
 Tracing App Engine Programs
 PeopleCode Debugging
 Questions

3
Agenda
Student Administration

 Introduction
 PeopleTools 8.4x Changes
 Tracing SQL & PeopleCode
 Tracing SQR Programs
 Tracing Cobol Programs
 Tracing App Engine Programs
 PeopleCode Debugging
 Questions

4
PeopleTools 8.4x Changes
Student Administration

 No more pstools.exe on the local client!


– CS 8.9 can’t be run in two-tier mode.
 No tracing/debugging in two-tier mode.
– App Engine programs are the only exception
to this.
 Trace files are on the application server.
– Examining the trace files requires access to
the Unix server.

5
Agenda
Student Administration

 Introduction
 PeopleTools 8.4x Changes
 Tracing SQL & PeopleCode
 Tracing SQR Programs
 Tracing Cobol Programs
 Tracing App Engine Programs
 PeopleCode Debugging
 Questions

6
Tracing SQL & PeopleCode
Student Administration

 These are very


good trace
settings to use
in order to get a
very “light” but
useful trace.
– Use a unique
User ID when
tracing to make
the trace file
easier to read.

7
Tracing SQL & PeopleCode
Student Administration

 Trace files are found in the


PS_SERVDIR/LOGS directory of your
application server.
– PS_SERVDIR is a Unix environment variable.

8
Tracing SQL & PeopleCode
Student Administration

9
Tracing SQL & PeopleCode
Student Administration

SQL Error

10
Tracing SQL & PeopleCode
Student Administration

PeopleCode Error

11
Tracing SQL & PeopleCode
Student Administration

 If you find an area


of PeopleCode that
appears to be a
performance issue
or returns
“unexpected”
results, you can
trace the same
area again with an
expanded set of
trace options

12
Tracing SQL & PeopleCode
Student Administration

Expanded PeopleCode Error

13
Agenda
Student Administration

 Introduction
 PeopleTools 8.4x Changes
 Tracing SQL & PeopleCode
 Tracing SQR Programs
 Tracing Cobol Programs
 Tracing App Engine Programs
 PeopleCode Debugging
 Questions

14
Tracing SQR Programs
Student Administration

 Append the –s flag to the Process


Definition to see a list of the SQL in the
program and execution counts .

15
Tracing SQR Programs
Student Administration

16
Tracing SQR Programs
Student Administration

 Append the –debug flag to the Process


Definition along with the debug flag(s)
you want to see.

17
Tracing SQR Programs
Student Administration

 The trace file can be accessed


directly within the Process Monitor.

18
Agenda
Student Administration

 Introduction
 PeopleTools 8.4x Changes
 Tracing SQL & PeopleCode
 Tracing SQR Programs
 Tracing Cobol Programs
 Tracing App Engine Programs
 PeopleCode Debugging
 Questions

19
Tracing Cobol Programs
Student Administration

 Override the Parameters List in the


Process Definition using the following
template:
– PRCSNAME
ORACLE/%%DBNAME%%/%%OPRID%%/%%O
PRPSWD%%/%%RUNCNTLID%%/%%INSTANCE
%%/255/%%DBFLAG%%

20
Tracing Cobol Programs
Student Administration

 The trace file can be accessed


directly within the Process Monitor.

21
Tracing Cobol Programs
Student Administration

PeopleSoft Cobol

22
Tracing Cobol Programs
Student Administration

Trace (Body)

23
Tracing Cobol Programs
Student Administration

Trace (Timings)
2.

1.

3.
24
Tracing Cobol Programs
Student Administration

SQL Error

25
Tracing Cobol Programs
Student Administration

“DMS” Error: Select Item

26
Tracing Cobol Programs
Student Administration

“DMS” Error: Bind Variable

27
Tracing Cobol Programs
Student Administration

Subscript out of range

28
Tracing Cobol Programs
Student Administration

 Tracing Cobol executed from a


RemoteCall in PeopleCode (e.g.,
pushbutton) is the most complex type
of trace to setup in PeopleTools 8.4x.
 Requires making changes to the
psappsrv.cfg file on the Unix server.
– Located in PS_SERVDIR directory.
 Impacts everyone using the application.
Be sure to turn off the trace as soon as
you are done.

29
Tracing Cobol Programs
Student Administration

 Set TraceSQL=255 in psappsrv.cfg*.


*Note: The associated “Mask” value must
be set higher than this.

30
Tracing Cobol Programs
Student Administration

 Set RCCBL Redirect=1 in psappsrv.cfg.

31
Tracing Cobol Programs
Student Administration

 Cobol trace files can be found in the


PS_SERVDIR/LOGS directory*.
*Note: The .err file is only found if there is a Cobol error.

32
Agenda
Student Administration

 Introduction
 PeopleTools 8.4x Changes
 Tracing SQL & PeopleCode
 Tracing SQR Programs
 Tracing Cobol Programs
 Tracing App Engine Programs
 PeopleCode Debugging
 Questions

33
Tracing App Engine Programs
Student Administration

 App Engine programs rule!


 App Engine programs can be traced in
two-tier mode from the Application
Designer.
 The PeopleCode Debugger can be used
with App Engine programs in two-tier
mode from the Application Designer*.
*Note: This is the only case in PeopleTools 8.4x where
the PeopleCode Debugger can be run in two-tier mode

34
Tracing App Engine Programs
Student Administration

 Append the appropriate trace flag(s) to


the Process Definition.
• -TRACE 131 (App Engine trace, required)
• -TOOLSTRACEPC 2048 (PCode trace, optional)
• -TOOLSTRACESQL 31 (SQL trace, optional)

35
Tracing App Engine Programs
Student Administration

 The trace files can be accessed directly in


process monitor.

36
Tracing App Engine Programs
Student Administration

Trace (Body)

37
Tracing App Engine Programs
Student Administration

Trace (SQL Timings)

38
Tracing App Engine Programs
Student Administration

Trace (PeopleCode Timings)

39
Tracing App Engine Programs
Student Administration

Trace (Totals & Environment)

40
Tracing App Engine Programs
Student Administration

SQL Error (Process Monitor)

41
Tracing App Engine Programs
Student Administration

SQL Error (Trace)

42
Tracing App Engine Programs
Student Administration

PeopleCode Error (Process Monitor)

43
Tracing App Engine Programs
Student Administration

PeopleCode Error (Trace)

44
Tracing App Engine Programs
Student Administration

Dynamic Call Error (Trace)

45
Tracing App Engine Programs
Student Administration

 For two-tier tracing, you must run App


Engine processes through the web
browser at least once; you need to do
this in order to have a Run Control ID and
Process Instance Number*.

46
Tracing App Engine Programs
Student Administration

 Turn on your Application Engine Trace flags in


the Configuration Manager.

47
Tracing App Engine Programs
Student Administration

 With the App Engine program open in the


Application Designer, press the Run Program
icon and enter the Run Control ID and Process
Instance Number. Click ‘OK’ to run the App
Engine process in two-tier mode.

Defaults

48
Tracing App Engine Programs
Student Administration

 You can find the log files for the run in


the C:\TEMP\PS\DBName directory*.
*Note: The location of this file can vary depending on the
particular configuration of your workstation.

49
Tracing App Engine Programs
Student Administration

 To debug PeopleCode in an App Engine


program, turn on the PeopleCode
Debugger Mode and set breakpoints
before running.

50
Agenda
Student Administration

 Introduction
 PeopleTools 8.4x Changes
 Tracing SQL & PeopleCode
 Tracing SQR Programs
 Tracing Cobol Programs
 Tracing App Engine Programs
 PeopleCode Debugging
 Questions

51
PeopleCode Debugging
Student Administration

 Online PeopleCode Debugging must be


done three-tier from the Citrix desktop.
– Login to App Designer with the name of the
application server.

52
PeopleCode Debugging
Student Administration

 Debugging swaps back and forth between


browser session and App Designer*.
*Note: You must login to both sessions with the same
Userid.

53
Agenda
Student Administration

 Introduction
 PeopleTools 8.4x Changes
 Tracing SQL & PeopleCode
 Tracing SQR Programs
 Tracing Cobol Programs
 Tracing App Engine Programs
 PeopleCode Debugging
 Questions

54
Student Administration

55

Potrebbero piacerti anche