Professional Documents
Culture Documents
Exploring The Oracle Database Architecture
Exploring The Oracle Database Architecture
Exploring The Oracle Database Architecture
1-2 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Oracle Database Server Architecture: Overview
Instance
SGA
Database
1-3 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Connecting to the Database Instance
User
• Connection: Bidirectional network process
Connection
1-4 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Oracle Database Memory Structures: Overview
SGA
Java Streams
pool pool
…
Server Server Background
process process process
…Aggregate…
d
PGA
1-6 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Database Buffer Cache
Server
Database
process
buffer
cache
DBWn
Database writer
Data files process
1-7 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Redo Log Buffer
Server
process Redo log
buffer
LGWR
Log writer
Redo log process
files
1-8 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Shared Pool
– Result cache:
—
SQL queries Data
dictionary Result
—
PL/SQL functions Library cache cache
– Control structures cache (row cache)
—
Locks
Control
structures
Shared pool
1-9 Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Processing a DML Statement: Example
Database
DBWn SGA
Database
2 4
2 buffer cache
Data Server Redo log
files process 3 buffer
Shared pool
5
Control 1 Library cache
files User
process
Redo
log files
Database
DBWn SGA
Database
buffer cache
Data Server Redo log
files process 1 buffer
SGA
Shared pool
3
Control Library cache
files User
process
Redo
log files LGWR 2
Database
SGA Redo log
buffer Shared pool
buffer
cache
SGA_TARGET + STATISTICS_LEVEL
SGA
PGA_AGGREGATE_TARGET
Server
process
Server
process
… Background
process
…Aggregate
d …
PGA
MMAN
SGA memory Aggregated PGA memory
Streams pool
Buffer cache
Shared pool
Large pool
Other SGA
Untunable
Java pool
SQL areas
Private
Free
PGA
MEMORY_TARGET + STATISTICS_LEVEL
Logical Physical
Database
Only 1 with
bigfile
tablespaces
Schema Tablespace Data file
0, 1, or many
Undo tablespaces
never have 0 Segment
Extent
Oracle data
OS block
block