oracle查询内存信息,Oracle 内存信息查询

SGA是系统全局区,是Oracle中可以共享的内存。

1.查看SGA的信息

---查看SGA信息

show sga

select * from v$sga ;

select * from v$sgainfo ;

76373d9302815d41b8768dfc9023cc46.png

Fixed Size 是固定区域,用于存储SGA各组件的信息。固定区域的大小随平台和版本而变化。

Variable Size  是可变区域,包括共享池、Java池、大池。

Database Buffers 是数据库高速缓冲区。

Redo Buffers 是重做日志缓冲区。

2.查看高速缓冲区(Database Buffer Cache)的实际大小

select name,bytes/1024/1024 || 'M' from v$sgainfo

where name = 'Buffer Cache Size'

782ca30cc9572ac7fdfb0d9a512ac5bc.png

3.查看共享池(Shared Pool)的实际大小

select name,bytes/1024/1024 || 'M' from v$sgainfo

where name = 'Shared Pool Size';

or

select component,(current_size/1024/1024) || 'M' from v$memory_dynamic_components

where conponent ='shared pool';

4.查看JAVA池的实际大小

select name,bytes/1024/1024 || 'M' from v$sgainfo

where name = 'Java Pool Size';

or

select component,(current_size/1024/1024) || 'M' from v$memory_dynamic_components

where conponent ='java pool';

5.查看大池的实际大小

select name,bytes/1024/1024 || 'M' from v$sgainfo

where name = 'Large Pool Size';

or

select component,(current_size/1024/1024) || 'M' from v$memory_dynamic_components

where conponent ='large pool';

6.查看 共享池、JAVA池、大池的剩余空间

---共享池的剩余空间

select * from v$sgastat where name = 'free memory' and Pool = 'shared pool';

---JAVA池的剩余空间

select * from v$sgastat where name = 'free memory' and Pool = 'java pool';

---大池的剩余空间

select * from v$sgastat where name = 'free memory' and Pool = 'large pool';

标签:1024,name,Pool,查询,内存,memory,Oracle,where,select

来源: https://blog.csdn.net/aganliang/article/details/86498666

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值