Call (800) 766-1884 for Oracle support & training
Free Oracle Tips


Oracle Consulting Support
Oracle Upgrades
Use New Oracle Features
Oracle Replication Support
Oracle Training
Remote Oracle DBA
System Documentation
Oracle Tips
Oracle Performance
 

Free Oracle Tips


 

HTML Text

BC Oracle tuning

Oracle training

Oracle support

Remote Oracle

Redneck
 

Donald K. Burleson

Oracle Tips

The new Oracle9i pga_aggregate_target parameter

Oracle9i has introduced a new parameter called pga_aggregate_target and I have notes on related pga_aggregate_target details here:

pga_aggregate_target examples

The limitations of the pga_aggregate_target parameter

Oracle9i pga_aggregate_target Oracle sorting

Oracle 10g release 2 changes pga_aggregate_target limits

Oracle PGA pga_max_size undocumented parameter

Dynamic SGA features with pga_aggregate_target

Monitor Oracle PGA performance with scripts

Tracking Oracle hash joins

Oracle PGA sort hash _smm_max_size & manual workarea

When the pga_aggregate_target parameter is set and you are using dedicated Oracle connections, Oracle9i will ignore all of the PGA parameters in the init.ora file, including sort_area_size and sort_area_retained_size. 

Oracle recommends that the value of pga_aggregate_target be set to the amount of remaining memory (less a 20% overhead for other UNIX tasks) on the UNIX server after the instance has been started

Once the pga_aggregate_target has been set, Oracle will automatically manage PGA memory allocation, based upon the individual needs of each Oracle connection. 

The PGA information is kept in a new view called v$pgastat.  This view can tel us the utilization of PGA memory so that we can adjust it according to our data activity.

 

column name  format a30
column value format 999,999,999

select
   name,
   value
from
   v$pgastat
;

 

Here is a sample listing from this script.

 

NAME                                                   VALUE    

------------------------------------------------------ ----------

aggregate PGA auto target                             736,052,224

global memory bound                                        21,200

total expected memory                                     141,144

total PGA inuse                                        22,234,736

total PGA allocated                                    55,327,872

maximum PGA allocated                                  23,970,624

total PGA used for auto workareas                         262,144

maximum PGA used for auto workareas                     7,333,032

total PGA used for manual workareas                             0

maximum PGA used for manual workareas                           0

estimated PGA memory for optimal                          141,395

maximum PGA memory for optimal                        500,123,520

estimated PGA memory for one-pass                         534,144

maximum PGA memory for one-pass                        52,123,520

The most important metric in v$pgastat is the “Estimated PGA memory for optimal/one-pass” executions. This statistic estimates how much PGA memory is required to execute all task connections RAM demands in optimal mode. 

Remember, when Oracle9i experiences a memory shortage, it will invoke the multi-pass operation.  Oracle DBA’s will increase pga_aggregate_target to the estimated value for optimal one-pass.

If you like Oracle tuning, you might enjoy my latest book “Oracle Tuning: The Definitive Reference” by Rampant TechPress.  It’s only $41.95 (I don’t think it is right to charge a fortune for books!) and you can buy it right now at this link:

http://www.rampant-books.com/book_1002_oracle_tuning_definitive_reference_2nd_ed.htm

 

Oracle DBA, Oracle Consulting

  
 

Oracle performance tuning software 
 
 
 
 

Oracle performance tuning book

 

 
 
 
Oracle performance Tuning 10g reference poster
 
 
 
Oracle training in Linux commands
 
Oracle training Excel
 
Oracle training & performance tuning books
 
   

Copyright © 1996 -  2009 by Burleson Enterprises, Inc. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.