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
-
outputspecifies the file where the output is generated. If this option is not specified, then the utility writes to standard output. -
sessionconsolidates 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$SESSIONview. -
clientidconsolidates the trace information given client ID. -
serviceconsolidates the trace information for the given service name. -
actionconsolidates the trace information for the given action name. -
moduleconsolidates the trace information for the given module name. -
trace_filesis a list of all the trace file names, separated by spaces, in whichtrcsessshould look for trace information. You can use the wildcard character (*) to specify the trace file names. If you do not specify trace files, thentrcsesstakes 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