Oracle caches table data to the cache area

Source: Internet
Author: User

For more information about what the Oracle high-speed cache is and how it works, see:

Http://www.php100.com/html/webkaifa/database/oracle/2008/0709/1348.html

The db_buffer_pool of Oracle consists of three parts:

Buffer_pool_defualt
Buffer_pool_keep
Buffer_pool_recycle

show parameter DB_CACHE_SIZE;show parameter keep;

First, you need to change the cache size:

Alter system set db_keep_cache_size = 10 m; -- 10 m or 512 K

If you want to pin the table to the memory, that is, pin the table to the keep area. Related commands:

alter table ..... storage(buffer_pool keep);

This command caches the table in the keep area if it is cached.

You can use the following statement:

select table_name from dba_tables where buffer_pool='KEEP';

The changed table is saved in the keep area. But it does not mean that the table has been cached.

The following statement caches the table:

alter table .... cache;

You can use

select table_name from dba_ tables where trim(cache)='Y';

The table has been cached.

The table added to the keep area does not mean that it cannot be removed from the memory, but is not easy to remove from the memory.
You can also manually remove the memory. The command is as follows:

alter table ... nocache;

Remarks: This article Reprinted from: http://blog.itpub.net/post/42422/501800

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.