一、动态SGA特征
二、动态SGA的分配单位
三、粒度(Granule)[@more@]
Dynamic Instance Resizing
一、动态SGA特征
1、实现了在不关闭数据库的情况下配置SGA
2、大小受SGA_MAX_SIZE参数控制
二、动态SGA的分配单位
1、在动态SGA模式, 分配单位名称为粒度(granule).
2、监控视图--v$buffer_pool
列说明:
. id: Buffer pool identifying number
. name: Buffer pool name
. block_size: Block size for buffers in this component
. resize_state: Current state of the resize operation (values Static, Allocating, Activating, or Shrinking)
. current_size: Present size of the pool in megabytes
. buffers: Current instantaneous number of buffers
. target_size: New size, in bytes, is shown if a resize is in progress; if the pool is Static then the current size is shown.
. target_buffers : New size, in buffer, is shown if a resize is in progress; if the pool is Static then the current size is shown.
. prev_size: Previous buffer pool size
. prev_buffers: Previous number of buffers
. lo_bnum, hi_bnum, lo_setid, hi_setid, set_count: Obsolete columns
提示:Take the size in bytes and divide by the buffer size of the relevant cache to work out the
number of buffers in the cache.
三、粒度(Granule)
1、大小
粒度的大小取决于估算SGA的大小:
如果估算SGA<=128M,那么粒度大小为4M;否则粒度大小为16M。
内存分配时,大小都是粒度的整数倍(四舍五入)
2、数据库启动时的粒度分配
a、请求获取SGA_MAX_SIZE指定的内存大小
b、每个组件得到被分配的粒度
c、最少sga配置使用3个粒度:1、用于fixed SGA (includes redo buffers);2、用于缓存;3、用于共享池
3、给组件增加粒度
show parameter db_cache_size;
alter system set db_cache_size=8M;
db_cache_size的大小不能设置为0;
db_cache_size大小与SHARED_POOL_SIZE大小互斥,相加小于SGA_MAX_SIZE。
注意:修改大小时要以M为单位,否则会进行四舍五入。
4、当粒度不被使用时,可以减少粒度。通过v$buffer_pool查看状态
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/594892/viewspace-964678/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/594892/viewspace-964678/
897

被折叠的 条评论
为什么被折叠?



