Oracle(R) Enterprise Manager Getting Started with the Oracle Diagnostics Pack Release 2.1 A76915-01 |
|
After you have installed the Diagnostics Pack, configure the components listed in the following table:
Components | Where to Find the Information |
---|---|
Advanced Events |
|
Capacity Planner |
|
Performance Manager |
|
TopSessions |
|
Trace |
Before you use Oracle Advanced Events, set up the program as follows:
Refer to "Setting Up TopSessions" for information on what scripts to run.
The following setup tasks are required before you use Oracle Capacity Planner or Oracle Performance Manager:
The following setup tasks are required before you use Performance Manager:
The following sections describe each of these setup tasks in more detail.
Performance Manager and Capacity Planner require the use of the data gathering service (also known as the Oracle Data Gatherer). For monitoring operating system data, the Oracle Data Gatherer must be installed on the same node as the operating system you are monitoring. For monitoring other service types, such as databases, the Oracle Data Gatherer can run on the same node as the service you are monitoring, or it can run on a different node, depending upon your configuration.
Refer to the Oracle Intelligent Agent User's Guide for information on how to configure and start the Oracle Data Gatherer.
To collect disk statistics on Windows NT, enable them by typing:
diskperf -Y
Disk statistics are enabled the next time the system is restarted. For more information about the DISKPERF tool, refer to the Microsoft Windows NT documentation.
If you created user-defined charts using Performance Manager release 1.5.0 or earlier and want to use them with the current Performance Manager release, you must first convert them to release 1.6.0.
Performance Manager Release 1.6.0 user-defined charts are converted to the current release when you migrate your existing performance data to the Enterprise Manager Release 2.1 repository.
For more information, refer to the following sections.
To convert user-defined charts created using Performance Manager Release 1.5.0 or earlier:
vmmmig joseph/password@my_rep
Note that my_rep
in the previous command line is the service name for the Enterprise Manager repository.
vmm2vtm.exe joseph/password@my_rep my_db
Note that my_rep in the previous command line is the service name of the Enterprise Manager V2.x repository and my_db is the name of the target service under which you want the user-defined charts stored. In other words, after the previous command is run, all the user-defined charts are converted and stored under the my_db service in the Performance Manager release 1.6.0 tree view.
If any error messages are generated when you run vmm2vtm.exe, edit the vtmusr.txt file based on the error messages. For example, the error messages may state that there is a problem with a chart or that a chart does not exist. Since the vtmusr.txt file contains a list of the charts, edit the file to remove any problematic charts.
Then, run vmm2vtm.exe again.
If you created user-defined charts with Performance Manager Release 1.6.0, you can convert those charts for use with the current release of Performance Manager. User-defined charts created with Performance Manager 1.6.0 are converted when you create a new Enterprise Manager repository and migrate your existing performance data to the new repository.
For more information about creating a new Oracle Enterprise Manager repository and migrating your existing data, see the Oracle Enterprise Manager Configuration Guide.
To use Performance Manager in a Parallel Server environment, two database instances must be started, otherwise Performance Manager does not treat the server as a Parallel Server.
There are two scenarios for using Performance Manager in an Oracle Parallel Server environment, and different configuration steps for each scenario.
The two scenarios and their configuration steps are:
Oracle7 does not have global V$ (GV$) tables; these files install a set of PL/SQL procedures, database links, and O$ tables that are used by Performance Manager in the absence of GV$ tables.
For more information about Parallel Server scripts, see the Oracle Parallel Server Management User's Guide in the Parallel Server documentation set.
To install the features of TopSessions:
The smptsixx.sql scripts have been provided to help automate this process. The xx in the file name identifies the version of the database against which the script should be run. The script for each database version is located in the $ORACLE_HOME\SYSMAN\ADMIN directory.
Version of the Database | Script to Run |
---|---|
Oracle 7.3.4 |
smptsi73.sql script |
Oracle 8.0 |
smptsi80.sql script |
Oracle 8.1 |
smptsi81.sql script |
When smptsixx.sql is run, it also automatically runs the following two scripts:
These two scripts create in the managed database some additional tables, views, and public synonyms that are required by the Oracle Advanced Events.
To set up TopSessions for a database:
For additional information, refer to the online help or the Oracle Enterprise Manager Administrator's Guide.
SELECT ANY TABLE
privileges to each administrator account. This step may be omitted if the account has already been granted the same privileges as SYSTEM.
Note that when preparing to run the smptsixx.sql script on managed databases, you should log into each database as SYS, as mentioned previously.
You can use Security Manager to grant privileges to an account. Refer to the Oracle Enterprise Manager Online Help for detailed information about how to use Security Manager.
If the smptsixx.sql script is not run on a managed database, you may see a "Table or View does not exist" message when you try to use TopSessions.
Trace requires that the:
To successfully use Trace, you must:
If you are using Trace for Oracle8 server collections, you must set the value of the
ORACLE_TRACE_ENABLE parameter in your INITsid.ORA file to TRUE.
If you are using Trace to collect data from Oracle 7.3.4 server collections, verify the following exist:
If they do not, you must create them by running the otrcsvr.sql script as SYS.
The otrcsvr.sql script is located in $ORACLE_HOME/otrace/admin on UNIX systems and in $ORACLE_HOME\otracexx\admin on Windows NT systems.
The otrcsvr.sql script is run automatically during database installation on most platforms. However, if your server platform is Windows NT, you must run this script manually.
If you are using the Trace Collection Services release 8.0.4 or later, the formatter tables are created for you.
The Trace formatter tables are required in managed databases by Trace, which converts and loads a Trace binary file (collection_name.dat) into Oracle tables for access.
Trace data collected from Oracle 7.3.4 and later databases can only be stored in databases that are using the latest Trace formatter tables. Use the vobsh command, which is available only on Windows platforms, to create new formatter tables, delete existing formatter tables, or upgrade earlier versions of formatter tables to the latest version for a database.
The formatter table operations and vobsh commands to perform these operations are described in the following sections. These vobsh commands are unsuccessful if the specified user does not have an account for the specified service. In this case, create an account for the user on the specified service, then enter the vobsh command again.
To create new formatter tables in a database where no formatter tables currently exist, use the vobsh command:
vobsh -c "user/password@service" -o CREATE -p "EPCFMT"
Note that the formatted data stored in formatter tables can grow very large, so the database in which formatter tables are created should have sufficient space to store large amounts of data.
To drop existing formatter tables from a table, use the vobsh command:
vobsh -c "user/password@service" -o DROP -p "EPCFMT"
This command drops any version of formatter tables from the specified database. Note that in addition to dropping the existing formatter tables, vobsh also deletes the formatted data stored in the tables.
To validate (upgrade) older versions of the formatter tables (which creates, drops, or upgrades the formatter tables as needed), use vobsh command:
vobsh -c "user/password@service" -o VALIDATE -p "EPCFMT"
This command determines what version of the formatter tables the database has and enables you to upgrade them to the new version, if necessary.
If you experience any problems running Trace after completing the configuration instructions in this chapter, refer to the "Troubleshooting Oracle Trace" appendix of the Oracle Enterprise Manager Oracle Trace User's Guide.