Skip to content

Commit b9b2980

Browse files
committed
use begin_tiem for the 1-min granularity column
1 parent de24af0 commit b9b2980

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

awr/awr_sysmetric_history.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
33

44
SELECT
5-
CAST(begin_interval_time AS DATE) begin_time
5+
-- CAST(begin_interval_time AS DATE) begin_time
6+
begin_time
67
, metric_name
78
, metric_unit
89
, value
@@ -15,7 +16,7 @@ WHERE
1516
-- metric_name IN ('Physical Reads Per Sec')
1617
-- metric_name IN ('Host CPU Utilization (%)')
1718
-- metric_name IN ('Logons Per Sec')
18-
AND begin_interval_time > SYSDATE - 15
19+
AND begin_interval_time > SYSDATE - 1
1920
ORDER BY
2021
metric_name
2122
, begin_time

awr/awr_sysmetric_summary.sql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
33

44
SELECT
5-
CAST(begin_interval_time AS DATE) begin_time
5+
-- CAST(begin_interval_time AS DATE) begin_time
6+
begin_time
67
, metric_name
78
, metric_unit
89
, average / 100
@@ -11,9 +12,9 @@ FROM
1112
NATURAL JOIN
1213
dba_hist_sysmetric_summary
1314
WHERE
14-
metric_name IN ('User Commits Per Sec', 'User Transaction Per Sec')
15+
-- metric_name IN ('User Commits Per Sec', 'User Transaction Per Sec')
1516
-- metric_name IN ('Physical Read IO Requests Per Sec', 'Physical Write IO Requests Per Sec')
16-
-- metric_name IN ('Host CPU Utilization (%)')
17+
metric_name IN ('Host CPU Utilization (%)')
1718
-- metric_name IN ('Logons Per Sec')
1819
AND begin_interval_time > SYSDATE - 15
1920
ORDER BY

0 commit comments

Comments
 (0)