手机版
你好,游客 登录 注册
背景:
阅读新闻

Oracle体系结构详解

[日期:2012-07-12] 来源:Linux社区  作者:yujin2010good [字体:大 中 小]

Oracle 10g 中 sga_target自动调整只是针对这四项:data buffer cache, large_pool, shared_pool, java_pool

 

1)       03:41:30 SQL> show sga

2)        

3)       Total System Global Area  285212672 bytes

4)       Fixed Size                  1218992 bytes

5)       Variable Size              71304784 bytes

6)       Database Buffers          209715200 bytes

7)       Redo Buffers                2973696 bytes

8)       04:45:40 SQL>

9)        

04:46:18 SQL> select name,bytes/(1024*1024) ,resizeable from v$sgainfo;

10)    

11)   NAME                             BYTES/(1024*1024) RES

12)   -------------------------------- ----------------- ---

13)   Fixed SGA Size                          1.16252136 No

14)   Redo Buffers                             2.8359375 No

15)   Buffer Cache Size                              200 Yes

16)   Shared Pool Size                                60 Yes

17)   Large Pool Size                                  4 Yes

18)   Java Pool Size                                   4 Yes

19)   Streams Pool Size                                0 Yes

20)   Granule Size                                     4 No     ;区组大小为4M

21)   Maximum SGA Size                               272 No

22)   Startup overhead in Shared Pool                 36 No

23)   Free SGA Memory Available                        0

24)    

04:49:34 SQL> select sum(bytes)/(1024*1024) size_in_mb  from v$sgastat;

25)    

26)   SIZE_IN_MB

27)   ----------

28)   276.003071

29)    

30)    

04:48:19 SQL> select * from v$sgastat;

31)    

32)   POOL         NAME                            BYTES

33)   ------------ -------------------------- ----------

34)   shared pool  KKJ WRK LAT                       300

35)   shared pool  kfkhsh_kfdsg                     2052

36)   shared pool  event statistics ptr arra         680

37)   shared pool  KGKP randnum                    40000

38)   large pool   PX msg pool                    206208

39)   large pool   free memory                   3988096

40)   java pool    free memory                   4194304

41)    

42)   602 rows selected.

43)    

04:50:37 SQL> show parameter sga;

44)   

45)   NAME                                 TYPE        VALUE

46)   ------------------------------------ ----------- ------------------------------

47)   lock_sga                             boolean     FALSE

48)   pre_page_sga                         boolean     FALSE

49)   sga_max_size                         big integer 272M

50)   sga_target                           big integer 272M

SGA动态尺寸总计不能超过初始化参数SGA_MAX_SIZE的值。

如果sga_target超过了sga_max_size的大小,在Instance重新启动后,sga_max_size会调整成和sga_target一样大小的值。

如果在初始化参数里这些内存池设置为非零,则系统启动后,这些值将作为该参数对应的最小值运行。如果那个值在系统运行时不够,则Oracle将自动为其添加容量,以帮助其优化操作,直到内存使用达到SGA_TARGET所表明的上限。

[oracle@oraserv ~]$ !sql

sqlplus '/as sysdba';

 

SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 19 11:17:30 2011

 

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

 

Connected to an idle instance.

 

11:17:35 SQL> startup

ORACLE instance started.

 

Total System Global Area  419430400 bytes

Fixed Size                  1219784 bytes

Variable Size             289407800 bytes

Database Buffers          125829120 bytes

Redo Buffers                2973696 bytes

Database mounted.

Database opened.

11:18:13 SQL> show parameter sga

 

NAME                                 TYPE        VALUE

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

lock_sga                             boolean     FALSE

pre_page_sga                         boolean     FALSE

sga_max_size                         big integer 400M

sga_target                           big integer 300M

linux
相关资讯       Oracle体系结构 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款