My Oracle Support Banner

PL/SQL Procedures Do Not Switch Result Cache Mode Within The Same Session (Doc ID 556035.1)

Last updated on JULY 15, 2022

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.1]
Information in this document applies to any platform.
This problem can occur on any platform.
Oracle Server Enterprise Edition - Version: to


If we create two identical procedures and run them from the same session we can see that they will use/ not use the result cache based on the value of the RESULT_CACHE_MODE which was set at the moment of their first execution within that session. Changing the parameter at the session/system level will not affect the usage of the result cache.

NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.