服务器之家:专注于服务器技术及软件下载分享
分类导航

Mysql|Sql Server|Oracle|Redis|MongoDB|PostgreSQL|Sqlite|DB2|mariadb|Access|数据库技术|

服务器之家 - 数据库 - Oracle - Oracle 轻量级实时监控工具 oratop详解

Oracle 轻量级实时监控工具 oratop详解

2021-04-25 18:18JiekeXu Oracle

这篇文章主要介绍了Oracle 轻量级实时监控工具 oratop,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下

今天和大家聊聊 oracle 自带的 oratop 轻量级实时监控小工具!

众所周知,oracle 最强大的监控工具就是 em(enterprise manager)企业管理器。这是最为人熟知的,估计也是接触最多的一款监控产品了。然而还有功能更加强大的监控工具:emdc、emgc、emdc、emcc。

  • emdc:database control
  • emgc:grid control
  • emdc:em database express 12c
  • emcc:cloud control

不过今天的主角不是这些,以上每一款介绍都需要大量的篇幅来描述,安装、卸载、应用等等。感兴趣的朋友可自行查看官方文档,自行阅读,这里暂时不在讨论了。

docs.oracle.com -> database -> enterprise manager
https://docs.oracle.com/en/enterprise-manager/index.html
https://docs.oracle.com/en/enterprise-manager/earlier.html

Oracle 轻量级实时监控工具 oratop详解

刚好公司中也用到了 emcc 做备份相关的工作,等有机会在介绍这一块的知识吧,这里顺便截图如下:

Oracle 轻量级实时监控工具 oratop详解

Oracle 轻量级实时监控工具 oratop详解

我们今天要说的主题是:oracle 轻量级实时监控工具:oratop。

oratop 轻量级实时监控工具, 它不需要安装在被监控的数据库服务器上,只要有 oracle 的客户端就行了,可以采用类似 sqlplus 的方式连接被监控的数据库。oratop 适用于 12cr2 - 21c 只需配置环境变量即可使用,不过 11gr2 和 12cr1 需单独安装,最低也是支持 11gr2(11.2.0.3, 11.2.0.4)。 oratop 工具允许有特权的用户监视 oracle 数据库活动。它几乎实时地动态运行,并为正在运行的数据库提供一个活动窗口。

在我的 oracle 19c 中只需要配置环境变量便可以使用,不需额外安装。

使用时,用 oratop -h 获取更多的帮助,oratop / as sysdba 直接登录当前主机,可进行简单的监控,当然也可以作为客户端进行远程监控,方式如下:

Oracle 轻量级实时监控工具 oratop详解

Oracle 轻量级实时监控工具 oratop详解

oracle 支持的最低版本是 11gr2, mos note(doc id 1500864.1) 中提供了与 11gr2 和
12cr1 oracle 版本兼容的独立 oratop 下载版本。对于 12cr2 以后的 oracle 版本, 它位于文件夹 $oracle_home/suptools/oratop 下。此外, 它还与 oracle 跟踪文件分析器(tfa) 捆绑在一起。

Oracle 轻量级实时监控工具 oratop详解

主要监控有(key motivations include):

  • 监控当前的数据库活动,monitoring current database activities,
  • 监控数据库性能,database performance,
  • 识别争用和瓶颈。identifying contentions and bottleneck

特色亮点(features highlights)

  • 进程和 sql 监视 process & sql monitoring
  • 实时等待事件监控 real time wait events
  • 支持 adg 监控 active data guard support
  • 支持多租户数据库(cdb) (仅种子级) multitenant database (cdb) support (seed level only)

oratop 现在已经和 trace file analyzer collector (tfa)以及支持工具包中的其他工具一起发布和集成了。因此,获得 oratop 的首选方法不是单独下载 oratop,而是下载 tfa 的最新版本。这种集成方式任何时候 tfa 升级,最新版本的 oratop 和其他支持工具包也将获得。如果 gi 版本是11.2.0.4 或 12.1.0.2,那么将自动安装 tfa。在任何一种情况下,我们建议 tfa 安装是从 tfa collector -增强诊断收集工具(doc id 1513912.1)升级到最新版本,以便获得支持工具第一次与 tfa 版本 12.1.2.3.0 绑定的捆绑包,以及各种其他新特性、bug 修复和优化。总之就是一句话,是说 12.1.2.3.0 以后的版本才有 oratop 这个小工具,不过,我这里也下载了 11gr2 版本的:11gr2 on linux x86-64  oratop.rdbms_11.2_linux_x64,点击此链接下载  https://www.modb.pro/download/39702  或者在本公众号后台回复【oratop】获取 11gr2 版本。

以下是我个人单机 11gr2 环境,上传此文件,简单配置环境变量即可使用。简单方便又好用,可以看到版本是 14.2,在 19c 中有所更新,版本是 15.0。

Oracle 轻量级实时监控工具 oratop详解

更多内容请参考 mos 文档:oratop - utility for near real-time monitoring of databases, rac and single instance(doc id 1500864.1),关注公众号后台回复【oratop】可一起获取本文档。

Oracle 轻量级实时监控工具 oratop详解

最后,还有 orachk 工具也是一个很不错的工具,等下次要是有时间在一起学习使用吧,感兴趣的小伙伴可查看官方文档获取更多资料。

autonomous health framework (ahf) - including tfa and orachk/exachk (doc id 2550798.1)

get proactive with oracle database diagnostic tools (doc id 1459344.1)
best practices
最佳实践

orachk — take action
orachk replaces the popular raccheck tool, extending the coverage based on prioritization of top issues reported by users, to proactively scan for known problems including database area. orachk scans and provides a high level report showing your system health risks with the ability to drill down into specific problems and understand their resolutions.

orachk取代了流行的raccheck工具,基于用户报告的最重要问题的优先级扩展了覆盖范围,可以主动扫描已知的问题,包括数据库区域。orachk扫描并提供一个高层次的报告,显示您的系统健康风险,并具有深入研究特定问题并理解其解决方案的能力。

 

到此这篇关于oracle 轻量级实时监控工具 oratop详解的文章就介绍到这了,更多相关oracle 监控工具 oratop内容请搜索服务器之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持服务器之家!

原文链接:https://blog.csdn.net/JiekeXu/article/details/114381516

延伸 · 阅读

精彩推荐