select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value from v$sysstat where stat_id IN (40000, 40002, 40004, 40006, 40008, 40018) and (con_id > 1000 or con_id = 1) and class < 1000
select /* MONITOR_AGENT */ con_id tenant_id, stat_id, value
from v$sysstat
where stat_id IN (40000, 40002, 40004, 40006, 40008, 40018)
and (con_id > 1000 or con_id = 1)
and class < 1000;
查询解释
stat_id IN (40000, 40002, 40004, 40006, 40008, 40018): 这个条件指定了要查询的特定统计指标的 stat_id。