Phone (800) 766-1884 for immediate Oracle support & training
Free Oracle Tips

Home Home
Oracle Monitoring
Growth Monitoring
Emergency DBA Support
Installs & Upgrades
Oracle Migration
Oracle Support Plan
Oracle SQL Tuning
Oracle Performance Tuning

 Our Remote DBA Clients

 

Free Oracle Tips


 
HTML Text

Free Oracle App Server Tips


 
HTML Text

   Donald K. Burleson

   Oracle Utilities Tips

Modifying the Event Handler

Modifying the event handler requires exporting it, editing it, and then loading it back into the OMS via the import command.  The export command simply specifies the name of the file in which to export the event handler.  The export command below will populate the file myhandler with the contents of the event handler.

        oemctl export eventhandler myhandler

The event handler can then be edited with any text editor. On Windows systems, notepad will work (Figure 5.4).  

The event handler file contains three main regions – blackouts, filters, and templates.

Blackouts are used to tell the OMS not to act on an event. For certain nodes, a DBA may not care about some events and they should not be handled.  A setting of true tells the event handler not to process the event.  A setting of false indicates that no blackout exists and the event should be processed.

Filters are used to determine which events are passed on to event logging or command execution.  Each filter has a unique name.  The default event handler above allows all events to be passed to both the command executor and event logger. 

Templates specify exactly how to respond to the event.  Templates for the event logger will determine how the data is formatted to the log.  Templates specified for command execution include the actual OS command to execute for the event.  

 

After any changes are made, the event handler needs to be imported back into the OMS:

 

oemctl import eventhandler myhandler

Now the OMS can be started again.

oemctl start OMS

To disable defined event handlers, execute the following command:

 

oemctl disable eventhandler

 

And finally, to view any errors encountered while using oemctl, view the log file in the $ORACLE_HOME/sysman/log directory.



To learn more about these techniques, see the book "Advanced Oracle Utilities: The Definitive Reference". 

You can buy it directly from the publisher and get instant access to the code depot of utilities scripts.

 

 


    Need an Oracle Health Check?

Does your boss blame you for an Oracle performance problem? 
Need to prove that your database is properly optimized?

BC Oracle performance guru's can quickly verify every aspect of your Oracle database and provide a complete certification that your database is fully optimized.

 

Burleson Oracle consulting & training



 

 

WISE Oracle monitoring software
 

 

Oracle forum for DBA 

 

Rampant TechPress Oracle book publisher

image 

  

 
E-mail us for BC Oracle support:   

Copyright © 1996 -  2012 by Burleson Enterprises. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.