问个SGA的问题

[复制链接]
查看11 | 回复9 | 2005-10-30 17:05:33 | 显示全部楼层 |阅读模式
11:18:11 SQL> select pool,sum(bytes) from v$sgastat group by pool;
POOLSUM(BYTES)
----------- ----------
java pool 20971520
large pool 4194304
shared pool 50331648

17885444
11:18:21 SQL> show sga
Total System Global Area 93394180 bytes
Fixed Size
451844 bytes
Variable Size
75497472 bytes
Database Buffers 16777216 bytes
Redo Buffers
667648 bytes
11:23:17 SQL> show parameter shared_pool
NAME_COL_PLUS_SHOW_PARAM
TYPE
---------------------------------------------------------------- -----------
VALUE_COL_PLUS_SHOW_PARAM
----------------------------------------------------------------------------------------------------
shared_pool_reserved_size
big integer
1677721
shared_pool_size
big integer
33554432
1。v$sgastat 中的shared_pool为什么不等于show parameter shared_pool中的shared_pool呢?????
2。show sga中的fixed_sga 是什么?
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
[biti_rainy]

fixes size : oracle 的不同平台和不同版本下可能不一样,但对于确定环境是一个固定的值,里面存储了 SGA 各部分 组件 的信息,可以看作 引导 建立 SGA 的区域
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
多谢楼上的,那第一个问题呢?
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
SGA内存配置中,运行时的值和配置的值有时是不相同的,这和内存的分配粒度有关系。
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
metalink 上有篇文章对此有解释,文章中提到问题在10G解决了
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
最初由 rwq_ 发布
[B]SGA内存配置中,运行时的值和配置的值有时是不相同的,这和内存的分配粒度有关系。 [/B]

那运行时多出来那一部分是从哪分配的呀??从SGA以外的系统内存???
这样的话,那oracle运行时的SGA是和参数设置的不一样了??
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
最初由 strongliq 发布
[B]metalink 上有篇文章对此有解释,文章中提到问题在10G解决了 [/B]

给个链接看看贝,10g中就不存在这种不一致了是吗?
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
哦,原来是正常的。 分配调整的时候,还是以初始化参数为准就可以对吧?
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
Acturally, TOM has given answer since his first book.
IN:
select pool,sum(bytes) from v$sgastat group by pool;
the shared pool does not mean the real size, it contains some miscellaneous section.eg.some control file consumption
So useshow parameter shared_pool to get the real size
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
10g中情况如下:
SQL> select pool,sum(bytes) from v$sgastat group by pool;
POOL SUM(BYTES)
------------ ----------
java pool 8388608
large pool4194304
shared pool46137344

105897956
SQL> show parameter shared_pool;
NAME
TYPEVALUE
------------------------------------ ----------- ------------------------------
__shared_pool_size
big integer 44M
shared_pool_reserved_size
big integer 2306867
shared_pool_size
big integer 0
SQL>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行