Avatar of mohammadzahid
mohammadzahidFlag for Canada asked on

SQL Area HIT RATIO

I have a question more like confirmation before adding more memory to shared pool. My statistics on shared pool show output of

sql> select gethitratio from v$librarycache where namespace = 'SQL AREA';

.1684 and is consistence from the last 7 days.

Will adding more memory to shared pool area improve gethitratio of SQL Area?
Oracle Database

Avatar of undefined
Last Comment
Sean Stuber

8/22/2022 - Mon
Sean Stuber

Better code will improve that ratio.  Adding more memory might even make it worse.

Your developers or vendor (or both) probably aren't using bind variables.
ASKER CERTIFIED SOLUTION
rbrooker

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Sean Stuber

Ick!  Don't let your developers know those parameters exist!  :)

They are a horrible crutch that Oracle invented.

Yes, I'll agree those parameters "sort of" help the bind variable problem.
However, they introduce other inefficiencies, like ignoring constants
that really are constant.

The REAL and ONLY fix is to address the coding practices.
You should be able to go through v$sqlarea and look at the statements you find
and pick out the ones that are the most frequently used.

Then address the top abusers.  You may be able to drastically improve your parsing and performance by getting the developers to fix just a few areas of code.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23