My Oracle Support Banner

Result_cache Hint Is Not Being Enforced (Doc ID 874022.1)

Last updated on FEBRUARY 02, 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.


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

The result_cache hint did not produce the expected result cache operation in one specific SQL statement, for example.

SQL> connect scott/<PASSWORD>
SQL> set autotrace traceonly 
SQL> select /*+ result_cache */ deptno, avg(sal) 
  2  from emp 
  3  where hiredate > sysdate 
  4  group by deptno; 

no rows selected 
Execution Plan 
Plan hash value: 15469362 

| Id  | Operation          | Name | 
|   0 | SELECT STATEMENT   |      | 
|   1 |  SORT GROUP BY     |      | 
|*  2 |   TABLE ACCESS FULL| EMP  | 


Testing with the result_cache hint for the first time.


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.