oracle日志缓存,如何确定日志缓冲区的大小?

今天早上看Oracle Concept,第一次接触了Granules这个概念,原以为可以解释这个问题,仔细一算还是对不上。

Dynamic SGA Granules

With dynamic SGA, the unit of allocation is called a granule. Components, such as the

buffer cache, the shared pool, the java pool, and the large pool, allocate and free

SGA space in units of granules. Oracle tracks SGA memory use in integral numbers

of granules, by SGA component. All information about a granule is stored in a

corresponding granule entry. Oracle maintains the state of each granule in the

granule entry and the granule type.

Granule size is determined by total SGA size. On most platforms, the size of a

granule is 4 MB if the total SGA size is less than 128 MB, and it is 16 MB for larger

SGAs. Theremay be some platformdependency, for example, on 32-bit Windows

NT, the granule size is 8 MB for SGAs larger than 128 MB.

The granule size that is currently being used for SGA can be viewed in the view

V$SGA_DYNAMIC_COMPONENTS. The same granule size is used for all dynamic

components in the SGA.

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.

SQL> column component format a15

SQL> select * from v$sga_dynamic_components;

COMPONENT       CURRENT_SIZE   MIN_SIZE   MAX_SIZE OPER_COUNT LAST_O LAST_O LAST_OPER_TIME   GRANULE_SIZE

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

shared pool         58720256   58720256   58720256          0                                     8388608

large pool           8388608    8388608    8388608          0                                     8388608

buffer cache        75497472   75497472   75497472          0                                     8388608

SQL> show parameter shared_pool_size

NAME                                 TYPE        VALUE

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

shared_pool_size                     big integer 58720256

SQL> select sum(bytes) from v$sgastat where pool = 'shared pool';

SUM(BYTES)

----------

75497472

SQL>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值