Professional Documents
Culture Documents
Oracle Architecture
The Oracle Server
O rac le s er ve r
Oracle Architecture
Instance Architecture
Instance SGA
Shared pool
Library Cache Database Buffer Cache Redo Log Buffer Data Dictionary Cache
DBWR
LGWR
S O!
" O!
ARCn
R#CO
C$"%
LC$n
S!"n
Dnnn
Snnn
Oracle Architecture
Instance
An
Oracle instance:
Is a means to access an Oracle data!ase Always o"ens one and only one data!ase
#onsists
o$:
Oracle Architecture
SGA
Shared S'L "ool Database Buffer Cache Redo log Buffer
Re&uest
Response
LGW R
ARCn
Oracle Architecture
SGA
Shared S'L "ool Database Buffer Cache Redo log Buffer
Re&uest
Response
DBWR
LGWR
ARCn
Dispatcher
)ser )ser "rocess )ser "rocess )ser "rocess )ser "rocess "rocess
Database (iles
Oracle Architecture
Oracle Architecture
&ata!ase !u$$er cache
/sed to hold data !locks read $rom data$iles !y server "rocesses #ontains *dirty+ or modi$ied !locks and *clean+ or unused or unchanged !ocks *&irty+ and *clean+ !locks are managed in lists called the dirty list and the 0,/ 1ree s"ace is created !y &B2, writing out *dirty+ !locks or aging out !locks $rom the 0,/ Si3e is managed !y the "arameter &B4B0O#54B/116,S
Oracle Architecture
0,/
6very time a data !lock is read $rom disk it is "laced in the data!ase !u$$er cache at the head o$ the 0,/ list I$ a !lock is already in the cache and it is read again it is moved to the head o$ the list &ata not used $re-uently is *aged+ out o$ the cache while $re-uently used data remains
Oracle Architecture
,edo 0og Bu$$er
A
,edo
entries take u" contiguous7 se-uential s"ace in the !u$$er &ata stored in the redo log !u$$er is "eriodically written to the online redo log $iles Si3e is managed !y the "arameter 0O)4B/116,
&e$ault is 8 times the ma9imum data !lock si3e $or the o"erating system
Oracle Architecture
Shared %ool
&ictionary cache
;ames o$ all ta!les and views in the data!ase ;ames and dataty"es o$ columns in the data!ase ta!les %rivileges o$ all users
Oracle Architecture
0,/
Oracle Architecture
area /sed $or any sorts re-uired !y S:0 "rocessing Session in$ormation Includes user "rivileges #ursor state Indicates stage o$ S:0 "rocessing Stack s"ace #ontains session varia!les
Oracle Architecture
2rites
Oracle Architecture
&B2,
A server "rocess cannot $ind a clean reusa!le !u$$er A timeout occurs '? sec( A check"oint occurs &B2, cannot write out *dirty+ !u$$ers !e$ore they have !een written to the online redo log $iles
Oracle Architecture
#ommit #ommand
The S:0 command CO I% allows users to save transactions that have !een made against a data!ase. This $unctionality is availa!le $or any )"DA%#* I!S#R%* or D#L#%# transaction@ it is not availa!le $or changes to data!ase o!>ects 'such as AL%#R %ABL# commands(
Oracle Architecture
2rites
Oracle Architecture
0)2,
A transaction is #OMMIT6& A timeout occurs '? sec( The redo log !u$$er is AB? $ull There is more than A mega!yte o$ redo entries Be$ore &B2, writes out *dirty+ !locks to data$iles
Oracle Architecture
%er$orms
Oracle Architecture
SMO;
Oracle Architecture
%er$orms
$ailed shared server and dis"atcher "rocesses %MO; *wakes u"+ regularly to check whether it is needed or it may !e called directly Mandatory "rocess
Oracle Architecture
&etects
Oracle Architecture
<el"s reduce the amount o$ time needed to "er$orm instance recovery 1re-uency can !e ad>usted with "arameters
Oracle Architecture
Automatically
Oracle Architecture
Server %rocesses
Services
a single user "rocess in the dedicated server con$iguration or many user "rocesses in the shared server con$iguration /se an e9clusive %)A Include the Oracle %rogram Inter$ace 'O%I( %rocess calls generated !y the client ,eturn results to the client in the dedicated server con$iguration or to the dis"atcher in the shared server con$iguration
Oracle Architecture
/ser %rocesses
,un
the /ser %rogram Inter$ace '/%I( )enerate calls to the Oracle server
Oracle Architecture
SGA
Database Buffer Cache Redo Log Buffer
. Dedicated Server
DBW R
LGWR
)ser "rocess
Database (iles
Oracle Architecture
SGA
Database Buffer Cache Redo Log Buffer
Dedicated Server
DBW R
LGWR
)ser "rocess
Database (iles
Oracle Architecture
SGA
Database Buffer Cache Redo Log Buffer
)ser "rocess
Database (iles
Oracle Architecture
SGA
Database Buffer Cache 5 Redo Log Buffer
Dedicated Server
DBW R
LGWR
)ser "rocess
Database (iles
Oracle Architecture
C$"%
SGA
Database Buffer Cache Redo Log Buffer
Dedicated Server
DBWR
LGWR
)ser "rocess
Database (iles
Oracle Architecture
C$"%
SGA
Database Buffer Cache
Dedicated Server
DBWR
LGWR
)ser "rocess
Database (iles
Oracle Architecture
C$"%
SGA
Database Buffer Cache Redo Log Buffer
Dedicated Server
DBWR
LGWR
- ROW )"DA%#D
)ser "rocess
Database (iles
Oracle Architecture
C$"%
SGA
Database Buffer Cache Redo Log Buffer
Dedicated Server
DBWR
LGWR
CO
I%
)ser "rocess
-9
Database (iles
Oracle Architecture
C$"%
SGA
Database Buffer Cache Redo Log Buffer
Dedicated Server
DBWR
LGWR
CO I% S)CC#SS()L
)ser "rocess
--
Database (iles
Oracle Architecture
C$"%
SGA
Database Buffer Cache Redo Log Buffer
-.
DBWR
LGWR
Database (iles