How to cache tables in memory in Oracle

Source: Internet
Author: User

Oracle quickly caches tables in memory, making access faster. There are 2 ways to do this: 1) alter table fisher cache; 2) alter table fisher storage(buffer_pool keep); --取消缓存 1) alter table fisher nocache; 2) alter table fisher storage(buffer_pool default ); select table_name,OWNER,cache,buffer_pool from dba_tables where table_name= ‘FISHER‘ --查看是否缓存 select * from dba_segments where segment_name= ‘FISHER‘ ;          --查看表大小The difference between the two:

1) The cache caches the table into the share pool, which directly controls the hot end of the table cache, which is controlled by the LRU algorithm.

2) cache The table in a fixed memory space, by default, Buffer_pool space is 0. You need to set the space size manually.

alter system setdb_keep_cache_size=50M scope=both sid=‘*‘;

The first method has been used.

How to cache tables in memory in Oracle

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.