Oracle memory management PGA

Source: Internet
Author: User
In Oracle10g, you need to set workarea_size_policy to AUTO, and set the pga_aggregate_target parameter to implement PGA memory management.

In Oracle 10 Gb, you need to set workarea_size_policy to AUTO, and set the pga_aggregate_target parameter to implement memory management of PGA.

In Oracle 10 Gb, you need to set workarea_size_policy to AUTO, and set the pga_aggregate_target parameter to implement memory management of PGA.

The pga_aggregate_target parameter can be set based on the experience value. A simple method to evaluate the PGA can be used to view the PGA Hit rate (PGA Cache Hit %) in the AWR report ), analyze whether the wait events of direct path read temp and direct path write temp are high. These wait events indicate the waiting events that result in a large number of temporary tablespace operations due to limited parameters set by PGA. Of course, there are also complicated methods to evaluate PGA. Let's take a look later.

Note: For 9I shared server connection, you must explicitly set SORT_AREA_SIZE and HASH_AREA_SIZE, that is, you cannot use the automatic management mode. 10 Gb does not have this restriction.
PGA_AGGREGATE_TARGET is an upper limit (theoretically the maximum, PL/SQL is easily exceeded). It is not allocated so much at ORACLE startup, you can even set the size larger than the physical MEM (do not do this in the production database, set pga_aggregate_target + sga) Remind yourself.

V $ pgastat:

Several important parameters are described as follows:
Target parameter value of PGA set by aggregate pga target parameter
In automatic management mode, aggregate PGA auto target can be used in the oracle Workspace.
Total PGA inuse the pga used by the current instance
Total PGA allocated the pga actually allocated by the current instance
Maximum PGA allocated maximum allocable pga
Over allocation count the PGA allocated by ORACLE exceeds the pga_aggregate_target times. This parameter can be used to determine whether pga_aggregate_target is set too small.
Cache hit percentage the PGA hit rate after the instance is started. If all operations are performed in MEM and not in TEMP, the cache hit percentage should be 100%.

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.