How To Tune PGA_AGGREGATE_TARGET
How To Tune PGA_AGGREGATE_TARGET
1 Make a first estimate for PGA_AGGREGATE_TARGET based on the following rule
For OLTP systems
PGA_AGGREGATE_TARGET = (
For DSS systems
PGA_AGGREGATE_TARGET = (
2 A second step in tuning the PGA_AGGREGATE_TARGET is to monitor performance using available PGA statistics and see if PGA_AGGREGATE_TARGET is under sized or over sized. Several dynamic performance views are available for this purpose:
total bytes processed * 100
PGA Cache Hit Ratio = ------------------------------------------------------
(total bytes processed + total extra bytes read/written)
3 V$SQL_WORKAREA_HISTOGRAM
SELECT LOW_OPTIMAL_SIZE/1024 low_kb,(HIGH_OPTIMAL_SIZE+1)/1024 high_kb, optimal_executions, onepass_executions, multipasses_executions
FROM v$sql_workarea_histogram
WHERE total_executions != 0;
4. V$SQL_WORKAREA_ACTIVE
Use this view to precisely monitor the size of all active work areas and to determine if these active work areas spill to a temporary segment.
SELECT to_number(decode(SID, 65535, NULL, SID)) sid,
operation_type OPERATION,trunc(EXPECTED_SIZE/1024) ESIZE,
trunc(ACTUAL_MEM_USED/1024) MEM, trunc(MAX_MEM_USED/1024) "MAX MEM",
NUMBER_PASSES PASS, trunc(TEMPSEG_SIZE/1024) TSIZE
FROM V$SQL_WORKAREA_ACTIVE
ORDER BY 1,2;
SID OPERATION ESIZE MEM MAX MEM PASS TSIZE
--- ----------------- --------- --------- --------- ----- -------
8 GROUP BY (SORT) 315 280 904 0
8 HASH-JOIN 2995 2377 2430 1 20000
9 GROUP BY (SORT) 34300 22688 22688 0
11 HASH-JOIN 18044 54482 54482 0
12 HASH-JOIN 18044 11406 21406 1 120000
It has also spilled to a temporary segment of size 120000 KB
5. tuning the PGA_AGGREGATE_TARGET
V$PGA_TARGET_ADVICE
this view predicts how the statistics cache hit percentage and over allocation count in V$PGASTAT will be impacted if you change the value of
the initialization parameter PGA_AGGREGATE_TARGET.
SELECT round(PGA_TARGET_FOR_ESTIMATE/1024/1024) target_mb,
ESTD_PGA_CACHE_HIT_PERCENTAGE cache_hit_perc,
ESTD_OVERALLOC_COUNT
FROM v$pga_target_advice;
TARGET_MB CACHE_HIT_PERC ESTD_OVERALLOC_COUNT
---------- -------------- --------------------
63 23 367
125 24 30
250 30 3
375 39 0
500 58 0
600 59 0
700 59 0
800 60 0
900 60 0
1000 61 0
1500 67 0
2000 76 0
3000 83 0
4000 85 0
e.g. lowest PGA_AGGREGATE_TARGET value we can set is 375 ( where ESTD_OVERALLOC_COUNT is 0)
V$PGA_TARGET_ADVICE_HISTOGRAM
this how the statistics displayed by the performance view V$SQL_WORKAREA_HISTOGRAM will be impacted if you change the value of the initialization parameter PGA_AGGREGATE_TARGET.
參考文獻:
Subject: | Automatic PGA Memory Management | |||
: | 223730.1 | Type: | REFERENCE | |
Modified Date : | 24-JUN-2009 | Status: | PUBLISHED |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9252210/viewspace-611436/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How to Monitor and tune Open and Cached Cursors (Doc ID 1430255.1)
- How to tune SharePoint 2010 Server for better performance?ServerORM
- 【TUNE_ORACLE】PGA_AGGREGATE_LIMIT詳解(一)PGA_AGGREGATE_TARGET的限制OracleMIT
- 【CURSOR】How to Monitor and tune Open and Cached Cursors (Doc ID 1430255.1)
- How To Use DBMS_ADVISOR.TUNE_MVIEW Tuning Materialized ViewsViewZed
- oracle tuneOracle
- aix tune 1AI
- Oracle Performance Tune PlanOracleORM
- pga_aggregate_target的設定 (zt)
- HD Tune軟體怎麼用?使用HD tune檢測硬碟的方法教程硬碟
- pga_aggregate_target 相關總結 -- Oracle PGAOracle
- Tuning PGA_AGGREGATE_TARGET in Oracle 9iOracle
- 認識PGA及PGA_AGGREGATE_TARGET [final]
- 核心領域模式 -Nick Tune模式
- 關於PGA_AGGREGATE_TARGET的引數說明
- codeforces 498B. Name That Tune
- win10如何使用hd tune pro工具_win10使用hd tune pro工具的教程Win10
- How to Find Out How Much Space an Index is UsingIndex
- How the web worksWeb
- How Google WorksGo
- How Oracle Works!Oracle
- how to switch workspace
- How to Study OracleOracle
- how to use typeset?
- HOW TO USER UNZIP
- How to Quiesce a DatabaseUIDatabase
- How to find dependency
- Oracle資料庫work area size & pga_aggregate_target引數Oracle資料庫
- Granules of pga_aggregate_target 494 cannot be more than memory_target (497)
- 【TUNE_ORACLE】ROWID切片SQL參考OracleSQL
- 【TUNE_ORACLE】Oracle Hint之概念與用法Oracle
- BERT fine-tune 實踐終極教程
- Linux基礎命令—tune2fsLinux
- Linux基礎命令---tune2fsLinux
- Tasks of a Database Administrator : Tune Database Performance (15)DatabaseORM
- memory_max_target,memory_target,pga_aggregate_target,sga_target
- [譯] WebAssembly: How and whyWeb
- How to Build a Cybersecurity CareerUI