活着,寻找生存。
分类: Oracle
2015-11-24 18:54:19
Applies to:
Oracle Database - Enterprise Edition - Version 11.2.0.3 to 11.2.0.4 [Release 11.2]
Linux x86-64
Linux x86
Purpose
oratop is a utility similar to the unix OS utility top which gives a overview of database performance and can be used in combination with top to get a more complete overview of system performance
Requirements
Supported Platforms
Linux x86
Linux x86-64
NOTE: oratop can be used to monitor databases on other platforms but the executable must run on Linux with an Oracle client.
To monitor databases on other platforms simply define an alias in tnsnames.ora of the linux client and connect to the databases remotely as you would with sqlplus
Supported Oracle Releases
11gR2
12cR1
Configuring
Download the oratop executable for 11gR2 on Linux x86-64 .
Download the oratop executable for 12c on Linux x86-64 for use with 12c clients .
Download the oratop executable for 11gR2 on Linux x86-32 .
Download the oratop executable for 12c on Linux x86-32 for use with 12c clients .
Please download and review the for specific instructions on how to configure and run oratop. A Quick Start Guide is provided in the Instructions section of this Note.
Instructions
Quick Start Guide
Note: For detailed instructions on how to run oratop please download and review the latest .
Running oratop
$ chmod 755 oratop
$ export ORACLE_HOME=<11.2 database home>
$ export LD_LIBRARY_PATH=$ORACLE_HOME/lib
$ export PATH=$ORACLE_HOME/bin:$PATH
$ export ORACLE_SID= #only needed if connecting to a local database
$ ./oratop -i 10 / as sysdba
$ ./oratop -i 10 system/manager@tns_alias
Troubleshooting:
If you receive an error similar to
./oratop: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory
that is an indication that libclntsh.so.11.1 was not found in the path defined in LD_LIBRARY_PATH similar to
$ export LD_LIBRARY_PATH=$ORACLE_HOME/lib (ie., the location of libclntsh.so.11.1)
Caution
This sample code is provided for educational purposes only, and is not supported by Oracle Support. It has been tested internally, however, we do not guarantee that it will work for you. Ensure that you run it in your test environment before using.
Script
The tool is a compiled c program.
Sample Output
mos文档:oratop - Utility for Near Real-time Monitoring of Databases, RAC and Single Instance (文档 ID 1500864.1)