|
|
|
![]() |
|
|
|
|
|
Tip of the Week
(Archived) So far we have covered the PGA_AGGREGATE_TARGET, The PGA_AGGREGATE_TARGET or Memory Management Made Easy(ier) (pdf), and the data cache, Advice on Improving Your Database's Memory. To complete the Oracle memory trilogy, this week I want to look at the shared pool. The "advice" table providing information on the shared pool is v$shared_pool_advice. Below is a query of that table and the results from one of the databases I am managing.
SELECT
shared_pool_size_for_estimate, shared_pool_size_factor, estd_lc_time_saved, Note: The initialization parameter statistics_level must be set to either TYPICAL or ALL for this information to be available. This information is based on statistics collected during database operation. The columns contain the following information:
Use the ESTD_LC_TIME_SAVED or ESTD_LC_TIME_SAVED_FACTOR column to determine if a change would benefit the database. In both cases, a higher value indicates where adding memory would save parse time, so higher values show shared pool settings that should improve performance. I like ESTD_LC_TIME_SAVED_FACTOR, just because I think it provides a clearer picture of the results. In this case, the values in both ESTD_LC* columns are slowly, steadily increasing, with no particular value indicating a point where performance would markedly improve. That fits this particular database environment, in that the application generates a significant amount of SQL that does not use bind variables, resulting in reparsing and little statement reuse. We tried to address this issue by setting the CURSOR_SHARING parameter to FORCE, but found this resulted in errors in the use of LONG columns. The recommendation at this point is that we will leave the shared pool size where it is. If we wanted to change the shared pool size, the statement to change it would be: ALTER SYSTEM SET shared_pool_size=448M SCOPE=BOTH; Note: This tip was tested on Oracle9i. Was this tip useful? Did you find any errors? Do you have any suggestions? Do you care? Click here for the tip feedback page. Thank you. |
|
|
|
|