--TPS
select stat_val from sys.v$sysstat where name = 'transaction total count';
--QPS
select stat_val from sys.v$sysstat where name = 'select statements';
--每秒读取字节数
select stat_val * page from sys.v$sysstat where name = 'physical read count';
--每秒写入字节数
select stat_val * page from sys.v$sysstat where name = 'physical write count';
对应的查询SQL都是查询数据总量,所以收集信息的值为两次查询SQL获取结果的差值再除以两次查询SQL时间间隔的秒数。需要ENABLE_MONITOR = 1。