Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 

 

 

Oracle OS watcher (OSWatcher) tips


Oracle Tips by Burleson Consulting

The new Oracle OS watcher (OSWatcher) reports CPU, RAM and Network stress, and is a new alternative for monitoring Oracle servers.  OS Watcher complements the Ion tool for proactive Oracle monitoring.

Also see my Oracle file watcher tips.

Oracle does not run in a vacuum, and itís important to monitor stress on your server, disk, RAM and network.  Oracle provides several tools for monitoring the external environment, including:

For those who do not have a license to access the AWR dba_hist tables (Oracle performance pack), Oracle OS watcher is a free solution for UNIX/Linux RAC shops:

MOSC note 301137.1 has the users guide for Oracle OS Watcher (OSW), a collection of UNIX C shell scripts that help diagnose server and network bottlenecks.  The Oracle OS watcher is nicknamed OSWatcher, and it is user-configurable, collecting one hour worth of OS data at one minute intervals, and then writing the hourís data to an archive flat file...

Actually the sample interval is configurable down to 1 second as opposed to one minute. Default value is 30 seconds.

Oracle OS watcher is especially useful for Linux/UNIX-based RAC systems where monitoring the OS is important for identifying CPU, RAM or network stress.  Oracle OS Watcher may invoke these popular UNIX/Linux utilities, depending on the platform (Solaris, HP/UX, Linux and Tru64):

  • vmstat
  • iostat
  • top
  • netstat
  • traceroute

 Starting Oracle OS Watcher (OSWatcher)

You can start Oracle OS Watcher with this command, specifying the data collection interval (in seconds) and the max number of hours to keep archive files. In this example we submit the collector as a background job to collect every 5 minutes and keep 24 hours of archive files, writing all messages to oswatcher.log:

nohup /u01/app/oracle/scripts/startOSW.sh 300 24 & > /u01/app/oracle/scripts//oswatcher.log

Downloading OSWatcher

You can download Oracle OSWatcher here:

Using Oracle OS Watcher requires knowledge of UNIX and Linux C shell commends syntax, but it removes much of the tedium from OS  monitoring for those who are not licensed to use AWR automatic OS statistics collection.

You can write your own vmstat collection scripts very easily:

# run vmstat and direct the output into the Oracle table . . .
cat /tmp/msg$$|sed 1,3d | awk  '{ printf("%s %s %s %s %s %s\n", $1, $8, $9,
14, $15, $16) }' | while read RUNQUE PAGE_IN PAGE_OUT USER_CPU SYSTEM_CPU
DLE_CPU
   do

      $ORACLE_HOME/bin/sqlplus -s perfstat/perfstat@testsys1<<EOF
      insert into perfstat.stats\$vmstat
                           values (
                             sysdate,
                             $SAMPLE_TIME,
                             '$SERVER_NAME',
                             $RUNQUE,
                             $PAGE_IN,
                             $PAGE_OUT,
                             $USER_CPU,
                             $SYSTEM_CPU,
                             $IDLE_CPU,
                             0
                                  );
      EXIT
EOF
   done

I have exhaustively documented the OS monitoring on Oracle 10g OEM and AWR in our new book "Oracle Tuning, the Definitive Reference", highly recommended. 

You can buy it direct from the publisher for 30% off at the link, and download a comprehensive code depot of AWR scripts.


 

 

��  
 
 

 
 
 
 
oracle dba poster
 

 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2014

All rights reserved by Burleson

Oracle © is the registered trademark of Oracle Corporation.