Oracle Architectural Components: Reserved
Oracle Architectural Components: Reserved
Oracle Architectural
Components
Parameter
file
Archived
log files
Password
file Database Archived
log files
An
An Oracle
Oracle instance:
instance:
•• Is
Is aa means
means to
to access
access an
an Oracle
Oracle database
database
•• Always
Always opens
opens one
one and
and only
only one
one database
database
Instance
SGA Shared pool
Memory
structures
Data buffer Redo log
cache buffer
•• Connect
Connect to
to an
an instance
instance using:
using:
–– The
The user
user process
process
–– The
The server
server process
process
•• The
The Oracle
Oracle Server
Server components
components that
that are
are used
used
depend
depend on
on the
the type
type of
of SQL
SQL statement:
statement:
–– Queries
Queries return
return rows
rows
–– DML
DML statements
statements log
log changes
changes
–– Commit
Commit ensures
ensures transaction
transaction recovery
recovery
•• Some
Some Oracle
Oracle Server
Server components
components do
do not
not
participate
participate in
in SQL
SQL statement
statement processing.
processing.
Oracle Server
User Server
Client
User Server
Browser
•• Parse:
Parse:
–– Search
Search for
for identical
identical statement
statement
–– Check
Check syntax,
syntax, object
object names,
names, and
and privileges
privileges
–– Lock
Lock objects
objects used
used during
during parse
parse
–– Create
Create and
and store
store execution
execution plan
plan
•• Execute:
Execute: Identify
Identify rows
rows selected
selected
•• Fetch:
Fetch: Return
Return rows
rows to
to user
user process
process
Library
cache
Data dictionary
cache
•• The
The library
library cache
cache contains
contains the
the SQL
SQL statement
statement text,
text,
parsed
parsed code,
code, and
and execution
execution plan.
plan.
•• The
The data
data dictionary
dictionary cache
cache contains
contains table,
table, column,
column,
and
and other
other object
object definitions
definitions and
and privileges.
privileges.
•• The
The shared
shared pool
pool is
is sized
sized by
by SHARED_POOL_SIZE.
SHARED_POOL_SIZE.
Data buffer
cache
•• Stores
Stores the
the most
most recently
recently used
used blocks
blocks
•• Size
Size of
of aa buffer
buffer based
based on
on DB_BLOCK_SIZE
DB_BLOCK_SIZE
•• Number
Number of
of buffers
buffers defined
defined by
by DB_BLOCK_BUFFERS
DB_BLOCK_BUFFERS
•• Not
Not shared
shared
•• Writable
Writable only
only by
by the
the server
server process
process
•• Contains:
Contains:
–– Sort
Sort area
area
–– Session
Session information
information
–– Cursor
Cursor state
state Server
–– Stack process
Stack space
space
PGA
UPDATE
employees ...
4 1 2
3
Server
process
Data Control Redo
files files log files
Database
Redo log
buffer
•• Has
Has its
its size
size defined
defined by
by LOG_BUFFER
LOG_BUFFER
•• Records
Records changes
changes made
made through
through the
the instance
instance
•• Is
Is used
used sequentially
sequentially
•• Is
Is aa circular
circular buffer
buffer
New
image
Table
Rollback segment
DML statement
Database
Database
Database