Skip to Main Content

Breadcrumb

Question and Answer

Chris Saxon

Thanks for the question, Ashish.

Asked: February 10, 2016 - 7:44 am UTC

Last updated: February 10, 2016 - 8:59 am UTC

Version: 11g

Viewed 1000+ times

You Asked

Hi Tom,

Can we store particular query data in the Result_cache by passing the SQL ID as there lot of Hits coming from application end.

thanks in advance.

Regards,
Ashish Dabral

and Chris said...

You can set result_cache_mode parameter to either manual or force.

With manual you choose which statements are cached.

With force, Oracle tries to cache everything. You choose which statements are not cached.

Either way you need to add hints into the statements directly. RESULT_CACHE (so the results are cached) or NO_RESULT_CACHE (so they aren't).

http://docs.oracle.com/cd/E11882_01/server.112/e40402/initparams221.htm#REFRN10270

For more details on this read:

http://docs.oracle.com/cd/E11882_01/server.112/e41573/memory.htm#PFGRF987

Is this answer out of date? If it is, please let us know via a Comment