v$sga及v$sgainfo的解释

v$sga分大块的记录sga的信息。

SQL> desc v$sga
 Name        Null?    Type
 ----------------------------------------- -------- ----------------------------
 NAME          VARCHAR2(20)
 VALUE          NUMBER

SQL> select * from v$sga;

NAME     VALUE
-------------------- ----------
Fixed Size  1218148
Variable Size        79694236
Database Buffers       54525952
Redo Buffers  2973696

1、fixed size部分为sga的固定部分,包含数据库和实例的状态信息等通用信息,后台进程需要访问这部分信息,不存储用户数据,通常只需要很小的一部分。

2、variable size部分包括shared_pool_size、java_pool_size和large_pool_size。

3、database buffer代表db_cache_size的大小。

4、redo buffer代表日志缓冲区的大小,这个值通常比参数log_buffer值稍大一些。

v$sgainfo

V$SGAINFO displays size information about the SGA, including the sizes of different SGA components, the granule size, and free memory.

ColumnDatatypeDescription
NAMEVARCHAR2(32)Name of the SGA statistic
BYTESNUMBERSize of the statistic (in bytes)
RESIZEABLEVARCHAR2(3)Indicates whether the statistic is resizeable (YES) or not (NO)

QL> select  *  from  v$sgainfo;

NAME          BYTES RES
-------------------------------- ---------- ---
Fixed SGA Size       1218148 No
Redo Buffers       2973696 No
Buffer Cache Size     54525952 Yes
Shared Pool Size     71303168 Yes
Large Pool Size       4194304 Yes
Java Pool Size       4194304 Yes
Streams Pool Size     0 Yes
Granule Size       4194304 No
Maximum SGA Size    138412032 No
Startup overhead in Shared Pool    33554432 No
Free SGA Memory Available    0

在内存的自动管理状态下查看内存各个组件的大小可以查看此视图。

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

转载于:http://blog.itpub.net/23655288/viewspace-717964/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值