The
trcsess is an Oracle
utility that consolidates trace output from selected trace files
based on several criteria:-
Session ID
-
Client ID
-
Service name
-
Action name
-
Module name
trcsess
merges the trace information into a single output
file, the output file could be processed by TKPROF
.trcsess
is useful for consolidating the tracing of a particular
session for performance or debugging purposes. Tracing a specific session is
usually not a problem in the dedicated server model as a single dedicated
process serves a session during its lifetime. You can see the trace information
for the session from the trace file belonging to the dedicated server serving
it. However, in a shared server configuration a user session is serviced by
different processes from time to time. The trace pertaining to the user session
is scattered across different trace files belonging to different processes. This
makes it difficult to get a complete picture of the life cycle of a
session.21.2.1 Syntax for trcsess
The syntax for thetrcsess
utility is:trcsess [output=output_file_name] [session=session_id] [clientid=client_id] [service=service_name] [action=action_name] [module=module_name] [trace_files]where
-
output
specifies the file where the output is generated. If this option is not specified, then the utility writes to standard output. -
session
consolidates the trace information for the session specified. The session identifier is a combination of session index and session serial number, such as21.2371
. You can locate these values in theV$SESSION
view. -
clientid
consolidates the trace information given client ID. -
service
consolidates the trace information for the given service name. -
action
consolidates the trace information for the given action name. -
module
consolidates the trace information for the given module name. -
trace_files
is a list of all the trace file names, separated by spaces, in whichtrcsess
should look for trace information. You can use the wildcard character (*
) to specify the trace file names. If you do not specify trace files, thentrcsess
takes all the files in the current directory as input.
session
, clientid
,
service
, action
, or module
options. If
more then one of the session
, clientid
,
service
, action
, or module
options is
specified, then the trace files which satisfies all the criteria specified are
consolidated into the output file.
No comments:
Post a Comment