Professional Documents
Culture Documents
Lecture 05 ORACLE Architecture
Lecture 05 ORACLE Architecture
Administration
&
Management
SGA
Shared pool
Library
Database cache
Redo log
buffer
buffer
cache Data dictionary
cache
PGA
Server
DBWR CKPT LGWR ARCH
process
User Archived
process Control Online redo log files
Data files files log files
Database
Connecting to the Database
• Connection: Communication between a user process
and an instance
• Session: Specific connection of a user to an instance
through a user process
User Server
SQL> Select … process process
User
Session
Connection
Session
Interacting with an Oracle Database
Instance
User Server
process process SGA
Shared pool
Library
Database cache
Redo log
buffer
buffer
cache Data dictionary
cache
User
Oracle Database Server Structure
Instance
SGA
Memory structures Shared pool
Library
Database cache
User Server Redo log
buffer
process process buffer
cache Data dictionary
cache
Database
Storage structures
Library Other
cache
Instance
SGA
Shared pool
Library
Database cache
Redo log
buffer
buffer
cache Data dictionary
cache
Instance
SGA
Shared pool
Library
Database cache
Redo log
buffer
buffer
cache Data dictionary
cache
SGA Shared
Shared pool SQL area Data dictionary
Library cache
Database cache
Redo log
buffer
buffer
cache Data dictionary
cache Library Other
cache
DBWn CKPT LGWR SMON PMON ARCn RECO Others
Allocation and Reuse of Memory
in the Shared Pool
• Server process checks the shared pool to see if a
shared SQL area already exists for an identical
statement.
• Server process allocates a private SQL area on behalf of
the session.
Data dictionary
Shared
cache
Server SQL area
process
Library Other
cache
Shared
pool
Large Pool
Database
Redo log
buffer Shared pool
buffer
cache
Free
I/O buffer
memory
Response Request
queue queue
Java Streams Large pool
pool pool Large pool
Java Pool
and Streams Pool
• Java pool memory is used in server memory for all
session-specific Java code and data in the JVM.
• Streams pool memory is used exclusively by Oracle
Streams to:
– Store buffered queue messages
– Provide memory for Oracle Streams processes
SGA
Shared pool
Library
Database cache
Redo log
buffer
buffer
PGA cache Data dictionary
cache
User Server
process process Background processes
DBWn CKPT LGWR SMON PMON ARCn RECO Others
Process Structures
DBWR
LGWR
Checkpoint
process
Data files
System Monitor Process (SMON)
Instance
SMON
System Monitor
process
Temporary
segment
Process Monitor Process (PMON)
PMON User
Failed user
process
Process Monitor
process
Database buffer
cache
Recoverer Process
RECO
ARCH