Monday, August 3, 2026

How to verify whether TIMED_STATISTICS changed between the oracle AWR database snapshots ?

To verify whether TIMED_STATISTICS changed between the snapshots used in your AWR Diff report, you can check the historical parameter values stored in AWR.

Method 1: Check Parameter History from AWR

SELECT s.snap_id,
s.instance_number,
TO_CHAR(s.begin_interval_time,'DD-MON-YYYY HH24:MI') begin_time,
p.value
FROM dba_hist_parameter p,
dba_hist_snapshot s
WHERE p.snap_id = s.snap_id
AND p.dbid = s.dbid
AND p.instance_number = s.instance_number
AND p.parameter_name = 'timed_statistics'
ORDER BY s.snap_id;

Look for changes in the VALUE column (TRUE/FALSE).


Method 2: Check Only the Snapshots Used in the Report

If your report compared snapshots 100-101 with 200-201:

SELECT snap_id,
value
FROM dba_hist_parameter
WHERE parameter_name = 'timed_statistics'
AND snap_id IN (100,101,200,201)
ORDER BY snap_id;

Example output:

SNAP_ID VALUE
------- -----
100 FALSE
101 FALSE
200 TRUE
201 TRUE

This would explain the warning.


Method 3: Find Exactly When the Value Changed

SELECT snap_id,
value,
LAG(value) OVER (ORDER BY snap_id) prev_value
FROM dba_hist_parameter
WHERE parameter_name = 'timed_statistics'
ORDER BY snap_id;

Or show only the change point:

WITH p AS
(
SELECT snap_id,
value,
LAG(value) OVER (ORDER BY snap_id) prev_value
FROM dba_hist_parameter
WHERE parameter_name = 'timed_statistics'
)
SELECT *
FROM p
WHERE value <> prev_value;


Method 4: Check Database Restart Between Snapshots

Sometimes the warning appears because the database was restarted and initialization parameters changed.

SELECT snap_id,
startup_time,
begin_interval_time
FROM dba_hist_snapshot
ORDER BY snap_id;

Look for a change in STARTUP_TIME between your snapshot ranges.


RAC Environment

If this is RAC, check all instances:

SELECT snap_id,
instance_number,
value
FROM dba_hist_parameter
WHERE parameter_name = 'timed_statistics'
ORDER BY instance_number, snap_id;

A change on even one instance can trigger the warning.


1 comment:

  1. I really enjoyed this blog. You explained how cloud migration services work in a way that's easy to understand, even for someone new to the topic. We’ve noticed similar benefits while following cloud projects at SaptTech Labs, where careful planning always leads to smoother migrations. Thanks for sharing such practical and valuable insights!

    Contact us at 7303139390.
    Visit : Cloud migration services for businesses

    ReplyDelete

About the Author : Anurag Pandey | Database cloud Architect | Oracle | SQL Server | PostgreSQL | AI and Data Platform Enthusiast

Anurag Pandey is a Database Architect with expertise in Oracle, PostgreSQL, SQL Server, Linux, and enterprise database platforms and specializes in database architecture, performance tuning, high availability, disaster recovery, cloud modernization, and operational excellence. With extensive experience in enterprise-scale environments, Anurag is passionate about leveraging AI, automation, and modern data platforms to improve reliability, scalability, and business outcomes. He actively contributes to technical communities through knowledge sharing, architecture guidance, and thought leadership in database and data engineering domains.

Follow more articles at

Visit Blog

Create Resource Manager , Resource Group / Consumer groups in Oracle Database to limit CPU resources

  Step to create Resource Manager  consumer groups in Oracle Database  1. First confirm the exact PROGRAM values     SELECT program, ...