Can you really flush Oracle SHARED_POOL?
One of the major player in the SGA is SHARED_POOL, without which we can say that there are no query executions. During some performance tuning trials, you would have used ALTER SYSTEM command to flush out the contents in SHARED_POOL. Do you really know what exactly this command cleans out? As we know that internally SHARED_POOL has LIBRARY_CACHE, RESULT_CACHE, DATA_DICTIONARY_CACHE as most important parts. Are these components also gets cleaned when youFLUSH SHARED_POOL? Let us deep dive in to this instance functionality through this blog and get answers by a step by step analysis. LIBRARY_CACHE plays a vital role in the articles which we discussed “EXPLAIN PLAN for multiple SQL statements”, “Ways of generating EXECUTION PLAN in Oracle Database”, “New SQL_ID ? Does not mean hard parsing or new EXECUTION plan” and many more. Concepts: Before we run the Case Study to find answers to our questions raised, let us look at some basic concepts on SHARED_POOL in Oracle Database. Being an Oracle DBA, the more you know about Architecture, the best you can work on Oracle Performance Tuning.