<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cache Flushing on Oracle Scripts</title><link>https://www.oraclescripts.com/tags/cache-flushing/</link><description>Recent content in Cache Flushing on Oracle Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>OracleScripts.com</copyright><lastBuildDate>Thu, 27 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.oraclescripts.com/tags/cache-flushing/index.xml" rel="self" type="application/rss+xml"/><item><title>Flush the Shared Pool and Buffer Cache with ALTER SYSTEM</title><link>https://www.oraclescripts.com/post/flush-the-shared-pool-and-buffer-cache-with-alter-system/</link><pubDate>Thu, 27 Aug 2026 00:00:00 +0000</pubDate><guid>https://www.oraclescripts.com/post/flush-the-shared-pool-and-buffer-cache-with-alter-system/</guid><description>
&lt;h2 id="flush-the-shared-pool-and-buffer-cache-with-alter-system"&gt;Flush the Shared Pool and Buffer Cache with ALTER SYSTEM&lt;/h2&gt;
&lt;h2 id="purpose"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Where &lt;code&gt;DBMS_SHARED_POOL.PURGE&lt;/code&gt; removes one cursor or one package from the library cache, &lt;code&gt;ALTER SYSTEM FLUSH SHARED_POOL&lt;/code&gt; clears every parsed statement, stored procedure, function, package, and trigger cached in the shared pool at once — a blunt instrument standing next to a scalpel. &lt;code&gt;FLUSH BUFFER_CACHE&lt;/code&gt; does the equivalent wipe on the other side of the SGA, discarding every cached data block across the &lt;code&gt;KEEP&lt;/code&gt;, &lt;code&gt;RECYCLE&lt;/code&gt;, and &lt;code&gt;DEFAULT&lt;/code&gt; buffer pools in a single statement. Both clauses live under the same &lt;code&gt;ALTER SYSTEM&lt;/code&gt; statement documented in the SQL Language Reference, and both exist for the same narrow reason: giving a DBA a clean, repeatable starting point when the question is &amp;quot;how does this actually perform from cold,&amp;quot; not &amp;quot;how does it perform with yesterday's cache still warm.&amp;quot;&lt;/p&gt;</description></item></channel></rss>