Adding Granules and Tracking Component Size (78)

本文介绍了如何使用ALTER SYSTEM语句调整Oracle数据库SGA中各组件的大小。通过修改与各组件相关的初始化参数,数据库会自动调整到最接近的16MB倍数。文章还提供了查询SGA信息及调整历史的方法。

A database administrator expands the SGA use of a component with an ALTER
SYSTEM statement to modify the values of the initialization parameters associated
with the respective components. Oracle Database rounds up the newly specified size
to the nearest multiple of 16MB and adds or removes granules to meet the target size.
The database must have enough free granules to satisfy the request. As long as the
current amount of SGA memory is less than SGA_MAX_SIZE, the database can allocate
more granules until the SGA size reaches SGA_MAX_SIZE.
The granule size that is currently being used for the SGA for each component can be
viewed in the view V$SGAINFO. The size of each component and the time and type of
the last resize operation performed on each component can be viewed in the view
V$SGA_DYNAMIC_COMPONENTS. The database maintains a circular buffer of the last
400 resize operations made to SGA components. You can view the circular buffer in the
V$SGA_RESIZE_OPS view.
Note: If you specify a size for a component that is not a multiple of
granule size, then Oracle rounds the specified size up to the nearest
multiple. For example, if the granule size is 4 MB and you specify DB_
CACHE_SIZE as 10 MB, you will actually be allocated 12 MB.

通过alter system指定组件的大小时 , Oracle添加移除细粒度来达到目标值 ,如果指定的值
不是granule size的倍数 , Oracle将rounds the specified size up to the nearest
multiple .当总的sga内存小于SGA_MAX_SIZ时 ,数据库可以分配细粒度来达到该值 。
细粒度的值可以通过V$SGAINFO来查询 , 每个组件的值可以通过V$SGA_DYNAMIC_COMPONENTS ,
通过V$SGA_RESIZE_OPS视图可以查询sga组件的操作

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10599713/viewspace-978164/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10599713/viewspace-978164/

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值