Oracle Enterprise Manager Oracle Trace User's Guide
Release 1.4.0

A53696_01

Library

Product

Contents

Index

Prev Next

1
Overview

Oracle Trace is a general-purpose data collection system that collects data for any instrumented software product. Use Oracle Trace to collect a wide variety of data, such as performance statistics, diagnostics data, system resource usage, and business transaction details.

The components of Oracle Trace are:

This manual describes the Oracle Trace Manager.

Software developers can use the Oracle Trace API to preconfigure, or instrument, their products for Oracle Trace data collection. Users of a product containing the Oracle Trace API calls can then use the Oracle Trace Collection Services to collect data about specific events that occur in that product.

Refer to the Oracle Enterprise Manager Oracle Trace Developer's Guide for information about the Oracle Trace Collection Services and how to instrument applications using the Oracle Trace API.

Oracle Trace Manager

Oracle Trace provides a graphical Oracle Trace Manager application to create, schedule, and administer Oracle Trace collections for products instrumented with the Oracle Trace API.

The Oracle Trace Manager is a client-based Windows application that runs on the Oracle Enterprise Manager console. The Oracle Trace Manager automatically discovers Oracle Trace instrumented products that are installed on all nodes that are known to the Oracle Enterprise Manager console.

Most Oracle Trace users manage collections for products that are already instrumented with the Oracle Trace API. Therefore, most users only need to be familiar with the data that can be collected for the products and how to use the Oracle Trace Manager application to create and administer data collections.

Note:

Oracle Corporation is currently using the Oracle Trace data collection API in two products:

  • Oracle Server release 7.3 or higher (for performance data collection)
  • SQL*Net release 2.3 or higher (for diagnostics data collection)

The Oracle Server performance data collected by Oracle Trace includes SQL statements, detailed statistics on SQL events, transaction events, and other useful information.

Oracle Server events and data are described in Appendix A. SQL*Net events are described in Appendix B.  

Managing Collections

The use and control of Oracle Trace revolves around the concept of a collection. A collection is the data that was collected for events that occurred while an instrumented product was running.

With the Oracle Trace Manager, you can schedule and manage collections. When creating a collection, you define the attributes of the collection, such as the collection name, the products and event sets to be included in the collection, and the start and end time. The Oracle Trace Manager includes a Collection Wizard that facilitates the creation and execution of collections.

Once you create a collection, it can be executed immediately, scheduled to execute at a specific time, or executed at specified intervals. When a collection executes, it produces a file containing the event data for the products that participated in the collection. You can also use a collection as a template for creating other similar collections.

Note:

Some instrumented applications also provide their own mechanism for starting and stopping Oracle Trace collections. For example, Oracle Server release 7.3 provides a set of database initialization parameters, as described in Appendix A that you can use to start and stop an Oracle Trace collection. In some situations, using an instrumented product's own controls may be useful. However, you should control most Oracle Trace collections using the Oracle Trace Manager application.  

Collecting Event Data

An event is the occurrence of some activity within a product. Oracle Trace collects data for specific, predefined events that occur within a software product that is instrumented with the Oracle Trace API, that is, embedded with Oracle Trace API calls.

There are two types of events:

Items are specific pieces of information about an event. If your product has been instrumented with Oracle Trace API calls, the developer has identified specific events and data items. These items, such as a transaction type or dollar amount, are specific to the instrumented product. Data items can also include statistics on the resources used by that event, such as the CPU time and number of input/output operations (I/Os) performed by the event. For example, the Oracle Server release 7.3 and higher is instrumented for 13 events. Three of these events are:

A complete list of the server events and data items is contained in Appendix A, "Using Oracle Trace for Oracle Server Data Collections."

Oracle Trace events can be organized into event sets that restrict the data collection to specific events. You can establish event sets for performance monitoring, auditing, diagnostics, or any logical event grouping.

Each event set is described by its own product definition file (.fdf). The product definition file is a set of events and their associated data items. The complete set of events defined for an instrumented product is referred to as the ALL event set. Other event sets are then derived from the ALL set. For example, the Oracle Server includes an event set known as the EXPERT set. This set includes SQL event data used by the Oracle Expert tuning application.

Accessing Collected Data

During a collection, Oracle Trace buffers event data in memory and periodically writes it to a collection binary file. This method ensures low overhead associated with the collection process. You can access the event data collected in the binary file by formatting the data to predefined tables. This makes the data available for fast, flexible access. These predefined tables are called Oracle Trace formatter tables.

Oracle Trace Manager provides a mechanism for formatting collection data immediately after a collection is run or at a later time.

Note:

Formatter tables are required to format an Oracle Trace collection. To create Oracle Trace formatter tables, use the vobsh command. See the Oracle Enterprise Manager Configuration Guide for more information.  

When formatting a collection, you identify the database where the formatted collection is to be created, as follows:

  1. Through the Oracle Trace Manager, select a collection to format.
  2. Choose the Format command.
  3. Specify a target database where the data is to reside.

The collection selected determines which collection definition file and data collection file will be used. The formatted target database determines where the formatted collection data will be stored.

Once the data is formatted, you can access the data using SQL reporting tools and scripts. Oracle Trace ships with a set of predefined SQL scripts for accessing the formatter tables created for the Oracle Server events. In addition, Oracle Trace data can be preconfigured for use in other applications, for example, for use by Oracle Expert. The Oracle Expert database tuning application can access and analyze the Oracle Server SQL event data from the Oracle Trace formatter tables.

Also, you can access event data by running a Detail report from the Oracle Trace reporting utility. This report provides a basic mechanism for viewing a collection's results. You have limited control over what data is reported and how it is presented.

Oracle Trace Environment

Oracle Trace and its associated components run in a client/server environment. Figure 1-1 shows these components.

Figure 1-1 Oracle Trace Environment

Components on the Client

To collect data, the following components must be running on the client:

Components on the Server

On the server, the following components are required:

Configured Components Checklist

This chapter has referred to several Oracle Trace components and other programs that must be configured or running in order for you to use Oracle Trace. This section provides a checklist of these required Oracle Enterprise Manager and Oracle Trace components.

Before you run Oracle Trace, check the following:




Prev

Next
Oracle
Copyright © 1997 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index