oracle性能监控脚本 Mother Of All Tuning Scripts (MOATS)

简介: 这个名字牛吗?Mother Of All Tuning Scripts (MOATS)下载地址: https://github.com/oracle-developer/moats,下载后

这个名字牛吗?Mother Of All Tuning Scripts (MOATS)

下载地址: https://github.com/oracle-developer/moats,下载后

scutech@Yao:~/Downloads/moats-master$ ll
total 92
drwxr-xr-x  2 scutech scutech  4096 5月  29 03:53 ./
drwxr-xr-x 17 scutech scutech  4096 8月  28 16:03 ../
-rw-r--r--  1 scutech scutech   626 5月  29 03:53 LICENSE
-rw-r--r--  1 scutech scutech   995 5月  29 03:53 moats_install.sql
-rw-r--r--  1 scutech scutech 35093 5月  29 03:53 moats.pkb
-rw-r--r--  1 scutech scutech  3368 5月  29 03:53 moats.pks
-rw-r--r--  1 scutech scutech  1281 5月  29 03:53 moats_privs_grant.sql
-rw-r--r--  1 scutech scutech  1346 5月  29 03:53 moats_privs_revoke.sql
-rw-r--r--  1 scutech scutech  1089 5月  29 03:53 moats_remove.sql
-rw-r--r--  1 scutech scutech   101 5月  29 03:53 moats_settings.sql
-rw-r--r--  1 scutech scutech  3668 5月  29 03:53 moats_types.sql
-rw-r--r--  1 scutech scutech    71 5月  29 03:53 moats_views.sql
-rw-r--r--  1 scutech scutech 10328 5月  29 03:53 README.md

安装

SQL> @moats-master/moats_install.sql
**************************************************************************
**************************************************************************
MOATS Installer (for 10.2+ databases)
=====================================
This will install MOATS v1.0 into the current schema.
......

设置窗口


SQL> set serveroutput on format wrapped
SQL> exec moats.format_window
--------------------------------------------------------------------------------
------------------------------
MOATS: The Mother Of All Tuning Scripts v1.0 by Adrian Billington & Tanel Poder
      http://www.oracle-developer.net & http://www.e2sn.com

运行

SQL> set arrays 72 lines 110 head off tab off pages 0
SQL> SELECT * FROM TABLE(moats.top(5));

查看结果:

image.png

相关文章
|
6月前
|
SQL Oracle 关系型数据库
【YashanDB知识库】共享利用Python脚本解决Oracle的SQL脚本@@用法
【YashanDB知识库】共享利用Python脚本解决Oracle的SQL脚本@@用法
|
6月前
|
SQL Oracle 关系型数据库
【YashanDB知识库】共享利用Python脚本解决Oracle的SQL脚本@@用法
本文来自YashanDB官网,介绍如何处理Oracle客户端sql*plus中使用@@调用同级目录SQL脚本的场景。崖山数据库23.2.x.100已支持@@用法,但旧版本可通过Python脚本批量重写SQL文件,将@@替换为绝对路径。文章通过Oracle示例展示了具体用法,并提供Python脚本实现自动化处理,最后调整批处理脚本以适配YashanDB运行环境。
|
机器学习/深度学习 Oracle 关系型数据库
Oracle 19c单机一键安装脚本分享
Oracle 19c单机一键安装脚本分享
611 2
|
Oracle 安全 关系型数据库
|
存储 Oracle 关系型数据库
|
存储 Oracle 关系型数据库
关系型数据库Oracle运行RMAN脚本
【7月更文挑战第23天】
166 4
|
监控 Oracle 算法
|
Oracle 关系型数据库 数据库
关系型数据库Oracle编写RMAN脚本
【7月更文挑战第23天】
120 2
|
Oracle 关系型数据库 数据库
Oracle数据库备份脚本分享-Python
Oracle数据库备份脚本分享-Python
354 0
|
Oracle 安全 关系型数据库
Oracle安装部署再也不用头疼了,分享一个实用的一键部署脚本,建议收藏!
Oracle安装部署再也不用头疼了,分享一个实用的一键部署脚本,建议收藏!
302 0

推荐镜像

更多