module 3 instance architecture
TRANSCRIPT
-
8/17/2019 Module 3 Instance Architecture
1/20
Module 3:
Instance Architecture
-
8/17/2019 Module 3 Instance Architecture
2/20
Overview
Configure a Database Server
Memory Architecture Overview
Memory Areas and Their Functions
Process and Thread Architecture
Controlling Resources in S! Server "##$
Client and RD%MS &nteractions
%ac'ground Processes(Threads and Their Functions
-
8/17/2019 Module 3 Instance Architecture
3/20
Configuration of a Server
)sing Configuration Parameters to Allocate and ManageResources
Oracle Configuration
• Use of initialization parameters (init.ora or spfile)
• ALTER SYSTEM, ALTER DATABASE
S! Server Configuration
• Setting server properties sing S!L Server Management St"io
(SSMS)
• T#e role of sp$%onfigre s&stem store" pro%e"re
-
8/17/2019 Module 3 Instance Architecture
4/20
Demonstration *+ Configuration Parameters
&n this demonstration you will see how to+
Manage instance configurations throughSSMS,
Manage instance configurations through
T-S! scri.ts,Manage instance configurations throughPowerShell,
-
8/17/2019 Module 3 Instance Architecture
5/20
Memory Architecture / Overview
0irtual Memory
Relevance to D%MS
Sharing Data in Memory
)sing Memory &ntelligently to Reduce &(O and 1nhance Performance
-
8/17/2019 Module 3 Instance Architecture
6/20
Memory Address S.ace / Oracle
Com.onents of Oracle in Me
Appli%ation %omponents
RDBMS %omponents
SYSTEM GLOBAL AREA
JAVA POOL
LARGE
POOLSTREAMS
POOL
SHARED
POOL
REDO
BUFFERBUFFER
CACHE
Oracle
Process
ServerProcess
ServerProcess
Server
Process
Backgrou!
ProcessPGAPGA PGA
PGA PGA
Automatic Shared Memory Management
Manage" '& SA$Target
Atomati%all& sizes
-
8/17/2019 Module 3 Instance Architecture
7/20
S! Server2s Memory Pool and Oracle2s S3A
Oracle S"s#e$ Glo%al Area &SGA'
Buffer Cache Shared Pool
LargePool
JavaPool
RedoBuffers
FixedSGA
StreamsPool
S(L Server Me$or" Pool
Buffer Cache Procedure Cache
Connection
ContextLog Cache System
Structures
CLR osting
Layer
-
8/17/2019 Module 3 Instance Architecture
8/20
S! Server Architecture 4S!OS5
Com.onents of S! Server Architecture
• on*+reemptive S%#e"ling
• Memor& Management
6osting Subsystems
Memory Management 7on-Preem.tiveScheduling
S!OS
Memory 7odes
Memory Cler's
Caches
Pools
Memory Ob8ects
Scheduling 7odes
Schedulers
Tas's
9or'er Threads
System Threads
1:ce.tion 6andling Resource Monitoring
-
8/17/2019 Module 3 Instance Architecture
9/20
Demonstration "+ Monitoring Memory )sage viaDM02s
&n this demonstration you will see how to+
Review instance memory via T-S!
-
8/17/2019 Module 3 Instance Architecture
10/20
Memory Address S.ace / Com.arison
Memory Allocation in S! Server
D&nami% at
#ig#er level (memor& pool, et%.)
loer level ('ffer %a%#e, pro%e"re %a%#e, et%.)
-e %onfigra'le parameters
Memory Address Range
/*'it (012)
A""ress 3in"oing E0tensions (A3E)
4B
25*'it (025 an" 06A25)
/TB
-
8/17/2019 Module 3 Instance Architecture
11/20
-
8/17/2019 Module 3 Instance Architecture
12/20
Process and Thread-%ased Architecture
+ro%ess * memor& spa%e to prote%t appli%ations
T#rea"s 7
E0e%te %o"e
Allo%ate" time on 8+U
Manage" '& 9perating S&stem
-i'ers are lig#t*eig#t t#rea"s
re"%e %onte0t sit%#ing over#ea"
9ra%le ses pro%esses in Uni0 an" t#rea"s in 3in"os
Bot# 9ra%le an" S!L Server se t#rea"s an" optionall& fi'ers.
Allo%ate t#rea" assignment it# 8+U affinit&
-
8/17/2019 Module 3 Instance Architecture
13/20
Resource 3overnor - 3reater Control
Se%rit&+erforman%e
Resor%eAvaila'ilit&
+erforman%eSe%rit&Availa'ilit&
Resor%e
-
8/17/2019 Module 3 Instance Architecture
14/20
Oracle Client/Database &nteraction
• Oracle2s two modes of interaction are+• De"i%ate" Server 7 ses a "e"i%ate" server pro%ess per %lient
session
• S#are" Server 7 ses "ispat%#ers an" s#are" server pro%esses
DATA%AS1 Data Files
)S1RS
)ser
Process
)ser
Process
)ser
Process
Client
Client
Client
Re
?
"
;
@
$
-
8/17/2019 Module 3 Instance Architecture
15/20
S! Server Client/Database &nteraction
S! Server uses the shared server mode
• -n%tionalit& of t#e "ispat%#er is fa%ilitate" '& t#e netor:er t#rea"
• -n%tionalit& of t#e s#are" server pro%esses '& t#e or:er t#rea"s
)sers
)serProcess
)ser
Process
)ser
Process
Client
Client
ClientDatabase
%uffer
Cache
Data Files
Relational
1ngine
O!1
D%Storage
1ngine
O.en
Data
Services
9or'er
Thread
9or'er
Thread
9or'er
Thread
Memory
Pools
-
8/17/2019 Module 3 Instance Architecture
16/20
Oracle %ac'ground Processes
)S1RS
)serProcess
)ser
Process
)ser
Process
Client
Client
Client
&7STA7C1
DATA%AS1
Atomati% Storage Management
Process
Mo)#or
S"s#e$
Mo)#or
(ueue
Mo)#or
Jo%
(ueue
Eve#
Mo)#or
Recoverer
Trace
*r)#er
Dis.atcher
Shared
Server
Re
-
8/17/2019 Module 3 Instance Architecture
17/20
S! Server %ac'ground Processes
)sers
)ser
Process
)ser
Process
)ser
Process
Client
Client
Client
Relational
1ngine
O!1
D%
Storage
1ngine
Data Files
!og
Files
Database
%uffer
Cache
!og
Cache
Database
Cleanu.
9or'er
Thread
!og
9riter
!ay
9riter
9or'er
Thread
Database
Shrin'ing
O.en
Data Services
Memory
Pool
-
8/17/2019 Module 3 Instance Architecture
18/20
Com.aring %ac'ground Processes
Oracle
Process
Oracle
&dentifier
S! Server
1
-
8/17/2019 Module 3 Instance Architecture
19/20
Demonstration @+ 1valuating &nstance Resources
&n this demonstration you will see how to+
)se Dynamic Management 0iews to see.rocessor usage,
-
8/17/2019 Module 3 Instance Architecture
20/20
Review
6ow to configure a database serverMemory Address S.ace of a database server
Memory areas inside Oracle S3A and their S! Servere