sort area: used for any sort that may be necessary before rows are processed or returned to the user
session information : such as user privileges for the session
cursor state : which indicate the stage in the processing of variouscursors that r currently used by the session
stack space : containing the session variables
Thus PGA is allocated when a process is created and de allocatedwhen the process is terminated
A session is a specific connection of a user to an oracle server. The sessionstarts when the user connects to the oracle server. And it ends when the user logs out.
SGA—System global area
It is a dynamicIt is used to store database information that is shared by database processes.
Dynamic SGA implements an infrastructure that allows the SGAconfiguration to change with out shut down the instance. This modified sgawill effect on db buffer cache and shared pool onlyTo view sga –desc v$sgastatTo change sga size—alter system set sga_max_size=64m;
It holds most recently executed sql statementsMost recently used data definitionTo change the size –alter system set shared_pool_size=64m;
Stores information about the most recently used SQL and PLSQL statementsIf the size of the shared pool is too small, statements r continuously reloadedinto library cache. It is manage my LRU algorithm
Shared SQL –it stores and shares the execution plan and parse tree for sql statements. Is second time the statement is run it takes from parsetree
Shared PLSQL —stores and shares the most recently used plsqlstatements it stores functions ,packages and triggers
Data dictionary cache
Collection of most recently used definitions in the database