Escolar Documentos
Profissional Documentos
Cultura Documentos
Objectives
2-2
Oracle Database Server Architecture: Overview
Instance
PGA
Server
process Memory Structures
(System Global Area)
Server
Process Structures
User
process
2-3
Oracle Database Instance Configurations
I1
I1 I2 I3
I2
D1
D2
Local Storage D
Shared Storage
2-4
Connecting to the Database Instance
User Server
SQL> Select … process process
User
Session
Connection
Session
2-5
Oracle Database Memory Structures
Database
Redo log
Shared pool buffer
buffer
cache
2-6
Shared Pool
Library
Cache Reserved Pool
Database
Redo log
Shared pool buffer
buffer
cache
2-8
Database Buffer Cache
Keep pool
Recycle Database
pool Redo log
Shared pool buffer
buffer
cache
nK buffer
cache
2 - 10
Redo Log Buffer
Database
Redo log
Shared pool buffer
buffer
cache
2 - 11
Large Pool
Redo log
Database
buffer
Shared pool buffer
cache Free Parallel
I/O buffer
RECYCLE memory
Query
buffer pool
Response Request Advanced
Streams queue
Large pool Java pool Fixed SGA queue Queuing
pool
Large pool
System Global Area (SGA)
2 - 12
Java Pool
2 - 13
Streams Pool
2 - 14
Program Global Area (PGA)
Database
Redo log
Shared pool buffer buffer
cache
2 - 15
12.1.0.2
In-Memory Column Store: Introduction
– Segment attributes
2 - 16
12.1.0.2
In-Memory Column Store: Overview
2 - 18
12.1.0.2
Full Database In-Memory Caching
No
Loaded in buffer cache LRU
if table size < small %
of buffer cache size
Table SH.SALES
2 - 20
Quiz
2 - 22
Quiz
What is read into the database buffer cache from data files?
a. Rows
b. Changes
c. Blocks
d. SQL
2 - 23
Process Architecture
• User process
– Is the application or tool that connects to the Oracle
database
• Database processes
– Server process: Connects to the Oracle instance and is
started when a user establishes a session
– Background processes: Are started when an Oracle instance
is started
• Daemon / Application processes
– Networking listeners
– Grid Infrastructure daemons
2 - 24
Process Structures
2 - 26
Database Writer Process (DBWn)
DBWn
2 - 28
Log Writer Process (LGWR)
LGWR
Redo log
buffer
LGnn
2 - 30
Checkpoint Process (CKPT)
Checkpoint
process
Data files
2 - 32
System Monitor Process (SMON)
Instance
SMON
System Monitor
process
Temporary
segment
2 - 33
Process Monitor Process (PMON)
Server
process
PMON
User
Database buffer
Failed user process Process Monitor
cache
process
2 - 34
Recoverer Process (RECO)
RECO
2 - 35
Listener Registration Process (LREG)
Instance
Memory Structures
(System Global Area)
Process Structures
LREG listener
2 - 36
Archiver Processes (ARCn)
ARCn
2 - 37
Database Storage Architecture
2 - 38
Logical and Physical Database Structures
Logical Physical
Database
Segment
Storage System
• SAN • NFS
Extent
• NAS • ASM
• Exadata
Oracle data
• File System
block
2 - 40
Segments, Extents, and Blocks
2 - 42
Tablespaces and Data Files
Extent Extent
64 KB 64 KB
Segment
128 KB
2 - 43
SYSTEM and SYSAUX Tablespaces
2 - 44
Oracle Container Database: Introduction
2 - 45
Multitenant Architecture
Instance
Server System Global Area
PDBid2 PDBid3 PDBid4 PDBid2 PDBid4
Instance
Process Structures
Multitenant
container
database Data files Control files Redo Log files
UNDO
SYSTEM
2 - 46
Automatic Storage Management
Operating system
2 - 47
ASM Storage Components
ASM
Oracle
ASM
Database ASM file
disk group
Data file
ASM
extent
2 - 48
Interacting with an Oracle Database:
Memory, Processes, and Storage
Instance
Database
Redo log
Shared pool buffer
PGA buffer
cache
Server
process
Java pool Streams
Large pool Fixed SGA
pool
Listener
DBWn CKPT LGWR SMON PMON RECO ARCn Others
User
process
User
2 - 49
Quiz
2 - 51
Summary
2 - 52
Practice: Overview
2 - 53