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>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用\[1\]和\[2\]提到了Oracle数据库的一些相关文章,但没有具体提到数据库参数调优。引用\[3\]提到了调整数据库SQL语句来提高性能的方法,但没有提到具体的数据库参数调优方法。 数据库参数调优是通过调整数据库的各种参数来提高数据库性能和优化查询执行效率的过程。在Oracle数据库中,有很多参数可以进行调整,例如缓冲区大小、共享池大小日志缓冲区大小等。通过合理地调整这些参数,可以提高数据库的响应速度和吞吐量。 具体的数据库参数调优方法包括: 1. 监控和分析数据库性能:通过使用Oracle提供的性能监控工具,如AWR报告、ASH报告等,可以了解数据库的性能瓶颈和热点,从而有针对性地进行参数调优。 2. 调整缓冲区大小:通过增加SGA(System Global Area)的大小,可以提高数据库的缓存命中率,减少磁盘IO操作,从而提高查询性能。 3. 调整共享池大小:共享池是用于存储共享SQL和PL/SQL代码的内存区域,通过增加共享池的大小,可以减少SQL的解析次数,提高查询的执行效率。 4. 调整日志缓冲区大小:通过增加日志缓冲区大小,可以减少日志写入磁盘的次数,提高事务的提交性能。 5. 调整并发连接数:通过增加数据库的并发连接数,可以提高数据库的并发处理能力,减少用户等待时间。 需要注意的是,数据库参数调优是一个复杂的过程,需要根据具体的数据库环境和应用需求进行调整。建议在进行参数调优之前,先备份数据库,并进行充分的测试和验证,以确保调整后的参数能够达到预期的效果。 #### 引用[.reference_title] - *1* *2* *3* [Oracle数据库参数优化参考](https://blog.csdn.net/whb123andy/article/details/16987705)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值