os: centos 7.4
db: oracle 11.2.0.4

tps全称为 Transactions Per Second,是数据库吞吐量的重要指标。

指标分类及名称

select *from v$metricgrouporder by group_id;GROUP_ID NAME                                                            INTERVAL_SIZE MAX_INTERVAL
---------- ---------------------------------------------------------------- ------------- ------------0 Event Metrics                                                            6000        11 Event Class Metrics                                                      6000       602 System Metrics Long Duration                                             6000       603 System Metrics Short Duration                                            1500       124 Session Metrics Long Duration                                            6000       605 Session Metrics Short Duration                                           1500        16 Service Metrics                                                          6000       607 File Metrics Long Duration                                              60000        69 Tablespace Metrics Long Duration                                             6000        010 Service Metrics (Short)                                                      500       2411 I/O Stats by Function Metrics                                           6000       6012 Resource Manager Stats                                                  6000       6013 WCR metrics                                                                 6000       6014 WLM PC Metrics                                                           500       2414 rows selected.
select *from v$metricnamewhere 1=1and metric_unit='Transactions Per Second'
;GROUP_ID GROUP_NAME                               METRIC_ID  METRIC_NAME                 METRIC_UNIT
---------- --------------------------------------- ---------- -------------------------- ------------------------------2 System Metrics Long Duration               2003  User Transaction Per Sec   Transactions Per Second3 System Metrics Short Duration             2003  User Transaction Per Sec   Transactions Per Second

ash

select *from gv$sysmetric t0where 1=1and t0.metric_id=2003and t0.metric_unit='Transactions Per Second'order by t0.begin_time desc,t0.inst_id
;select *from gv$sysmetric_history t0where 1=1and t0.metric_id=2003and t0.metric_unit='Transactions Per Second'order by t0.begin_time desc,t0.inst_id
;select *from gv$sysmetric_summary t0where 1=1and t0.metric_id=2003and t0.metric_unit='Transactions Per Second'order by t0.begin_time,t0.inst_id
;

V$SYSMETRIC displays the system metric values captured for the most current time interval for both the long duration (60-second) and short duration (15-second) system metrics.
V$SYSMETRIC_HISTORY displays all system metric values available in the database. Both long duration (60-second with 1 hour history) and short duration (15-second with one-interval only) metrics are displayed by this view.
V$SYSMETRIC_SUMMARY displays a summary of all system Metric values for the long-duration system metrics. The average, maximum value, minimum value, and the value of one standard deviation for the last hour are displayed for each metric item.

awr

select to_char(t0.begin_time,'yyyy-mm-dd hh24:mi:ss') as begin_time_str,t0.snap_id,t0.instance_number,trunc(t0.value) as trunc_value,t0.*from dba_hist_sysmetric_history t0where 1=1and t0.begin_time between sysdate - 3and sysdateand t0.group_id=2and t0.metric_id=2003and t0.metric_unit='Transactions Per Second'order by t0.begin_time ,t0.snap_id, t0.instance_number
;select to_char(t0.begin_time,'yyyy-mm-dd hh24:mi:ss') as begin_time_str,t0.snap_id,t0.instance_number,trunc(t0.average) as trunc_average,t0.*from dba_hist_sysmetric_summary t0where 1=1and t0.begin_time between sysdate - 3and sysdateand t0.group_id=2and t0.metric_id=2003and t0.metric_unit='Transactions Per Second'order by t0.begin_time ,t0.snap_id, t0.instance_number
;

DBA_HIST_SYSMETRIC_HISTORY externalizes all available history of the system metric values for the entire set of data kept in the database. This view contains snapshots of V$SYSMETRIC_HISTORY.

DBA_HIST_SYSMETRIC_SUMMARY displays a history of statistical summary of all metric values in the System Metrics Long Duration group. This view contains snapshots of V$SYSMETRIC_SUMMARY.

参考:
https://docs.oracle.com/cd/E11882_01/server.112/e40402/dynviews_3090.htm#REFRN30343
https://docs.oracle.com/cd/E11882_01/server.112/e40402/dynviews_3091.htm#REFRN30344
https://docs.oracle.com/cd/E11882_01/server.112/e40402/dynviews_3092.htm#REFRN30345

https://docs.oracle.com/cd/E11882_01/server.112/e40402/statviews_4059.htm#REFRN23451
https://docs.oracle.com/cd/E11882_01/server.112/e40402/statviews_4060.htm#REFRN23452

oracle 查看指标 tps(Transactions Per Second)相关推荐

  1. oracle查看数据库字符编码,oracle 查看、批改字符集编码

    当前位置:我的异常网» 数据库 » oracle 查看.批改字符集编码 oracle 查看.批改字符集编码 www.myexceptions.net  网友分享于:2013-07-19  浏览:3次 ...

  2. Oracle查看SQL执行计划的方式

    Oracle查看SQL执行计划的方式 获取Oracle sql执行计划并查看执行计划,是掌握和判断数据库性能的基本技巧.下面案例介绍了多种查看sql执行计划的方式: 基本有以下几种方式: 1.通过sq ...

  3. oracle的系统和对象权限 与 Oracle 查看用户权限

    oracle的系统和对象权限 alter any cluster 修改任意簇的权限 alter any index 修改任意索引的权限 alter any role 修改任意角色的权限 alter a ...

  4. oracle查看相关用户表

    oracle查看相关用户表 select TABLE_NAME from user_tables  //当前用户表 select TABLE_NAME from dba_tables  //所有用户表 ...

  5. Oracle查看用户权限

    模拟MySQL的show grants命令 首先创建用户,并且将示例帐号的表授权给他. sqlplus / as sysdba drop user edmond cascade; create use ...

  6. oracle在哪些系统运行,ORACLE 查看系统运行情况

    1,查看系统当前连接会话数 select s.value,s.sid,a.username from v$sesstat S,v$statname N,v$session A where n.stat ...

  7. oracle查看执行最慢与查询次数最多的sql语句及其执行速度很慢的问题分析

    oracle查看执行最慢与查询次数最多的sql语句 注:本文来源 于<oracle查看执行最慢与查询次数最多的sql语句> 前言 在ORACLE数据库应用调优中,一个SQL的执行次数/频率 ...

  8. oracle 查看 用户,用户权限,用户表空间,用户默认表空间

    查看用户和默认表空间的关系. select username,default_tablespace from dba_users; 1.查看表结构:desc表名 2.查看当前用户的表: select ...

  9. oracle查看jdk文档_Oracle JDK 9 Early Access文档已更新

    oracle查看jdk文档 Raymond Gallardo于2017年4月4日发布的针对Oracle JDK 9的抢先 访问文档已更新,今天宣布对Oracle JDK9文档的抢先访问页面进行了更新. ...

最新文章

  1. 最先进的开源游戏引擎KlayGE 3.12.0发布
  2. 读博难?DeepMind科学家Ruder提出读博/做研究的十条锦囊
  3. Linux学习总结(7)——阿里云centeros服务器上安装 jdk,tomcat,mysql
  4. LaTeX去掉默认显示日期时间
  5. Visual Studio 15.5预览版先睹为快
  6. windows下面怎么github ssh 公钥,然后克隆项目
  7. android 5.0新增 ui 控件,android3.0新增ui控件示例说明.doc
  8. top,parent,opener,iframe
  9. 华为m6升级鸿蒙,华为鸿蒙系统再传喜讯!14款华为旧旗舰喜提新系统:大幅度换血...
  10. 【遥感影像】Python GDAL 像素与坐标对应
  11. 页面静态化3 --- 伪静态技术
  12. AIX PV VG LV详解
  13. android开机动画多长时间_Android开机动画及黑屏
  14. [练习]QQ登陆界面-测试用例的编写
  15. [BScroll warn]: Can not resolve the wrapper DOM.
  16. Debian8.8开发环境(五)vim设置文件和vunlde的配置
  17. 微生物组-扩增子16S分析和可视化(2022.10)
  18. [转贴]比《同居密友》更搞笑的【阿奴与唐玉】陶海风格
  19. 2017年总结及2018年规划
  20. DRM系列(10)之drm_read

热门文章

  1. 用C++开发STM32程序
  2. 推荐系统引擎——模型(1)
  3. OMAP3630 I2C device驱动
  4. css3动态测试网址
  5. iOS SDWebImage缓存
  6. php前台限制输入text字符,限制字符输入数功能(jquery版和原生JS版)
  7. 灰度共生矩阵的生成和理解
  8. Toast类实现消息提示框
  9. Binutils 相关工具记录
  10. 8B10B编解码原理与FPGA代码