Skip to content

Commit 06bd0b5

Browse files
authored
Moved end_time filter predicate as it was filtering CPU_COUNT too
1 parent 628a7fe commit 06bd0b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Performance Monitoring/SQL Queries/sysmetric-60-seconds.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ FROM
1010
METRIC_UNIT
1111
FROM sys.GV_$SYSMETRIC
1212
WHERE group_id = 2
13+
AND END_TIME > ?
1314
AND metric_name IN ('Host CPU Utilization (%)','CPU Usage Per Sec','Host CPU Usage Per Sec','Average Active Sessions','Database Time Per Sec', 'Executions Per Sec','Hard Parse Count Per Sec','Logical Reads Per Sec','Logons Per Sec', 'Physical Read Total Bytes Per Sec','Physical Read Total IO Requests Per Sec','Physical Reads Per Sec','Physical Write Total Bytes Per Sec', 'Redo Generated Per Sec','User Commits Per Sec','Current Logons Count','DB Block Gets Per Sec','DB Block Changes Per Sec', 'Database Wait Time Ratio','Database CPU Time Ratio','SQL Service Response Time','Background Time Per Sec', 'Physical Write Total IO Requests Per Sec','Physical Writes Per Sec','Physical Writes Direct Per Sec','Physical Writes Direct Lobs Per Sec', 'Physical Reads Direct Per Sec','Physical Reads Direct Lobs Per Sec', 'GC CR Block Received Per Second','GC Current Block Received Per Second','Global Cache Average CR Get Time','Global Cache Average Current Get Time', 'Global Cache Blocks Corrupted'
1415
,'Global Cache Blocks Lost', 'Active Parallel Sessions','Active Serial Sessions','Average Synchronous Single-Block Read Latency', 'Response Time Per Txn','SQL Service Response Time' )
1516
UNION ALL
@@ -22,5 +23,4 @@ FROM
2223
WHERE name='cpu_count'
2324
GROUP BY inst_id
2425
)
25-
WHERE END_TIME > ?
2626
ORDER BY END_TIME ASC

0 commit comments

Comments
 (0)