 |
|
Diving
Into the Shared Pool - An In Depth Look at Tuning the Shared Pool (Part 1)
Oracle Tips by Mike Ault |
Putting it All In Perspective
The thing to notice about the graphs in
Figure 13 is the overall trend of the performance indicator between
day 1 and day 2. On day 1 (the day with an initial flush as
indicated by the steep plunge on the pool utilization graph followed
by the buildup to maximum and the flattening of the graph) the
performance indicator shows an upward trend. The performance
indicator is a measure of how long the database takes to do a
specific set of tasks (from the Q Diagnostic tool from Savant
Corporation). Therefore an increase in the performance indicator
indicates a net decrease in performance. On day 2 the overall trend
is downward with the average value less than the average value from
day 1. Overall the flushing improved the performance as indicated by
the performance indicator by 10 to 20 percent. Depending on the
environment I have seen improvements of up to 40-50 percent.
One thing that made the analysis difficult was
that on day 2 there were several large batch jobs run which weren’t
run on day 1. The results still show that flushing has a positive
effect on performance when the database is a mixed SQL environment
with a large percentage of non-reusable SQL areas.
Guideline 3 also brings up an interesting
point, you may already have over allocated the shared pool, in this
case guideline 3 may result in you decreasing the size of the shared
pool. In this situation the shared pool has become a cesspool filled
with nothing but garbage SQL. After allocating enough memory for
dictionary objects and other fixed areas and ensuring that the
standard packages and such are pinned, you should only maintain a
few megabytes above and beyond this level of memory for SQL
statements. Since none of the code is being reused you want to
reduce the hash search overhead as much as possible, you do this by
reducing the size of the available SQL area memory so as few a
number of statements are kept as possible.
SEE CODE DEPOT FOR FULL SCRIPTS
 |
If you like
Oracle tuning, you may enjoy the book
Oracle Tuning: The Definitive Reference
, with over 900 pages of BC's favorite tuning tips &
scripts.
You can buy it directly from the
publisher and save 30%, and get instant access to the code
depot of Oracle tuning scripts. |
 |
Expert Remote DBA
BC is America's oldest and largest Remote DBA Oracle support
provider. Get real Remote DBA experts, call
BC Remote DBA today. |
 |
|