Monday, August 17, 2015

Memory Allocation Scenario

SQL> show parameter target;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
archive_lag_target                   integer     0
db_flashback_retention_target        integer     1440
fast_start_io_target                 integer     0
fast_start_mttr_target               integer     0
memory_max_target                    big integer 32G
memory_target                        big integer 32G
parallel_servers_target              integer     64
pga_aggregate_target                 big integer 4G
sga_target                           big integer 28G

SQL> select name,bytes/1024/1024/1024  "SGA Memory GB" from v$sgainfo;

NAME                             SGA Memory GB
-------------------------------- -------------
Fixed SGA Size                      .002067626
Redo Buffers                        .060417175
Buffer Cache Size                        22.25
Shared Pool Size                         5.375
Large Pool Size                           .125
Java Pool Size                           .0625
Streams Pool Size                            0
Shared IO Pool Size                          0
Granule Size                             .0625
Maximum SGA Size                    27.8749886
Startup overhead in Shared Pool     2.22802646

NAME                             SGA Memory GB
-------------------------------- -------------
Free SGA Memory Available                    0

SQL> select name,value/1024/1024/1024 "PGA  Memory GB" from v$pgastat;

NAME                                                             PGA  Memory GB
---------------------------------------------------------------- --------------
aggregate PGA target parameter                                                4
aggregate PGA auto target                                             2.7707777
global memory bound                                                  .399999619
total PGA inuse                                                      .921397209
total PGA allocated                                                  1.64324188
maximum PGA allocated                                                3.72798538
total freeable PGA memory                                             .63482666
process count                                                        9.4064E-08
max processes count                                                  1.0990E-07
PGA memory freed back to OS                                          1121.47754
total PGA used for auto workareas                                             0

NAME                                                             PGA  Memory GB
---------------------------------------------------------------- --------------
maximum PGA used for auto workareas                                  .097494125
total PGA used for manual workareas                                           0
maximum PGA used for manual workareas                                .000989914
over allocation count                                                         0
bytes processed                                                      1317.29632
extra bytes read/written                                             .056865692
cache hit percentage                                                 9.3123E-08
recompute count (total)                                              .001793807