Professional Documents
Culture Documents
There are five memory structures that make up the System Global Area (SGA).
SGA
Library cache includes the shared SQL area, private SQL areas, PL/SQL procedures and packages
the control structures such as locks and library cache handles
Shared Pool
Dictionary cache is a collection of database tables and views containing information about the
database, its structures and users.
Session memory
Large Pool I/O server processes
Backup and Restore
Memory
Memory area Displaying the information
location
SGA sql> show sga;
SGA (detailed) use table v$sgastat;
PGA
Each process connected to the database requires its own area of memeory this is know as the Program Global
Area (PGA). This area stores variables, arrays and other information that do not need to be shared with other
processes.
PGA in an instance running without the multi-threaded server (named Shared Server in
Session Oracle9i) requires additional memory for the user's session, such as private SQL areas and other
Information information. If the instance is running the multi-threaded server, this extra memory is not in the
PGA, but is instead allocated in the SGA (the Shared Pool).
The memory allocated to hold a sessions variables, arrays, etc and other information relating to
Stack space
the session. However for a shared server the session memory is shared and not private
Stack
select a.name, b.name
Display PGA and from v$statname a, v$mystat b
UGA usage where a.statistic# = b.statistic#
and a.name like '%ga %'
Server Processes
It does this:
Log writer LGWR
Every 3 seconds
Whenever you commit
When the redo log buffer is a third full or contains 1 Mb of bufferd
data
Copy online redo log file to another location when LGWR fills up, these log files
Archive process ARCn
would be used to perform media recovery.
Used in OPS and keeps each servers SGA in the clusters consistent with each
Block server process BSP
other.
Used in OPS and monitors all instances in a cluster to detect a failure of an
Lock monitor process LMON
instance.
Used in OPS and controls the global locks and global resources for the block
Lock manager daemon LMD
buffer cache in a clustered environment.
Oracle Memory Architecture -4-
Used in OPS and is the same as the LMD daemon but handles requests for all
Lock process LCKn
global resources other than database block buffers