Search notes:

Oracle: RESULT_CACHE Tables

Demonstration table

create table tq84_result_cache_force (
  id     number primary key,
  col_1  varchar2(10),
  col_2  varchar2(10)
)
result_cache(mode force);

create table tq84_result_cache_default (
  id     number primary key,
  col_1  varchar2(10),
  col_2  varchar2(10)
)
result_cache(mode default);

SQL Plan operations

explain plan for
select
   id
from
   tq84_result_cache_force
where
   col_1 = 'X';

select * from table(dbms_xplan.display(format=>'basic'));
--
-- ---------------------------------------------------------
-- | Id  | Operation          | Name                       |
-- ---------------------------------------------------------
-- |   0 | SELECT STATEMENT   |                            |
-- |   1 |  RESULT CACHE      | 9n1tfuwau5kf50bfnrw8yxkqdv |
-- |   2 |   TABLE ACCESS FULL| TQ84_RESULT_CACHE_FORCE    |
-- ---------------------------------------------------------

Data dictionary

select
   table_name,
   result_cache
from
   user_tables
where
  table_name like 'TQ84_RESULT_CACHE_%';

Cleaning up

drop table tq84_result_cache_force;
drop table tq84_result_cache_default;

See also

The result_cache SQL statement hint and RESULT CACHE SQL execution operator.
v$result_cache_objects
Tables

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758194177, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/objects/tables/result_cache/index(91): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78