Oracle7 Server Tuning | ![]() Library |
![]() Product |
![]() Contents |
![]() Index |
This chapter provides an overview of the Oracle Trace product. It covers:
The server performance data that can be collected by Oracle Trace includes:
Oracle Trace allows host application events to be organized into event sets. This allows the user to collect data for a specific subset of all potential host application events. Oracle has defined the following event sets for Oracle Server release 7.3: ALL, DEFAULT, and EXPERT. The ALL set includes all server events, the DEFAULT set excludes server WAIT events, and the EXPERT set is specifically defined for use in the Oracle Expert tuning application. Oracle recommends using the DEFAULT event set.
Server collections can be enabled and controlled in the following ways:
Note: This chapter references file pathnames on UNIX-based systems. For the exact path on other operating systems, please see your Oracle platform-specific documentation.
The Oracle Trace parameters may be modified and used by adding them to your initialization file. To start tracing for a database using these parameters, you must at least add the following two parameters to your file:
oracle_trace_enable = TRUE
oracle_trace_facility_name = oracled
dbms_oracle_trace_user.set_oracle_trace(true/false, collection_name, server_event_set)
EXECUTE dbms_oracle_trace_user.set_oracle_trace(TRUE,"MYCOLL","oracled");
To collect Oracle Trace data for a database session other than your own, execute the following stored procedure package:
dbms_oracle_trace_agent.set_oracle_trace_in_session(sid, serial#, true/false, collection_name, server_event_set)
EXECUTE dbms_oracle_trace_user.set_oracle_trace_in_session (8,12,TRUE,"MYCOLL", "oracled");
If the collection does not occur, you should check the following:
The otrccol start command invokes a collection based upon parameter values contained in the input parameter file. For example:
otrccol start 1234 my_start_input_file
where my_start_input_file contains the following input parameters:
col_name= my_collection
dat_file= <usually same as collection name>.dat
cdf_file= <usually same as collection name>.cdf
fdf_file= <server event set>.fdf
regid= <flag> <vendor> <cfnum> <cfval> <fac#> (regid_str>
The server event sets that can be used as values for the fdf_file include oraclea, oracled, and oraclee. See Using Initialization Parameters to Control Oracle Trace on page 22-3 for more information on the server event sets.
The values that must be used for the regid input parameter are: 1 for flag, 192216243 for vendor, 0 for cfnum (cross-product number), 0 for cfval (cross-product value), 5 for fac# (product number). For regid_str, type the service name for the database. For example:
regid= 1 192216243 0 0 5 allofa1.world
otrccol stop 1234 my_stop_input_file
where my_stop_input_file contains the collection name and cdf_file name. otrccol format my_format_input_file
where my_format_input_file contains the following input parameters:
username= <database username>
password= <database password>
service= <database service name>
cdf_file= <usually same as collection name>.cdf
full_format= <0/1>
otrcrep [optional parameters] <collection_name>.cdf
The first step that you may want to take is to run a report called PROCESS.txt. You can produce this report first to give you a listing of specific process identifiers for which you want to run the detail report.
The command parameter used to produce a Process report is:
otrcrep -P <collection_name>.cdf
Other optional detail report parameters are:
Use the following command to format an Oracle Trace collection:
otrcfmt [optional parameters] <collection_name>.cdf [user/password@database]
If the user/password@database is omitted, the user will be prompted for this information.
Oracle Trace allows data to be formatted while a collection is occurring. By default, Oracle Trace will only format the portion of the collection that has not been formatted previously. If the user wants to reformat the entire collection file, the optional parameter -f can be used.
The formatter tables produced by Oracle Trace have names that are a composite of several identifiers relevant to the Oracle Trace collection. Users are advised to use synonyms for these tables in order to make them more easy to use in SQL scripts and reporting tools. The otrcsyn.sql script can be used to create synonyms for the server event tables created. You can edit this script to create your own synonyms for server events.
Oracle Trace provides several SQL scripts that can be used to access the server event tables. For more information on server event tables and scripts for accessing event data and improving event table performance, refer to the Oracle Trace User's Guide
Default Value: operating system specific
Range of Values: valid collection name up to 16 characters long
Default Value: operating system specific
Range of Values: full directory pathname
Default Value: 5242880
Range of Values: 0 - 4294967295
Default Value: FALSE
Range of Values: TRUE/FALSE
Default Value: operating system specific
Range of Values: valid product definition file name up to 16 characters long
Default Value: operating system specific
Range of Values: full directory pathname
![]() ![]() Prev Next |
![]() Copyright © 1996 Oracle Corporation. All Rights Reserved. |
![]() Library |
![]() Product |
![]() Contents |
![]() Index |