ITPub博客

首页 > 数据库 > Oracle > oracle sga构成

oracle sga构成

原创 Oracle 作者:polestar123 时间:2009-07-07 16:32:25 0 删除 编辑

SGA

1、Followed components can be managed auto.

1)shared pool(sql pl/sql execute, dictionary cache)

2)buffer cache(data buffer read from /write to disk;使用两个list管理:write list/LRU list.)

The write list holds dirty buffers, which contain data that has been modified but has not yet been written to disk. The LRU list holds free buffers, pinned buffers, and dirty buffers that have not yet been moved to the write list.

3)redo buffer pool( redo buffer write to disk,log_buffer一般设置1M到3M,见注1)

4)large pool(rman backup buffer)

5)java pool(execute java)

6)stream pool()

2、Followed components can be managed mannually only.

■ Keep/Recycle buffer caches (controlled by DB_KEEP_CACHE_SIZE and DB_RECYCLE_CACHE_SIZE)
■ Additional buffer caches for non-standard block sizes (controlled by DB_nK_CACHE_SIZE, n = {2, 4, 8, 16, 32})

注1:

The initialization parameter LOG_BUFFER determines the size (in bytes) of the redo log
buffer. In general, larger values reduce log file I/O, particularly if transactions are long
or numerous. The default setting is either 512 kilobytes (KB) or 128 KB times the
setting of the CPU_COUNT parameter, whichever is greater.

重要参数说明:

sga_target 动态参数,可以通过alter system set sga_target=400M;

sga_max_size 静态初始化参数。sga_target

DB_BLOCK_SIZE=4096 (数据块大小)
DB_CACHE_SIZE=1024M (默认数据块大小4k对应的buffer cache)
DB_2K_CACHE_SIZE=256M(2k数据块对应的buffer cache)
DB_8K_CACHE_SIZE=512M(8k数据块对应的buffer cache)

USE_INDIRECT_DATA_BUFFERS(扩展内存参数)

The USE_INDIRECT_DATA_BUFFERS parameter enables the use of the extended buffer cache mechanism for 32-bit platforms that can support more than 4 GB of physical memory. On platforms that do not support this much physical memory, this parameter is ignored.

SGA相关视图

select * from V$SGA_RESIZE_OPS;
select * from V$SGA_CURRENT_RESIZE_OPS;
select * from V$SGA_TARGET_ADVICE;
select * from V$SGA;
select * from V$SGAINFO;
select * from V$SGASTAT;
select * from V$SGA_DYNAMIC_COMPONENTS;
select * from V$SGA_DYNAMIC_FREE_MEMORY;

也可以通过下面的sql查询:

SQL> select name,object_id,type from v$fixed_table where name like 'V%SGA%' ;

NAME OBJECT_ID TYPE
------------------------------ ---------- -----
V$SGA 4294950938 VIEW
V$SGASTAT 4294950939 VIEW
V$SGAINFO 4294952085 VIEW
V$SGA_CURRENT_RESIZE_OPS 4294951935 VIEW
V$SGA_RESIZE_OPS 4294951937 VIEW
V$SGA_DYNAMIC_COMPONENTS 4294951939 VIEW
V$SGA_DYNAMIC_FREE_MEMORY 4294951941 VIEW
V$SGA_TARGET_ADVICE 4294952616 VIEW

8 rows selected

SQL>

[@more@]

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

下一篇: oracle PGA 构成
请登录后发表评论 登录
全部评论

注册时间:2009-05-22

  • 博文量
    110
  • 访问量
    438366