Professional Documents
Culture Documents
01 Oracle Database Concepts and Architecture
01 Oracle Database Concepts and Architecture
1
Agenda
Workshop
▪ Objectives
▪ Approach
Training Workshop House Rules
2
Working Together Will Leverage
Expertise and Build Support
3
Workshop House Rules
Participation Encouraged
Promptness Appreciated
Multiple Answers may Exist – be flexible and supportive of
decisions made
4
Schedule
5
Using Accounting Setup Manager
Chapter 1
Oracle Database Concepts and Architecture
6
Objectives
7
Oracle Database
Database
Provides multi-
Handles large
level security
amount of data
access
8
Oracle Database Server Architecture: Overview
Instance
I
PGA
N
Server
process Memory Structures S
T
(System Global Area) A
N
Server C
Process Structures E
User
process
9
Oracle Database Memory Structures
Stack User
Space Global
Area
KEEP
Database buffer pool
Redo log
Shared pool buffer
buffer
cache RECYCLE
buffer pool
10
Shared Pool
▪ Control structures
Library Other
cache KEEP
Database buffer pool
Redo log
Shared pool buffer
buffer
cache RECYCLE
buffer pool
12
Database Buffer Cache
KEEP
Database buffer pool
Redo log
Shared pool buffer
buffer
cache RECYCLE
buffer pool
14
Redo Log Buffer
KEEP
Database buffer pool
Redo log
Shared pool buffer
buffer
cache RECYCLE
buffer pool
15
Large Pool
KEEP
Database buffer pool
Redo log
Shared pool buffer
buffer Free Parallel
cache I/O buffer
RECYCLEmemory
Query
buffer pool
Response Request Advanced
Java pool Streams queue
nK buffer queue Queuing
Large pool pool cache
Large pool
System Global Area (SGA)
16
Program Global Area (PGA)
KEEP
Database buffer pool
Redo log
Shared pool buffer
buffer
cache RECYCLE
buffer pool
17
Quiz
18
Quiz
19
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
20
Multi-Tier Architecture
Initiator Process
Application Servers (Application Servers, Web Database
Server, Forms and Reports Servers) Server
21
Connecting to the Database Instance
User Server
SQL> Select … process process
User
Session
Connection
Session
22
Process Structures
Instances
User
process
23
Database Writer Process (DBWn)
DBWn
24
Log Writer Process (LGWR)
LGWR
25
Checkpoint Process (CKPT)
Checkpoint
process
Data files
26
System Monitor Process (SMON)
Instance
SMON
System Monitor
process
Temporary
segment
27
Process Monitor Process (PMON)
Server
process
PMON
User
tnslsnr Database buffer
Failed user Process Monitor
cache
process process
28
Recoverer Process
RECO
29
Archiver Processes (ARCn)
• Copy redo log files to a designated storage device after a log switch
has occurred
• Can collect transaction redo data and transmit that data to standby
destinations
ARCn
30
Database Storage Architecture
Logical Physical
Database
Segment
Storage System
• SAN • NFS
Extent
• NAS • ASM
• Exadata • RAW
Oracle data
block • File System
32
33
Segments, Extents, and Blocks
34
Tablespaces and Data Files
Extent Extent
64KB 96KB
Segment
160KB
35
SYSTEM and SYSAUX Tablespaces
36
Interacting with an Oracle Database:
Memory, Processes and Storage
Instance
Database KEEP
Redo log buffer
Shared buffer
PGA buffer
pool cache RECYCLE
Server buffer
process
Java Streams nK buffer
Large pool pool
pool cache
Listener
DBWn CKPT LGWR SMON PMON RECO ARCn Others
User
process
User
37
38
Quiz
39
Summary
40