System Global Area (SGA) forms the part of the system memory (RAM) shared by all the
processes belonging to a single oracle database instance. The SGA contains all
information necessary for the instance operation.
As said above SGA is a memory area that contains data and control information for the
instance. Its includes data structures like...
-->Large Pool.
-->Streams Pool.
PGA
---> Its a private memory region containing data and control information for a server process.
Each server process has its own PGA and a Stack Space.
---> Its stores session information like Sort area functions as order by and group by, Hash area
for performing hash joins of tables and creating BITMAP Indexes for solving bitmap
index execution plan.
---> Above Parameter can be disabled using the value 0 , and when its disabled we need to set
work area initiallisation parameter using sort_area_size. Then the PGA memory is allocated to
sort_area_size.
MEMORY_TARGET and MEMORY_MAX_TARGET
* sga_max_size set the over all amount of memory the sga can consume but it
is not dynamic
* if we set memory_targer set 1024mb oracle will manage sga and pga
components within itself