Oracle Enterprise Manager Getting Started with the Oracle Diagnostics Pack Release 9.0.1 Part Number A88748-02 |
|
Oracle Advanced Event Tests are integrated into the Oracle Enterprise Manager Console's Event Management System. They are installed as part of the Diagnostics pack and provide DBAs and database users with additional resources to monitor event conditions in their network environment.
This appendix demonstrates how the Oracle Event Management System and Advanced Event Tests can help DBAs simplify their day to day administrative tasks, enabling them to perform tasks that can provide even greater benefit to the company.
In our examples, the DBA uses events in three different scenarios to proactively monitor potential problems. Proactive management allows the DBA to take action to resolve the issue before the problem occurs, minimize unscheduled downtime, and prevent slow response time.
Each of the scenarios provides a description of the problem, a step-by-step preventative action plan, and a resolution summary. The following management tasks are addressed in the scenarios:
Note: For step-by-step instructions on using the Oracle Enterprise Manager Console and Event Management System, please see the Oracle Enterprise Manager Administrator's Guide. This guide also provides information on setting up job system and event requirements. |
The DBA realizes that most of his time is spent performing routine, time-consuming tasks which focus on the operational aspect of keeping various databases up and running. To reduce the labor of system management across numerous managed databases, he uses the Oracle Event Management System. The Event System will allow him to proactively monitor the systems for which he is responsible.
He decides to divide his tasks into three different groups (depending on the frequency at which these tasks should be performed):
Fault:
Alert-- new errors in Alert file
Database UpDown-- database is down
Probe -- database connection cannot be made
User Blocks -- database user is blocking others
Performance - Instance Activity:
Buffer Cache Hit %-- buffer cache hit ratio is low
Free Buffer Waits -- free buffer waits is increasing
In Memory Sort % -- in memory sort ratio is low
Redo Log Allocation Hit % -- redo log allocation hit ratio is low
Rollback Contention -- rollback segment contention is high
Space:
Archive Full -- archive device is full
Archive Full (%) -- archive device is full shown as a percentage
Space:
Chunk Small-- contiguous space is insufficient
Dump Full -- dump destination device is full
Dump Full (%)-- dump destination device is full shown as a percentage
Fast Segment Growth-- segment growth rate is high
Maximum Extents -- segment's maxextent limit approached
Tablespace Full -- tablespace is full
Resource:
Datafile Limit -- maximum datafile approached
Space:
Alert File Large -- alert file is large
Index Rebuild-- index which may benefit from a rebuild
The appropriate resolution depends on the specific event condition. Each event description provides a possible user action to correct your condition.
In addition, the DBA can use other Oracle Enterprise Manager tools to further pinpoint database inefficiencies and tune performance. Please refer to the Oracle Enterprise Manager documentation library for more information on the individual tools.
Fault | Performance - Instance Activity | Space | Resource |
---|---|---|---|
User Blocks |
Rollback Contention |
Tablespace Full |
Datafile Limit |
The DBA has been warned that a new table will be created in the APP_DATA tablespace and during the night a batch load will take place. The DBA decides to monitor the free space in this tablespace. Should free space become a problem, he wants to be notified of the condition, but also wants a datafile automatically added to avoid having the batch load fail.
Space:
Tablespace Full -- tablespace is full
ALTER TABLESPACE APP_DATA
ADD DATAFILE
'c:\orant\database\app02.ora' SIZE 5M;
In this example using the Oracle Event Management System, the DBA was able to proactively monitor for the potential problem and automatically prevent any impact to end users. No further action would be required.
The DBA knows a new SQL intensive application is being brought on-line. He worries that his shared pool might be sized too small to handle the new application. If the shared pool is too small, users will consume additional resources in order to complete a database operation. For library cache access, the overhead is primarily the additional CPU resources required to reparse the SQL statement. For dictionary cache access, the overhead is primarily the additional I/O since the dictionary cache references that have been displaced from the cache will need to be refetched from disk.
To prevent any performance degradation that would be noticed by users, he decides to proactively monitor the performance of the shared pool.
Create an event through the Oracle Enterprise Manager Event Management System that will monitor the performance of the shared pool. Since the shared pool contains the library cache and the data dictionary cache, the efficiency of both of these caches should be monitored to determine whether or not the shared pool requires tuning. If either of these caches are performing poorly, the DBA wants to be notified. The steps to create the event set are:
Performance - Instance Activity:
Library Cache Hit % -- monitors library cache efficiency as measured by the miss ratio. It records the percentage of times the fully parsed or compiled representation of PL/SQL blocks and SQL statements are not already in memory.
Data Dictionary Hit % -- monitors dictionary cache efficiency as measured by the miss ratio. It records the percentage of times the dictionary data was not already in memory.
If the library cache miss ratio or the data dictionary miss ratio is high then the DBA has several options:
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|