Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 E-mail Us
 Oracle Articles
New Oracle Articles

 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog

 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Oracle Support

 SQL Tuning

 Oracle UNIX
 Oracle Linux
 Remote s
 Remote plans
 Application Server

 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S


 Consulting Staff
 Consulting Prices
 Help Wanted!


 Oracle Posters
 Oracle Books

 Oracle Scripts

Don Burleson Blog 







Automatically assign tables

Oracle Tips by Burleson Consulting
Don Burleson

In Oraclewe can write scripts that automatically identifies candidates for the KEEP pool  and generates the syntax to move the tables into the pool.   In fact, all of the 10g benchmarks utilize table caching techniques to get super-fast performance:
The placement criteria for tables and indexes into the KEEP buffer are straightforward:

  • Small tables ? Parameters may be adjusted in the script based upon needs.

  • Small-table full-table scans ? Oracle designates the table as small and chooses a full-table scan over an index access.

  • Frequently-accessed tables ? The threshold for access can be adjusted in the script.

  • High buffer residency ? Any table that has more than 80% of its blocks in the data buffer should be cached in the KEEP pool.

There are two approaches to identifying tables for the KEEP pool.

1. Identify tables (and associated indexes) that are small and have frequent full-table scans.

2. identify objects (tables, indexes) that have more than 80% of their data blocks in the buffer.

You can write scripts to use the v$bh and v$sql_plan to extract this information and automatically generate and execute the KEEP pool assignment.  Here is a sample from my book:

   o.owner                         owner,
   o.object_name                   object_name,
   o.subobject_name                subobject_name,
   o.object_type                   object_type,
   count(distinct file# || block#) num_blocks
   dba_objects o,
   v$bh        bh
   o.data_object_id = bh.objd
   o.owner not in ('SYS','SYSTEM')
   bh.status != 'free'
group by
   order by
   count(distinct file# || block#) desc


If you want pre-written scripts for KEEP pool assignment I have them in my latest book ?Oracle Tuning: The Definitive Reference? by Rampant TechPress.  It?s only $41.95(I don?t think it is right to charge a fortune for books!) and you can buy it right now at this link:



Oracle Training at Sea
oracle dba poster

Follow us on Twitter 
Oracle performance tuning software 
Oracle Linux poster


Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.