<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>AWR Retention on Oracle Scripts</title><link>https://www.oraclescripts.com/tags/awr-retention/</link><description>Recent content in AWR Retention on Oracle Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>OracleScripts.com</copyright><lastBuildDate>Wed, 07 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.oraclescripts.com/tags/awr-retention/index.xml" rel="self" type="application/rss+xml"/><item><title>Query Historical ASH Beyond Memory with DBA_HIST_ACTIVE_SESS_HISTORY</title><link>https://www.oraclescripts.com/post/query-historical-ash-beyond-memory-dba-hist-active-sess-history/</link><pubDate>Wed, 07 Oct 2026 00:00:00 +0000</pubDate><guid>https://www.oraclescripts.com/post/query-historical-ash-beyond-memory-dba-hist-active-sess-history/</guid><description>
&lt;h2 id="query-historical-ash-beyond-memory-with-dba_hist_active_sess_history"&gt;Query Historical ASH Beyond Memory with DBA_HIST_ACTIVE_SESS_HISTORY&lt;/h2&gt;
&lt;h2 id="purpose"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Troubleshooting a performance spike after the fact is a different job than watching one happen live. By the time anyone opens a session the next morning to ask what was running during last night's batch window, the in-memory &lt;strong&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/V-ACTIVE_SESSION_HISTORY.html"&gt;V$ACTIVE_SESSION_HISTORY&lt;/a&gt;&lt;/strong&gt; buffer may already have cycled past that exact window. &lt;strong&gt;&lt;a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/DBA_HIST_ACTIVE_SESS_HISTORY.html"&gt;DBA_HIST_ACTIVE_SESS_HISTORY&lt;/a&gt;&lt;/strong&gt; is where that same sampled activity keeps existing — Oracle's own reference documentation describes it as the view that &amp;quot;displays the history of the contents of the in-memory active session history of recent system activity,&amp;quot; built from snapshots of the live view taken before the buffer discards them.&lt;/p&gt;</description></item></channel></rss>