()


How to Check Retention Period of AWR Snapshot in Oracle


AWR (Automatic Workload Repository) is a key to diagnose the performance of Oracle database, AWR collects various types of processes along with maintains statistics of database performance. Below is the SQL command to Check the Retention Period of AWR Snapshot in Oracle.

SELECT CON_ID, EXTRACT( DAY FROM SNAP_INTERVAL) *24*60+
EXTRACT( HOUR FROM SNAP_INTERVAL) *60+
     EXTRACT( MINUTE FROM SNAP_INTERVAL ) "SNAPSHOT_INTERVAL_IN_MINUTES",
       EXTRACT( DAY FROM RETENTION) *24*60+
       EXTRACT( HOUR FROM RETENTION) *60+
       EXTRACT( MINUTE FROM RETENTION ) "RETENTION_NTERVAL_IN_MINUTES"
    FROM
       DBA_HIST_WR_CONTROL;
prompt$$$$$$$**Welcome to DBsGuru!**Share Learn Grow**$$$$$$$	

    CON_ID SNAPSHOT_INTERVAL_IN_MINUTES RETENTION_NTERVAL_IN_MINUTES
---------- ---------------------------- ----------------------------
         0                           60                        43200

SQL> $$$$$$$**Welcome to DBsGuru!**Share Learn Grow**$$$$$$$


We always encourage the technical person to visit 
section SCRIPTS to get more daily usage SQL commands.


Hope so you like this script
!
Please share your valuable feedback/comments/subscribe and follow us below and don’t forget to click on the bell icon to get the most recent update. Click here to know more about our pursuit.



Loading

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

DBsGuru

Hello and welcome to DBsGuru,DBsGuru is a group of experienced DBA professionals and serves databases and their related community by providing technical blogs, projects, training. Technical blogs are the source of vast information not about databases but its related product like middleware, PL/SQL, replication methodology, and so on.Thanks for the visits!Share Learn Grow!