oracle 也推出来了数据库的top命令,叫做oratap,是使用c语言写的,目前只支持linux x86与x64的11gR2与12cR1

使用说明

[oracle@xifenfei tmp]$ ./oratap -h

oratop: Release 13.2.4

Usage:

oratop [ [Options] [Logon] ]

Logon:

{username[/password][@connect_identifier] | / }

[AS {SYSDBA|SYSOPER}]

Options:

-i : Interval Delay (requires value in seconds, default: 3s)

-f : Long format for header & section 4 (default: 80 column)

-r : IORL mode for Section 2 (default is IOPS)

-d : Real-Time Top 5 Wait Events (default: Cumulative)

-m : MODULE/ACTION mode for Section 4 (default: USER/PROGRAM_NAME)

-b : Batch mode

-n : maximum number of iterations (requires number)

-h : Help

使用说明

1. Log in to the system as the Oracle RDBMS software installation owner

2. Stage the oratop executable on the server on which the tool will be executed. On a RAC system it is only necessary to stage the executable on one node as it is RAC aware.

3. Change the name of the executable, eg.

$ mv oratop* oratop

4. Validate the permissions for oratop are 755 (-rwxr-xr-x). If the permissions are not currently set to 755, set the permissions on oratop as follows:

$ chmod 755 oratop

5. Configure the execution environment as follows (if not already set accordingly)

$ export TERM=xterm #or vt100

$ 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

6. Invoke the tool to monitor a local database as follows (interval can be any interval in seconds):

$ ./oratop -i 10 / as sysdba

7. Non-dba privileged user requires specific grants to use the tool. See User Guide for grants required.

8. Databases can be monitored remotely using a tns alias as described in the oratop Users Guide .

$ ./oratop -i 10 username/password@tns_alias

$ ./oratop -i 10 system/manager@tns_alias

9. To exit the program simply press the keyboard key “q”. To abort, CTRL-C.

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)

使用效果

[oracle@xifenfei tmp]$ ./oratap -i 10 chf/xifenfei@ora11g_p

oratop: Release 13.2.4 Production on Mon Aug 26 03:10:17 2013

Copyright (c) 2011, Oracle. All rights reserved.

Processing ...

oratop 1: 148 ora1 03:10:13 up 3.3m, 1 ins, 301M mt, 3 sn, 1 us, 6% db

ID %CU HLD MBPS IOPS %FR PGAU ASC ASI ASW ASP AAS USN TPS UCPS SSRT DBC DBW

1 0 0 0 1 5 133M 1 0 0 0 0.1 3 0 2 0u 0 0

EVENT (Cumulative) TOT WAITS TIME(s) AVG_MS PCT WAIT_CLASS

DB CPU 218 68

control file parallel write 5535 30 5.5 9 System I/O

db file sequential read 10080 27 2.7 8 User I/O

os thread startup 198 25 124.9 8 Concurrency

db file async I/O submit 2575 21 8.0 7 System I/O

ID SID SPID USR PROG PGA OPN SQLID/BLOCKER E/T STATUS STE WAIT_EVENT W/T

1 148 8254 CHF DEDI 2M SEL 4agz3g5aajkdc 0 ACTIVE CPU wa for cpu 0u

参考文档:

oratop – utility for near real-time monitoring of databases, RAC and Single Instance (Doc ID 1500864.1)

oracle的top命令,ORACLE db top 命令(oratop)相关推荐

  1. oracle中top命令详解,top命令详解示例

    top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器.下面详细介绍它的使用方法.top是一个动态显示过程,即可以通过用户按键来不断刷新 ...

  2. oracle 当前top sql,Oracle top 查询TOP SQL

    有时Oracle数据库服务器,系统CPU爆高,通过Top命令可以查看到占用CPU最高的进程 我们需要记住前几个TOP的pid号,带入下面的SQL,到数据库中查询运行的进程.服务器.用户.SQL.等待等 ...

  3. linux命令详解——top

    简介 TOP是一个动态显示过程,即可以通过用户按键来不断刷新当前状态.如果在前台执行该命令,它将独占前台,直到用户终止该程序为止.比较准确的说,top命令提供了实时的对系统处理器的状态监视.它将显示系 ...

  4. linux命令stat和top,Linux Top 命令解析 比较详细

    TOP是一个动态显示过程,即可以通过用户按键来不断刷新当前状态.如果在前台执行该命令,它将独占前台,直到用户终止该程序为止.比较准确的说,top命令提供了实时的对系统处理器的状态监视.它将显示系统中C ...

  5. oracle创建目录的命令,使用create database命令手工创建Oracle数据库

    使用create database命令手工创建Oracle数据库 1. 设置环境变量ORACLE_SID export ORACLE_SID=mdb 2. 创建数据库初始化参数 cd $ORACLE_ ...

  6. oracle集群crs,oracle rac集群 crs常用命令(转)

    from: 常用的crs命令如下: $ORA_CRS_HOME/bin/crs_stat –t 此命令主要用来检查crs资源状态 例如 [oracle@rac2 css]$ $ORA_CRS_HOME ...

  7. 如何删除服务里oracle,oracle rac如何删除服务及srvctl命令使用帮助介绍

    oracle rac如何删除服务及srvctl命令使用帮助介绍 oracle@rac2 admin]$ crs_stat -t Name Type Target State Host -------- ...

  8. exp oracle所有数据库命令,oracle数据库exp命令

    通过exp命令对Oracle数据库进行备份操作(提供两种情况的备份:备份本地,备份远程的数据库) 通过exp命令可以对Oracle数据库进行备份操作,其命令含义是:exp 用户名/密码@数据库所在ip ...

  9. force oracle delete type,3.Oracle Interface Configuration Tool (OIFCFG) 命令参考

    Oracle Interface Configuration Tool (OIFCFG) 命令参考 2018-01-25 oracle 宅必备 这节讲集群中OIFCFG工具的一些东西 1. 关于OIF ...

最新文章

  1. C Primer Plus (第五版) 第十章 数组和指针 编程练习
  2. 第06讲:多路加速,了解多进程基本原理
  3. 微服务整合系列整个代码
  4. 设计模式(八) : 结构型模式--装饰模式
  5. 更改Xcode的缺省公司名(转)
  6. 小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_3-3.Vidoe相关接口完善和规范协议...
  7. windows server上通过关闭端口有效防治勒索病毒
  8. word批量调整图片大小:
  9. go语言不用complex包实现二值运算复数计算器
  10. python创始人国籍_2018年4月TIOBE排行榜前10的编程语言创始人
  11. Android仿微信朋友圈查看全文/收起功能(雷惊风)
  12. 2023第八届少儿模特明星盛典 福州赛区 初赛圆满收官
  13. pod构建的ios版本引发 react-native-safe-area-context RN项目的pod-install构建异常
  14. 奥运英语[5] 很高兴再次见到你 Good to see you again.
  15. Anaconda环境下离线安装dlib库,在线安装很多问题报错,离线安装速度快稳定
  16. 《地理信息系统导论》第6章 几何变换 复习题
  17. UR机械臂正逆运动学求解
  18. 入门级3D打印机的功能是怎样的?
  19. mac 修改host后如何立即生效
  20. Django 搭建博客网站-task03:Models的编写

热门文章

  1. 光功率 博科交换机_希望查询7604,CE3000等交换机读取光口光功率的oid,以及电源状态的oid...
  2. 记一次蚂蚁金服面试经历
  3. [USACO17OPEN Pt T2]Switch Grass 切换牧草
  4. 市面上几种主流的机器人接口API汇总需要用的来拿。
  5. 读安晓辉之《Qt Quick 核心编程》
  6. Field baseMapper in com.xxx required a single bean,but 100 were found --------Mybatis-Plus
  7. GNN论文周报 | 来自北航、中科院、MSRA、新加坡国立大学、慕尼黑工业大学等机构前沿论文研究...
  8. 使用css3和h5实现幻灯片,点击切换图片效果
  9. 华为私有云的搭建方案_网盘限速太坑爹,用它小白也能搭建私有云
  10. 深度学习模型CPT的环境配置经验