--
SQL> show sga
Total System Global Area 268435456 bytes
Fixed Size 1248476 bytes
Variable Size 117441316 bytes
Database Buffers 146800640 bytes
Redo Buffers 2945024 bytes
SQL> show parameter shared_pool
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
shared_pool_reserved_size big integer 5M
shared_pool_size big integer 64M
SQL> show parameter cache_size
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_16k_cache_size big integer 4M
db_2k_cache_size big integer 0
db_32k_cache_size big integer 0
db_4k_cache_size big integer 8M
db_8k_cache_size big integer 0
db_cache_size big integer 52M
db_keep_cache_size big integer 8M
db_recycle_cache_size big integer 12M
SQL> select * from v$sgainfo;
NAME BYTES RES
------------------------------ ---------- ---
Fixed SGA Size 1248476 No
Redo Buffers 2945024 No
Buffer Cache Size 146800640 Yes
Shared Pool Size 104857600 Yes
Large Pool Size 8388608 Yes
Java Pool Size 4194304 Yes
Streams Pool Size 0 Yes
Granule Size 4194304 No
Maximum SGA Size 268435456 No
Startup overhead in Shared Poo 37748736 No
l
NAME BYTES RES
------------------------------ ---------- ---
Free SGA Memory Available 0
已选择11行。
SQL> @c:getp.sql
输入 par 的值: shared_pool
原值 6: and x.ksppinm like '%&par%'
新值 6: and x.ksppinm like '%shared_pool%'
NAME VALUE DESCRIB
------------------------- --------------- ----------------------------------------
__shared_pool_size 104857600 Actual size in bytes of shared pool
shared_pool_size 67108864 size in bytes of shared pool
shared_pool_reserved_size 5242880 size in bytes of reserved area of shared
pool
_shared_pool_reserved_pct 5 percentage memory of the shared pool all
ocated for the reserved area
_shared_pool_reserved_min 4400 minimum allocation size in bytes for res
_alloc erved area of shared pool
_io_shared_pool_size 4194304 Size of I/O buffer pool from SGA
_shared_pool_max_size 0 shared pool maximum size when auto SGA e
nabled
_dm_max_shared_pool_pct 1 max percentage of the shared pool to use
for a mining model
已选择8行。
SQL> @c:getp.sql
输入 par 的值: db_cache_size
原值 6: and x.ksppinm like '%&par%'
新值 6: and x.ksppinm like '%db_cache_size%'
NAME VALUE DESCRIB
------------------------- --------------- ----------------------------------------
__db_cache_size 113246208 Actual size of DEFAULT buffer pool for s
tandard block size buffers
db_cache_size 54525952 Size of DEFAULT buffer pool for standard
block size buffers
SQL> host echo ==============This is the value of start=============
SQL> alter system set shared_pool_size=56M;
系统已更改。
SQL> alter system set db_cache_size=36M;
系统已更改。
SQL> host echo =================check cache change===============
SQL> show sga
Total System Global Area 268435456 bytes
Fixed Size 1248476 bytes
Variable Size 117441316 bytes
Database Buffers 146800640 bytes
Redo Buffers 2945024 bytes
SQL> show parameter shared_pool
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
shared_pool_reserved_size big integer 5M
shared_pool_size big integer 56M
SQL> show parameter cache_size
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_16k_cache_size big integer 4M
db_2k_cache_size big integer 0
db_32k_cache_size big integer 0
db_4k_cache_size big integer 8M
db_8k_cache_size big integer 0
db_cache_size big integer 36M
db_keep_cache_size big integer 8M
db_recycle_cache_size big integer 12M
SQL>
SQL> select * from v$sgainfo;
NAME BYTES RES
------------------------- ---------- ---
Fixed SGA Size 1248476 No
Redo Buffers 2945024 No
Buffer Cache Size 146800640 Yes
Shared Pool Size 104857600 Yes
Large Pool Size 8388608 Yes
Java Pool Size 4194304 Yes
Streams Pool Size 0 Yes
Granule Size 4194304 No
Maximum SGA Size 268435456 No
Startup overhead in Share 37748736 No
d Pool
Free SGA Memory Available 0
已选择11行。
SQL> @c:getp.sql
输入 par 的值: shared_pool
原值 6: and x.ksppinm like '%&par%'
新值 6: and x.ksppinm like '%shared_pool%'
NAME VALUE DESCRIB
------------------------- --------------- ---
【版權聲明】
本文爲原創,遵循CC 4.0 BY-SA版權協議!轉載時請附上原文鏈接及本聲明。
原文鏈接:https://tdlib.com/am.php?t=RlVxAMV17wl8
Tag:
Oracle
Oracle优化
Oracle内存
Oracle笔记
TTTBLOG
[转]Linux 下NEWS server(INN)架设全过
2010-05-21
FCKeditor用法详解
2011-11-01
关于WPG中文博客主页,已经完成,请大家测试
2009-08-31
Oracle 19c 实现密码不区分大小写
2023-03-30
安居乐业--纪念邹涛君
2007-05-16
[转]夫妻间,必须吵架!!
2010-06-18
09年最经典的动画--打,打个大西瓜(经典国产)
2009-10-24
看广州丰田4S店打人有感--汉奸走狗害死人啊
2010-10-13
苹果,有时想爱吃梨
2007-09-27
离婚无疾而终,却又闯下了弥天大祸!
2009-04-06
Oracle各个版本体系结构
2022-07-19
Oracle 启动例程 STARTUP参数说明
2023-07-15
Delphi判断全角字符方法
2009-07-25
房价真的能够打压下去吗?
2010-04-21
Oracle多行变一行
2020-06-05
刚交完钱,后天提车,很不顺,很闹心……
2010-08-03
网站续费与备案
2010-05-11
4/16~17 炫丽自驾,盘山两日游全记录
2011-04-22
跳农门、跳农门,跳出了农门却发现农门蛮好的~~
2009-12-14
ORACLE12C 非归档模式下RMAN备份与恢复
2021-01-19
一直不太明白,SGA动态自动调整下如何修改SGA各组件的设置。
今天终于大概明白了!
修改:可以通过alter system直接修改,但只能修改v$sgainfo表中RESIZEABLE列为Yes的组件。
查看:可以通过show parameter来查看,也可以通过隐含参数来查看其中的变化。
但还是有点不明白具体的设置,如下面的测试。
作个测试,通过以下几种方式查看变化:
1,show sga
2,show parameter
3,select * from v$sgainfo;
4,通过eygle的脚本查看隐藏参数
set linesize 100
col name for a25
col value for a15
col describ for a40
select x.ksppinm name,y.ksppstvl value,x.ksppdesc describ
from sys.x$ksppi x,sys.x$ksppcv y
where x.inst_id=userenv('instance')
and y.inst_id=userenv('instance')
and x.indx=y.indx
and x.ksppinm like '%&par%'
/
==============以下为测试内容==============
相關內容
評論