Oracle OS Watcher installation and error handling

Source: Internet
Author: User
1. Overview
--------------
With the Oracle OSW tool, you can visually display the CPU, memory, disks, and other resources of the system. It has an intuitive effect on understanding and understanding the overall resource usage.
The OSW tool is composed of a series of shell scripts,
Oswatcher. Sh is the main program, derived from many single shell processes, using UNIX operating system diagnostic tools to collect specific types of data
OSW calls a specific operating system tool. Each tool is used as a specific background process for data collection.
Generally, the following tools are supported:
PS
Top
Mpstat
Iostat
Netstat
Traceroute
Vmstat
The output results can be displayed graphically. Of course, you can also use shell scripts to process the collected archive information.
--------------
2. supported platforms
--------------
OSW can run on the following platforms:
AIX
Tru64
Solaris
HP-UX

Linux

This tool needs to be downloaded from metlinke, but you can only pay 5 points for downloading my resources.

Http://download.csdn.net/detail/zengmuansha/4606389

This tool can be installed under the Oracle user, and does not need to be installed under the root

Oracle] tar-xvf osw301.tar

> Cd osw

4. Start and Stop
--------------
./StartOSW. sh 60 10
./StopOSW. sh
Nohup./startOSW. sh 60 10 &

60: data collection interval, in seconds
10: how long the data is collected, in hours

5. graphical output

[Oracle @ node1 osw] $ java-jar oswg. jar-I archive/
Warning:-jar not understood. Ignoring.
Exception in thread "main" java. lang. NoClassDefFoundError: oswg. jar
At gnu. gcj. runtime. FirstThread. run () (/usr/lib/libgcj. so.5.0.0)
At _ Jv_ThreadRun (java. lang. Thread) (/usr/lib/libgcj. so.5.0.0)
At _ Jv_RunMain (java. lang. Class, byte const, int, byte const, boolean) (/usr/lib/libgcj. so.5.0.0)
At _ gcj_personality_v0 (/opt/oracle/database/admin/dbsrcipt/osw/java. version = 1.4.2)
At _ libc_start_main (/lib/tls/libc-2.3.4.so)
AT _ jv_registerclasses (/opt/Oracle/database/admin/dbsrcipt/OSW/Java. Version = 1.4.2)

Check the Java version

#Java-version
Java version "1.4.2"
Java (TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, j2re 1.4.2 ibm aix build ca142-20050609 (JIT enabled: jitc ))

[Oracle @ node11g ~] $Which java
/Usr/bin/Java

---- Execute 10 Gb before running:
[Oracle @ node10g ~]$ Export Path = $ ORACLE_HOME/JRE/1.4.2/bin: $ path
---- Run the following command before running the 11g command:
[Oracle @ node11g ~] $Export Path = $ ORACLE_HOME/JDK/JRE/bin: $ path

[Oracle @ node1 OSW] $ Java-jar oswg. jar-iarchive/

 

Starting oswg v3.0.1

Oswatcher graph written by Oracle centerof expertise

Copyright (c) 2008 by Oracle Corporation

 

Parsing data. Please wait...

 

 

Parsing file node‑vmstat_12.09.28.1100.dat...

Invalid data found on line 8

Parsing file node‑vmstat_12.09.28.1700.dat...

 

Parsing Completed.

 

 

 

 

 

Enter 1 to Display CPU Process Queue Graphs

Enter 2 to Display CPU Utilization Graphs

Enter 3 to Display CPU Other Graphs

Enter 4 to Display Memory Graphs

 

Enter 6 to Generate All CPU Gif Files

Enter 7 to Generate All Memory Gif Files

 

Enter L to Specify Alternate Location ofGif Directory

Enter T to Specify Different Time Scale

Enter D to Return to Default Time Scale

Enter R to Remove Currently DisplayedGraphs

Enter P to Generate A Profile

Enter Q to Quit Program

 

Please Select an Option: 6

Xlib: connection to ": 0.0" refused by server

Xlib: No protocol specified

 

Exception in thread "main" java. lang. InternalError: Can't connect to X11 window server using ': 0.0' as thevalue of the DISPLAY variable.

At sun. awt. X11GraphicsEnvironment. initDisplay (Native Method)

At sun. awt. X11GraphicsEnvironment. <clinit> (Unknown Source)

At java. lang. Class. forName0 (Native Method)

At java. lang. Class. forName (Unknown Source)

At java. awt. GraphicsEnvironment. getLocalGraphicsEnvironment (UnknownSource)

At java. awt. Window. init (Unknown Source)

At java. awt. Window. <init> (Unknown Source)

At java. awt. Frame. <init> (Unknown Source)

At java. awt. Frame. <init> (Unknown Source)

At OSWGraph. GraphObject. graphMetric (GraphObject. java: 145)

At OSWGraph. OSWGraph. main (osswgraph. java: 616)

Edit Environment Variables

[Root @ node1 ~] # Vi/home/oracle/. bash_profile

Export DISPLAY = 192.168.30.42: 0.0 -- Client IP Address

[Root @ node1 ~] # Source/home/oracle/. bash_profile

[Root @ node1 ~] # Su-oracle

[Oracle @ node1 osw] $ java-jar oswg. jar-iarchive/

 

Starting OSWg V3.0.1

OSWatcher Graph Written by Oracle Centerof Expertise

Copyright (c) 2008 by Oracle Corporation

 

Parsing Data. Please Wait...

 

 

Parsing file node‑vmstat_12.09.28.1100.dat...

Invalid data found on line 8

Parsing file node‑vmstat_12.09.28.1700.dat...

Parsing Completed.

-- Input parameters output different types of GIF

Enter 1 to Display CPU Process Queue Graphs

Enter 2 to Display CPU Utilization Graphs

Enter 3 to Display CPU Other Graphs

Enter 4 to Display Memory Graphs

 

Enter 6 to Generate All CPU Gif Files

Enter 7 to Generate All Memory Gif Files

 

Enter L to Specify Alternate Location ofGif Directory

Enter T to Specify Different Time Scale

Enter D to Return to Default Time Scale

Enter R to Remove Currently DisplayedGraphs

Enter P to Generate A Profile

Enter Q to Quit Program

 

Please Select an Option: 6

Generating filegif/Sep28171028_1348827319/OSWg_ OS _Run_Queue.gif

Generating filegif/Sep28171028_1348827319/OSWg_ OS _Block_Queue.gif

Generating filegif/Sep28171028_1348827319/OSWg_ OS _Cpu_Idle.gif

Generating filegif/Sep28171028_1348827319/OSWg_ OS _Cpu_System.gif

Generating filegif/Sep28171028_1348827319/OSWg_ OS _Cpu_User.gif

Generating filegif/Sep28171028_1348827319/OSWg_ OS _Cpu_Interrupts.gif

Generating filegif/Sep28171028_1348827319/OSWg_ OS _Context_Switches.gif

The GIF image generated in the GIF directory should be dragged to WINDOWS.

 

Enter 1 to Display CPU Process Queue Graphs

Enter 2 to Display CPU Utilization Graphs

Enter 3 to Display CPU Other Graphs

Enter 4 to Display Memory Graphs

 

Enter 6 to Generate All CPU Gif Files

Enter 7 to Generate All Memory Gif Files

 

Enter L to Specify Alternate Location ofGif Directory

Enter T to Specify Different Time Scale

Enter D to Return to Default Time Scale

Enter R to Remove Currently DisplayedGraphs

Enter P to Generate A Profile

Enter Q to Quit Program

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.