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.