P. 1
RED_PAPER_-_ORACLE_10G_DRAFT_9[1]

RED_PAPER_-_ORACLE_10G_DRAFT_9[1]

|Views: 468|Likes:
Published by Mohammed Zubair

More info:

Published by: Mohammed Zubair on Mar 15, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

07/27/2011

pdf

text

original

When setting the values for “TraceSQL” and “TracePC” within the application server’s configuration file, the sum of
the options requested become the values in which “TraceSQL” and “TracePC” is set.

Example for tracing SQL (TraceSQL):

The following options are requested to be traced:

1

- SQL statements

2

- SQL statement variables

4

- SQL connect, disconnect, commit and rollback

8

- Row Fetch (indicates that it occurred, not data)

+ 16

- All other API calls except ssb

====
31

- The value “TraceSQL” is to be set.
“31” is the recommended value when tracing with “TraceSQL”.
“1984” is teh recommended value when tracing with “TracePC”.
Sample snippet from psappsrv.cfg

;-------------------------------------------------------------------------
; SQL Tracing Bitfield
;
; Bit Type of tracing
; --- ---------------
; 1 - SQL statements
; 2 - SQL statement variables

© Copyright © 2006 Oracle, Inc. All rights reserved.

28

7/27/2011

PeopleSoft Red Paper

; 4 - SQL connect, disconnect, commit and rollback
; 8 - Row Fetch (indicates that it occurred, not data)
; 16 - All other API calls except ssb
; 32 - Set Select Buffers (identifies the attributes of columns
; to be selected).
; 64 - Database API specific calls
; 128 - COBOL statement timings
; 256 - Sybase Bind information
; 512 - Sybase Fetch information
; 4096 - Manager information
; 8192 - Mapcore information
; Dynamic change allowed for TraceSql and TraceSqlMask
TraceSql=31
TraceSqlMask=12319

;-------------------------------------------------------------------------
; PeopleCode Tracing Bitfield
;
; Bit Type of tracing
; --- ---------------
; 1 - Trace entire program
; 2 - List the program
; 4 - Show assignments to variables
; 8 - Show fetched values
; 16 - Show stack
; 64 - Trace start of programs
; 128 - Trace external function calls
; 256 - Trace internal function calls
; 512 - Show parameter values
; 1024 - Show function return value
; 2048 - Trace each statement in program
; Dynamic change allowed for TracePC and TracePCMask
TracePC=1984
TracePCMask=4095

Note: It is extremely difficult to perform on-line tracing at the database level (especially on a production
environment). This is mainly due to on-line sessions sharing of the database connections; and as database
connections are used, a single web server session could use many different database connections. If tracing at the
application server level is not adequate, contact customer support for more assistance.

You can also turn on the tracing for a user session by doing the followings:

Login using your PIA URL appended with “&trace=y”:

For example:

PIA URL: http://pbnt0020:4090/psp/ps/?cmd=login

Log on using the following: http://pbnt0020:4090/psp/ps/?cmd=login&trace=y

You can set your trace settings from the page below before log in:

© Copyright © 2006 Oracle, Inc. All rights reserved.

29

7/27/2011

PeopleSoft Red Paper

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->