Oracle 10G R2 Make Table resident memory

Source: Internet
Author: User

First check the Oracle parameters:

Sql> Show Parameters SGA;

NAME TYPE VALUE
------------------------------------ ----------- -------
LOCK_SGA Boolean TRUE
PRE_PAGE_SGA Boolean TRUE

If the value of the above two options is false, it needs to be modified to true;

Modified: LOCK_SGA:

Alter system set LOCK_SGA=TRUE Scope=spfile;

Modify PRE_PAGE_SGA:

Alter system set PRE_PAGE_SGA=TRUE Scope=spfile;

Modify Sga_max_size to a suitable memory value based on the actual memory of the server and the size of the memory consumed:

alter system Set sga_max_size = 4096m scope=spfile;

alter system Set Sga_target = 4000m scope = SPFile;

Modify Db_cache_size (modify two parameters to require the actual SGA size, which is larger than the specified memory):

alter system Set db_cache_size = 2048m scope=spfile;

Alter system set DB_KEEP_CACHE_SIZE=1024M Scope=spfile;

Close the database and restart;

Shutdown immediate;

Startup

The above steps allow the table to have the possibility of resident memory:

Executing the statement allows the specified table to enter the resident memory:

ALTER TABLE table_name storage (Buffer_pool keep);
ALTER TABLE TABLE_NAME cache;

The above steps are done to make a table directly resident memory.

Oracle 10G R2 Make Table resident memory

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.