Professional Documents
Culture Documents
02 Oracle Instance Architecture
02 Oracle Instance Architecture
ORACLE ARCHITECTURE
Memory Architecture
Process Architecture
Duration of an Instance
During
g this p
period,, an instance can associate itself with
one and only one database
SHUTDOWN MODES
CHECKPOINTS
Purpose of Checkpoints
Reduce the time required for recovery in case of an
instance or media failure
Ensure that dirty buffers in the buffer cache are written
to disk regularly
Ensure that all committed data is written to disk during a
consistent shutdown
INSTANCE RECOVERY
Whether
Wh
th instance
i t
recovery is
i required
i dd
depends
d on
the state of the redo threads.
PARAMETER FILES
PARAMETER FILES
PARAMETER FILES
TRACE FILES
Program code
Information about each connected session
Information needed during program execution
Information such as lock data that is shared and
communicated among processes
Cached data, such as data blocks and redo records,
that also exists on disk
S t
System
global
l b l area (SGA)
Partially automated
PGA is process
process-specific,
specific it is never allocated in the
SGA.
SQL
Q Work Areas
SGA COMPONENTS
BUFFER STATES
The database uses internal algorithms to manage
buffers in the cache
A buffer
b ff can be
b in
i any off the
th following
f ll i mutually
t ll
exclusive states:
Unused
Clean
The buffer is available for use because it has never been used
or is currently unused
This buffer was used earlier and now contains a readpoint in time.
consistent version of a block as of a p
Dirty
The buffer contain modified data that has not yet been written
to disk
SHARED POOL
LARGE POOL
JAVA POOL
FIXED SGA
PROCESS ARCHITECTURE
INTRODUCTION TO PROCESSES
TYPES OF PROCESSES
Client processes
run the application
Oracle
O l ttooll code
d
Oracle processes
Run the Oracle database code
Background processes
Slave processes
CLIENT PROCESSES
Connection
A connection is a physical communication
pathway
th
between
b t
a client
li t process and
da
database instance
Session
A session is a logical entity in the database
i t
instance
memory th
thatt represents
t th
the state
t t off a
current user login to a database
A single connection can have 0,
0 1,
1 or more
sessions established on it
The sessions are independent: a commit in one
session does not affect transactions in other
sessions
SERVER PROCESSES
BACKGROUND PROCESSES
Mandatory Background Processes
Optional Background Processes
Slave Processes