Modify the size of the oracle database SGA and PGA

Source: Internet
Author: User

Modify the size of the oracle database SGA and PGA to modify the size of the SGA and PGASGA: Generally, 20% of the physical memory is used for the operating system reservation, and 80% of the other is used for the database. The SGA common database can be allocated between 40%-60%, and the PGA can be allocated between 20%-40%. Www.2cto.com 1. Log On As A dba and view the SGA information: SQL> show parameter sga; view the PGA information: SQL> show parameter pga; 2. Modify sga_targetSQL> alter system set sga_target = 436 M; 3. Modify sga_max_sizeSQL> alter system set sga_max_size = 436 M scope = spfile; www.2cto.com 4. Restart the database to make it take effect: SQL> shutdown immediate; # note that the above two operations must be completed before the restart, And the sga_target must not be greater than the sga_max_size, which is generally equal. Otherwise, the database may fail to start. SQL> startup 5. Check if SGA is effective: SQL> show parameter sgaNAME TYPE VALUE =----------- lock_sga boolean FALSEpre_page_sga boolean FALSEsga_max_size big integer 436Msga_target big integer 436 M

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.