Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

47

积分

0

好友

2

主题
1#
发表于 2012-1-18 11:31:47 | 查看: 5681| 回复: 4
之前一直不清楚PGA手动是如何设置的,今天自己测试了一下,发现了很多的问题,MOS上也没找到相关的!想请教一下基本的设置步骤,是不是只要设置workarea_size_policy为manual就行了,pga_aggregate_target好像不能设置为0,相关的参数怎么调整。
2#
发表于 2012-1-18 12:57:18
ODM data:

The automatic SQL execution memory management feature is enabled by setting the
parameter WORKAREA_SIZE_POLICY to AUTO and by specifying a size of
PGA_AGGREGATE_TARGET in the initialization file. These two parameters can also be
set dynamically using the ALTER SYSTEM command. In the absence of either of these
parameters, the database will revert to manual PGA management mode. In Oracle9i
Release 2, an advisory for PGA_AGGREGATE_TARGET was introduced. Just like in Buffer
Cache Advisory, the PGA Advisory will suggest the appropriate size for PGA memory
and thus make PGA tuning an even simpler task.

回复 只看该作者 道具 举报

3#
发表于 2012-1-18 13:00:08
example 例子:


alter session set workarea_size_policy=MANUAL;      ==> session级别 workarea_size_policy=MANUAL 手动管理PGA
alter session set workarea_size_policy=MANUAL;

REM set sort_area_size to 700M or 1.6 * table_size
REM 10g bug need to set sort_area_size twice
REM remember large sort area size doesn't mean better performance
REM sometimes you should reduce below setting,and then sort may benefit from disk sort
REM and attention to avoid PGA swap

alter session set sort_area_size=734003200;
alter session set sort_area_size=734003200;

==> session级别指定sort_area_size 排序空间 , 注意10g存在bug  需要2次设置 sort_area_size 才能生效!


Reference: http://www.oracledatabase12g.com ... create-rebuild.html

回复 只看该作者 道具 举报

4#
发表于 2012-1-18 13:05:38
Question:
不过sort_area_retained_size这个参数需要设置么?如果是手动管理的话?因为之前是自动管理的,这个值为0

Answer:

一般不需要;sort_area_retained_size 会参考 sort_area_size的大小;The default value as reflected in the V$PARAMETER dynamic performance view is 0. However, if you do not explicitly set this parameter, Oracle actually uses the value of the SORT_AREA_SIZE parameter.

回复 只看该作者 道具 举报

5#
发表于 2012-1-18 13:31:13
Liu实在是太细致了!太感激了!

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-11-15 02:02 , Processed in 0.055329 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569