Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
Oracle Memory Architecture in oracle 10g

Oracle Memory Architecture in oracle 10g

Ratings: (0)|Views: 298|Likes:
Published by Satish Babu
this pdf ll explain abt Oracle Memory Architecture(SGA &PGA)
this pdf ll explain abt Oracle Memory Architecture(SGA &PGA)

More info:

Published by: Satish Babu on Feb 14, 2011
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





Oracle Memory Architecture
- 1 -There are five memory structures that make up the System Global Area (SGA).
SGAShared Pool
The shared pool consists of the following areas:
Library cache
includes the shared SQL area, private SQL areas, PL/SQL procedures and packagesthe control structures such as locks and library cache handles
Dictionary cache
is a collection of database tables and views containing information about thedatabase, its structures and users.Buffers for parallel execution messages and control structures
This area holds copies of read data blocks from the datafiles. The buffers in the cache contain twolists, thwe write list and the least used list (LRU). The write list holds dirty buffers which containmodified data not yet written to disk. The least used list holds free buffers (no useful data) , pinned buffers (being accessed) and dirty buffers that have not yet been moved to the write list.The size is deteremnied by the following in the system paramenter file:
Redo buffer
Is a circular buffer that holds information about changes made to the database, this information isstored in redo entries. These entries contain necessary information to reconstruct/redo changes by theINSERT, UPDATE, DELETE, CREATE, ALTER and DROP commands.
Large Pool
This is an optional memory area that provide large areas of memory for:Session memoryI/O server processesBackup and RestoreParallel execution message buffers.
Java Pool
used to execute java code within the database.
Oracle Memory Architecture
- 2 -
Display information regarding the SGAMemory areaMemorylocationDisplaying the information
SGA sql> show sga;SGA (detailed) use table v$sgastat; Buffer cacheSGAuse table v$bh;Display memoryallocationSGAcompute sum of bytes on pool break on pool skip 1select pool, name bytesfrom v$sgastatorder by pool, nameDisplay the redo buffer SGAselect * from v$sga where name = 'Redo Buffers' Library cache shared pool use table v$librarycache;Dictionary cache shared pool use table v$rowcache;
Each process connected to the database requires its own area of memeory this is know as the Program GlobalArea (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 inOracle9
) requires additional memory for the user's session, such as private SQL areas and other information. If the instance is running the multi-threaded server, this extra memory is not in thePGA, but is instead allocated in the SGA (the Shared Pool).
Stack space
The memory allocated to hold a sessions variables, arrays, etc and other information relating tothe session. However for a shared server the session memory is shared and
Display information regarding the PGA
Sessionv$sesstat, v$statname
Oracle Memory Architecture
- 3 -Stack Display PGA andUGA usageselect a.name, b.namefrom v$statname a, v$mystat bwhere a.statistic# = b.statistic#and a.name like '%ga %'
Server Processes
There could be upto 11 server process depending on the server configurationProcess MonitorPMONResponsible for cleaning up after abnormally terminated connections.Responsible for monitoring other server processes and restarting them if necessaryRegisters the instance with the listener.System MonitorSMONTemporary space cleanupCrash recovery apon restartCoalescing free spaceRecovering transactions active against unavailable filesInstance recovery of failed node in OPS (Oracle parallel server)Cleans up OJB$ (Low Level data dictionary)Shrinks rollback segmentsOfflines rollback segmentsDistributed databaserecoveryRECORecovers transactions that are left in a prepared state because of a crash or loss of connection during a two-phase commit.Checkpoint processCKPTIt does
do the checkpoint but assists with the checkpointing process byupdating the file headers of the data files.Database block writerDBWnResponsible for writing dirty blocks to disk, it writes the dirty blocks from the buffer.Log writerLGWResponsible for flushing to disk the contents of the redo log buffer located in theSGA.It does this:Every 3 secondsWhenever you commitWhen the redo log buffer is a third full or contains 1 Mb of bufferddataArchive processARCnCopy online redo log file to another location when
fills up, these log fileswould be used to perform media recovery.Block server process BSPUsed in OPS and keeps each servers SGA in the clusters consistent with eachother.Lock monitor process LMONUsed in OPS and monitors all instances in a cluster to detect a failure of aninstance.Lock manager daemon LMDUsed in OPS and controls the global locks and global resources for the block  buffer cache in a clustered environment.

Activity (4)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Amit Kasana liked this
Amit Kasana liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->