r3dev:/>ipcs |grep ora
m 4194308 0x6f9a1cb0 --rw-r
nattch : 해당 영역에 붙어있는 프로세스 숫자
scott@DEV> compute sum of bytes on pool
scott@DEV> break on pool skip 1
scott@DEV>
scott@DEV> select pool, name, bytes
2 from v$sgastat
3 order by pool, name;
POOL NAME BYTES
------------ -------------------------- ----------
java pool free memory 33554432
************ ----------
sum 33554432
shared pool 1:kngisga 32088
AQ Propagation Scheduling 16000
ASH buffers 16252928
ASM file 19200
ASM map operations 3616
ASM rollback operations 2592
AW SGA 40
AWR Table Info (KEW layer 872
Active Session History - 1528
Alert log 264
ArchLog Dest Array 7656
Array of cached attr 400
Auto tune undo info 96
BRANCH TABLE SEGMENTED AR 276576
Background process state 48
Banner Storage 2048
CCursor 15077424
.
.
.
trace events array 68000
trace_knlasg 504
transaction 620720
trigger condition node 72
trigger defini 272
trigger inform 728
trigger source 152
txncallback 54208
type object de 20192
where to latch num map 7304
work area tab 270144
writes stopped lock conte 48
writes stopped lock state 48
x$ksmfs table 24
x$rule_set 17608
************ ----------
sum 1040192184
buffer_cache 5251268608
fixed_sga 2093456
log_buffer 14680064
************ ----------
sum 5268042128
위의 풀들의 정보를 보기 위해서 V$SGASTAT 뷰로 확인할 수 있다.
sys@BWD> show parameter sga_target
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
sga_target big integer 256M
sys@BWD> select component, granule_size from v$sga_dynamic_components;
COMPONENT GRANULE_SIZE
---------------------------------------------------------------- ------------
shared pool 4194304
large pool 4194304
java pool 4194304
streams pool 4194304
DEFAULT buffer cache 4194304
KEEP buffer cache 4194304
RECYCLE buffer cache 4194304
DEFAULT 2K buffer cache 4194304
DEFAULT 4K buffer cache 4194304
DEFAULT 8K buffer cache 4194304
DEFAULT 16K buffer cache 4194304
DEFAULT 32K buffer cache 4194304
ASM Buffer Cache 4194304
13 rows selected.
sys@BWD> create spfile from pfile;
File created.
sys@BWD> startup force;
ORACLE instance started.
Total System Global Area 268435456 bytes
Fixed Size 2083368 bytes
Variable Size 104859096 bytes
Database Buffers 159383552 bytes
Redo Buffers 2109440 bytes
Database mounted.
Database opened.
sys@BWD> alter system set sga_target = 1512m scope=spfile;
System altered.
sys@BWD> startup force
ORACLE instance started.
Total System Global Area 1593835520 bytes
Fixed Size 2084368 bytes
Variable Size 201327088 bytes
Database Buffers 1375731712 bytes
Redo Buffers 14692352 bytes
Database mounted.
Database opened.
sys@BWD> show parameter sga_target
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
sga_target big integer 1520M
sys@BWD> select component, granule_size from v$sga_dynamic_components;
COMPONENT GRANULE_SIZE
---------------------------------------------------------------- ------------
shared pool 16777216
large pool 16777216
java pool 16777216
streams pool 16777216
DEFAULT buffer cache 16777216
KEEP buffer cache 16777216
RECYCLE buffer cache 16777216
DEFAULT 2K buffer cache 16777216
DEFAULT 4K buffer cache 16777216
DEFAULT 8K buffer cache 16777216
DEFAULT 16K buffer cache 16777216
DEFAULT 32K buffer cache 16777216
ASM Buffer Cache 16777216
13 rows selected.