Академический Документы
Профессиональный Документы
Культура Документы
Objectives
After completing this lesson, you should be able to:
List the major architectural components of Oracle Database
Explain the memory structures
Describe the background processes
Correlate the logical and physical storage structures
Describe ASM storage components
1-2
Oracle Database
The Oracle relational database management system (RDBMS)
provides an open, comprehensive, integrated approach to
information management
1-3
Connecting to a Server
Client
Middle tier
Server
Memory Structures
(System Global Area)
Server
Process Structures
User
process
Nonclustered System
I1
I2
I1
I2
I3
D1
D2
Local
Storage
D
Shared Storage
1-7
User
SQL> Select
User
process
Server
process
Connection
Session
1-8
Session
PGA
Stack
User
Stack
User
Space
Global
Space
Global
Area
Area
Server
process 1
Shared pool
Large pool
Server
process 2
Database
buffer
cache
Java pool
Redo log
buffer
Streams
pool
KEEP
buffer pool
RECYCLE
buffer pool
nK buffer
cache
Shared Pool
Shared
SQL area
Shared pool
Large pool
Data dictionary
cache
Fixed Area
Database
buffer
cache
Java pool
Library
Other
cache
KEEP
buffer pool
Redo log
buffer
RECYCLE
buffer pool
Streams
pool
nK buffer
cache
Shared pool
Large pool
Database
buffer
cache
Java pool
Redo log
buffer
Streams
pool
KEEP
buffer pool
RECYCLE
buffer pool
nK buffer
cache
Shared pool
Large pool
Database
buffer
cache
Java pool
Redo log
buffer
Streams
pool
KEEP
buffer pool
RECYCLE
buffer pool
nK buffer
cache
Large Pool
Provides large memory allocations for:
Session memory for the shared server and the Oracle XA
interface
I/O server processes
Oracle Database backup and restore operations
Shared pool
Large pool
Database
buffer
cache
Java pool
Redo log
buffer
Streams
pool
KEEP
buffer pool
Free
Parallel
I/O buffer
RECYCLEmemory
Query
buffer pool
Response
Request
Advanced
queue
nK buffer queue
Queuing
cache
Large pool
Java Pool
and Streams Pool
Shared pool
Large pool
Java pool
1 - 16
Database
buffer
cache
Java pool
Redo log
buffer
Streams
pool
KEEP
buffer pool
RECYCLE
buffer pool
nK buffer
cache
Streams
pool
PGA
State
Stack
User
Space
Global
User Session
Data
Area
Server
process 1
Shared pool
Large pool
Hash
Area
SQL
Working Areas
Database
buffer
cache
Java pool
Redo log
buffer
Streams
pool
KEEP
buffer pool
RECYCLE
buffer pool
nK buffer
cache
Sort
Area
Quiz
Memory region that contains data and control information for a
server or background process is called:
1. Shared Pool
2. PGA
3. Buffer Cache
4. User session data
1 - 18
Quiz
What is read into the Database Buffer Cache from the data
files?
1. Rows
2. Changes
3. Blocks
4. SQL
1 - 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
1 - 20
Process Structures
Instances (ASM and Database separate)
System Global Area (SGA)
PGA
Server
process
Listener
Background processes
Required:
DBWn
CKPT
LGWR
SMON
Optional:
ARCn
ASMB
RBAL
Others
PMON
RECO
1 - 21
ohas
ocssd
diskmon
orarootagent
oraagent
cssdagent
DBWn
Database buffer
cache
1 - 23
Database writer
process
Data files
LGWR
Redo log buffer
1 - 25
CKPT
Control file
Checkpoint
process
Data files
1 - 27
SMON
Instance
System Monitor
process
Temporary
segment
1 - 28
Server
process
PMON
User
Failed user
process
1 - 29
Process Monitor
process
tnslsnr
Database buffer
cache
Recoverer Process
RECO
Recoverer process
in database A
1 - 30
In-doubt transaction
in database B
ARCn
Archiver process
1 - 31
Archive destination
init.ohasd
(root)
ohasd.bin
oraagent.bin
orarootagent.bin
diskmon.bin
cssdagent
ocssd.bin
ASM Instance
Listener
DB Instance
User Defined
Applications
1 - 32
Control files
Data files
Parameter file
Backup files
Password file
1 - 33
Physical
Database
Tablespace
Data file
Segment
Storage System
Extent
Oracle data
block
1 - 35
SAN
NFS
NAS
ASM
Exadata RAW
File System
Segment
1 - 37
Extents
Data
blocks
Disk blocks
(File System
Storage)
Tablespace 2 (Bigfile)
Datafile 1
Datafile 3
Datafile 2
8Kb
8Kb
8Kb
8Kb
8Kb
8Kb
8Kb
8Kb
8Kb
8Kb
8Kb
8Kb
8Kb
8Kb
8Kb
8Kb
8Kb
8Kb
8Kb
8Kb
Extent
Extent
64KB
96KB
Segment
160KB
1 - 38
Only 1 datafile
allowed
<= 128 TB
1 - 39
Application
ASM
Cluster File
System
ASM Dynamic
Volume
Manager
Oracle
Database
ASM Files
for Oracle
Database
Operating system
1 - 40
ASM file
ASM
disk group
ASM
extent
File system
or
Raw device
1 - 41
ASM allocation
unit
ASM disk
PGA
Shared
pool
Database
buffer
cache
Server
process
Java
pool
Large pool
Redo log
buffer
Streams
pool
KEEP
buffer
RECYCLE
buffer
nK buffer
cache
Listener
DBWn
CKPT
LGWR
SMON
PMON
User
process
User
1 - 42
RECO
ARCn
Others
Quiz
The Process Monitor process (PMON):
1. Performs recovery at instance startup
2. Performs process recovery when a user process fails
3. Automatically resolves all in-doubt transactions
4. Writes the redo log buffer to a redo log file
1 - 44
Quiz
ASM Files are accessed by which types of instances?
1. RDBMS Instances only
2. ASM Instances only
3. Both RDBMS and ASM Instances
1 - 45
Summary
In this lesson, you should have learned how to:
List the major architectural components of Oracle
Database
Explain the memory structures
Describe the background processes
Correlate the logical and physical storage structures
Describe the ASM storage components
1 - 46
Practice 1: Overview
This is a paper practice with questions about:
Database architecture
Memory
Processes
File structures
1 - 47