SGA之SQL
2015-12-06 19:12
471 查看
--查看诊断位置信息
select * from v$diag_info;
--查看sga中内存分配信息
select * from sys.x$ksmfs;
--查看内存块还剩余多少
select pool,name,bytes/1024/1024 MB from v$sgastat where name='free memory';
--查看共享池的使用情况比率
select to_number(v$parameter.value) value,v$sgastat.bytes/1024/1024 "v$sgastat MB",
(v$sgastat.bytes/v$parameter.value)*100 "percent free"
from v$sgastat,v$parameter where v$sgastat.name='free memory' and v$parameter.name='shared_pool_size'
and v$sgastat.pool='shared pool';
--查看SGA内各个易失存储器块的情况
select * from v$sga_dynamic_components
--查询动态调整SGA内存块还有多少可使用空间
select * from v$sga_dynamic_free_memory;
--SGA信息
select * from v$sgainfo
--可根据此视图调整SGA大小
select * from v$sga_target_advice
select * from v$diag_info;
--查看sga中内存分配信息
select * from sys.x$ksmfs;
--查看内存块还剩余多少
select pool,name,bytes/1024/1024 MB from v$sgastat where name='free memory';
--查看共享池的使用情况比率
select to_number(v$parameter.value) value,v$sgastat.bytes/1024/1024 "v$sgastat MB",
(v$sgastat.bytes/v$parameter.value)*100 "percent free"
from v$sgastat,v$parameter where v$sgastat.name='free memory' and v$parameter.name='shared_pool_size'
and v$sgastat.pool='shared pool';
--查看SGA内各个易失存储器块的情况
select * from v$sga_dynamic_components
--查询动态调整SGA内存块还有多少可使用空间
select * from v$sga_dynamic_free_memory;
--SGA信息
select * from v$sgainfo
--可根据此视图调整SGA大小
select * from v$sga_target_advice
相关文章推荐
- Oracle9i 动态SGA,PGA特性探索
- oracle修改SGA后无法启动问题分析及解决方法
- Oracle SGA自动管理
- Oracle Memory Architecture - Oracle 体系结构篇 3
- Oracle体系结构及备份(五)——sga
- Oracle体系结构简介
- oracle的内存管理(之一)
- Oracle内存管理(之七)
- shared pool 和buffer pool 详解(之二, Cache Buffers LRU Chain、Cache Buffers LRU Chain闩锁竞争与解决)
- buffer cache 和shared pool 详解(之三,shared pool原理)
- 【SQL】Oracle 数据库的绑定变量特性及应用
- SGA 与 HugePage
- oracle内存相关(sga,pga,latch)
- sag_max_size与sga_target区别与联系,以及不同版本下sga_target的简略讨论。
- Scripts:诊断sga diag信息auto_sga_diag.sql
- Oracle-SGA → sga_target and sga_max_size
- Oracle-sga → large_pool , jave_pool , streams_buffer , redo_log_buffer
- Oracle - SGA 结构
- Oracle - SGA → Data_buffer_cache 之 Keep pool
- 内存管理