How to Check Retention Period of AWR Snapshot in Oracle

0 Comments

0
(0)


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.

 114 total views,  1 views today

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

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?

Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *

six − five =

Follow us on Social Media
Open chat
1
Contact Us:
Hi,

Greetings of the day! How can we help you?

Thanks.
Team DBsGuru