Solution to insufficient Oracle database shared memory allocation

Source: Internet
Author: User

Oracle DatabaseMedium,Shared MemoryWhen the allocation is insufficient, because the reserved area is not effectively used, it will lead to the failure to allocate a suitable shared area. The system global area (SGA) of an ORACLE routine contains several memory areas, including buffer cache, Shared Pool, Java pool, large pool, and redo log buffer) SGA = db_cache + shared_pool + java_pool + large_pool. Next we will introduce the processing method.

Solution:

Manually adjust the size of the SGA, and then re-allocate the size of the four major memory areas. It mainly adds shared memory and buffered high-speed cache.

 
 
  1. SQL> show sga; // view the specific size of SGA.
  2.  
  3. SQL> show parameter sga_max_size // view the maximum SGA Value
  4.  
  5. SQL> show parameter shared_pool // view shared memory
  6.  
  7. SQL> show parameter db_cache // view the data cache
  8.  
  9. SQL> show parameter java_pool
  10.  
  11. SQL> show parameter large_pool

The following is a solution for allocating 450 threads;

 
 
  1. SQL> alter system set sga_max_size = 500 M scope = spfile; // modify the maximum SGA value.
  2.  
  3. SQL> alter system set shared_pool_size = 240 M scope = spfile; // modify the shared memory
  4.  
  5. SQL> alter system set db_cache_size = 72 M scope = spfile; // modify the data cache
  6.  
  7. SQL> alter system set java_pool_size = 144 M scope = spfile;
  8.  
  9. SQL> alter system set large_pool_size = 24 M scope = spfile;

By default, the system allocates 150 threads:

SGA (164 M) = db_cache (24 M) + shared_pool (80 M) + java_pool (48 M) + large_pool (8 M)

The knowledge about Oracle database shared memory allocation is introduced here. I hope this introduction will bring you some gains!

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.