SlideShare uma empresa Scribd logo
1 de 29
WELCOME TO DBA TECHNOLOGIES
ORACLE DATABASE
ARCHITECTURE-2

By
Mr. PRASAD
MYNUMPATI

18 Years Real Time in
INDIA-USA

www.dbatechnologies.net
www.dbatechnol
ogies.net
database Architecture – USER TS
•

USER tablespace is to store data
permanently

•

Entire Application data storage and retrieval
from USER tablespaces
For load balancing purpose we use different

•
•
•

tablespaces on different disks for INDEX and
DATA
How many tablespaces for a database? depends on design
of the application and number of applications
ORACLE & OS comparison
FILE SYSTEM

TABLESPACE

File system Partitions (ext3)

Tablespaces (Undo, Temp and Permanent)

Mount file system (To read and write)

By default TS is mounted

Files & Directories

Tables , Indexes (objects)

OS Block size

TS Block size (Default 8K)

Multi user access based on privileges

Multi users access by assigned quota

Backup FS

Backup tablespace

FS consistency (fsck)

Database level consistency (RMAN)
Server & Storage
configuration

•
• OS and ORACLE SW is on Server
Database is going to be on high end
– SAN
storage (Storage area
– NAS (Network
Networks) area Storage)
Identifying OS for
• ORACLE SW version
•
•
•
•

Need to follow certification matrix From oracle metalink.
www.metalink.oracle.com?
What kind of OS we need
Need to choose certified OS
Can we install multiple versions
(7,8,8i,9i,10g,11g) of Oracle SW on same server?
Yes we can
Single DB vs. Multiple databases
•
•
•

Can we create multiple databases by using same
version of Oracle Software? Yes we can
One database vs. Multiple databases
– Nature of applications

• Dependency
– Size of the database (maintenance)

– Application Complexity

…
..
•

Instance and Database
– CPU
Instance will be hosted on server
–
–

MEM
PROCESS
ES
•Database (C,R,D files) is located on high
end
storage solutions like SAN with fiber optic
technology.
• Process power and memory for all Database
operations are from server resources
ORACLE INSTANCE
• BACKGROUND PROCESSES
• Mandate and Optional background process will be
• stated when INSTANCE starts
•

All the running background processes can be
viewed –ef | grep $ORACLE_SID
– $ps

DATABASE LEVELlevels
@ two different
- SQL> Select PNAME From v$process Where PNAME
• OS LEVEL
is not null ORDER by PNAME;
– $echo the available background process
How to see all$ORACLE_SID (Instance
details
Name)
– SQL>Select name from v$bgprocess;
•

Mandate Background
Processes DBWn

Insta: Writes dirty buffers from
Buffer to fil
DBWn
SHAR
nce Cache DBF es
DATAB
ED
ASE

Redo buffers
PO

OL

USER
DATAFILE
•
•

Mandate Background
Processes DBWn an buff (mem
What is the betw blo (fil
DBWn : Writes only dirty buffers that are LRU (Least recently

difference
een ck e) d er ory)
Used
Data Basebuffers) to dbf files and MRU
Buffer Cache
during CKPT
(Memory)

Dbf file
Blocks : (Storage) Default
Non default supported block
Block Size 8K
sizes: 2k,4k,16k,32k
•

Types of
Buffers

Dirty
Buffers
•
Free
Buffers
•
Pinned
Buffers

i Buff Cac
n er he

DATABASE
BUFFER CACHE
•

Types of Buffers in
Buffer Cache
Dirty Buffers

•
•

that are buffer
writt t da fil
–Modified in
not yet
o ta es
cache(memory) en
Free
(storage)

Buffers

–Ready to use

Pinned Buffers
–Buffers that

in use by
Oracle
•
•

DBWn writes
when?

Dirty buffers threshold
When required free buffers
•
During
are available
•

n
ot

Any TS status change
graceful/consistent
• like (read only,
shutdown
offline or Tablespace
Begin backup..)
Mandate Background
• LGWR : Log writer writes change records
fro
Processes LGWR
redo buffers to redo log files
m

SHAR
ED
Redo buffers
PO
OL

DATAB
ASE

Current (In use)
Active (Required
for recovery
Log
Inactive (Ready to
Switch
be current)

)

Redo log
files
LGWR writes
when

•
•
•
At every commit
•
• Every three

seconds
When 1/3 full of redo log vect
– Change vector
•
Scn and
buffers Time Stamp of change ors
•
contains
• Transaction Id
•
When worth of committed
Commit details if redo
•
• ( scn is 1MB
recordsand timestamp)
Type of operation
What contains change
Segment name and type
Change
vectors details
•

LG
WR

Server Process copy redo
• records from user
memory space (PGA) to
•
redo log buffers for every
• DML and DDL

V$system_ - log file switch
(event,total_waits, time_waited
• LOG_BUFFER is the parameter to set redo log
event
completion
and average_wait)
buffers size. Min 64k.

• Alert log file also records the above event check
Log buffer space (v$session_wait) – wait event(in
for
checkpoint not complete
seconds) indicates insufficient log buffers size
Mand background
LR
LR LR
ate process CKPT
SHARED
U
U
U
DATABASE
BUFFERMR MR
MR CACHE

DBWn

CK
PT

72
3

Cont fil
rol e

U

U

Da file
ta 1
72

U

POOL
REDO
LOG
BUFF
ERS
72
3

72
3

723

3

Da file
ta 2

Redo log
files
Mandatevery critical background process to
background
Checkpoint is a
•process CHECKPOINT time
reduce the instance or media recovery
Checkpoint wont write any data but in only
• ensures
marking SCN in Redo, Control file and data files

– During checkpoint DBWn writes data to dbf files and
• marks Redo, control file and data files with scn#

•
•

Checkpointrecovery must startpointer
where position (SCN) in redo is the from
Checkpoint ensures all the dirty buffers to disk

(LRU & MRU)
Checkpoint position is the oldest dirty buffer in
the
database buffer cache
•
•

Types of
checkpoint
Thread checkpoint :

– (database checkpoint)
Database writes to disk all buffers
– Consistent
modified by redo in a specific thread,
occurs during the following
database shutdown
situations system
– Alter

checkpoint
Types of checkpoint

• TS and data file checkpoints:

– Tablespace checkpoint is with respect to
a particular table space during the status
change like read only, read write, begin

backup. Only for the
data files that
belongs to a TS
•

Types of checkpoint
Incremental checkpoints

– It is kind of thread checkpoint in order
to avoid large number of blocks at online
redo log switches.
•

DBWn checks every 3 seconds to
any work to do, if DBWn
check

writes dirty
buffers, it advances the
checkpoint
•
•

Types of checkpoint
Incremental checkpoints

It is kind of thread checkpoint in
order to avoid large number of blocks
at online redo log switches.
•

DBWn checks every 3
seconds to check
any work to do, if DBWn
writes dirty
Mandate background
process SMON

•
•
• SMON : System Monitor
•

Responsible for Instance crash
recovery (ICR)is applying records from
– Instance recovery

Cleans up temporary segments. For example if
redo
index creation failed it recent checkpoint
to dbf files after most cleans up all the
temporary
– Information from redo must be transferred
segments.
to
What ismake it permanent and consistent
dbf to ICR?
–
SM
ON
Cra
Recov
sh
ery
245 Control file

ICR SMON

INSTANCE
BUFFER CACHE

STARTUP
AFTER CRASH

24
5
24
5

Data
file 1
Data
file 2

245
Data file 3
1.Rollforward
2.Rollback
Committ
(uncommitted txns)
ed &
Undo
3.24
Recovery done Data

5

file 1

SHARED POOL
DATABASE

un
committ
ed

24
5

Committ
ed &
un
committ
ed
Mandate background
• process PMON
PMON : Processes
•Respon for Monitor
ade proces
sible
cleanin
ad ses
resourc g
User process
Crash of
es
User

process

SG
A

PM
ON
•
•

Mandate
REC
background transact iO
Responsible for
distrib
datab environ
resolving in-doubt
process Distribute ions n uted
ase ment.
RECO : Recoverer

REC
O

d txn

Us
er

REC
O
SQL statements ORACLE
PARSI
processing in DATABASE
Us
er
Pro
cess
SQL>
Select *
from
employee
s;

DATAB Server
SHAR
Processes
ASE
ED
BUFFER
PO
CACHE
OL
REDO
BUFFERS

data
file
Execut

ion
Row source
generation

NG
1. Syntax
check
2. Semantic
check
If
3.Shared
so
SP
pool check
ft
che har
ck d
OPTIMI
=n
ZER
o
Multiple
EP’s
SQL statements ORACLE
PARSI
processing in DATABASE
Us
er
p
Proc DB
Wn
ess
SQL>
Update
sal=20K
from
salary
where
sal=1
0K

Rows u
dated

DATAB Server
SHAR
Processes
ASE 10
ED
10 10
BUFFER
RED
PO
k k k
20 20 20
O
CACHE
OL
BUFF
k k k
ERS
Un data
do User data
file
file
Execut
ion
Row source
generation

NG
1. Syntax
check
2. Semantic
check
If
3.Shared
so
SP
pool check
ft
che har
ck d
OPTIMI
=n
ZER
o
Multiple
EP’s
Building career
with passion

QUESTION AND
ANSWER SESSION
DSNR:944 11 72
718/040-65555689

Mais conteúdo relacionado

Último

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 

Último (20)

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

Destaque

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn
 

Destaque (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Oracle DBA Online Training: DBA Technologies

  • 1. WELCOME TO DBA TECHNOLOGIES ORACLE DATABASE ARCHITECTURE-2 By Mr. PRASAD MYNUMPATI 18 Years Real Time in INDIA-USA www.dbatechnologies.net www.dbatechnol ogies.net
  • 2. database Architecture – USER TS • USER tablespace is to store data permanently • Entire Application data storage and retrieval from USER tablespaces For load balancing purpose we use different • • • tablespaces on different disks for INDEX and DATA How many tablespaces for a database? depends on design of the application and number of applications
  • 3. ORACLE & OS comparison FILE SYSTEM TABLESPACE File system Partitions (ext3) Tablespaces (Undo, Temp and Permanent) Mount file system (To read and write) By default TS is mounted Files & Directories Tables , Indexes (objects) OS Block size TS Block size (Default 8K) Multi user access based on privileges Multi users access by assigned quota Backup FS Backup tablespace FS consistency (fsck) Database level consistency (RMAN)
  • 4. Server & Storage configuration • • OS and ORACLE SW is on Server Database is going to be on high end – SAN storage (Storage area – NAS (Network Networks) area Storage)
  • 5. Identifying OS for • ORACLE SW version • • • • Need to follow certification matrix From oracle metalink. www.metalink.oracle.com? What kind of OS we need Need to choose certified OS Can we install multiple versions (7,8,8i,9i,10g,11g) of Oracle SW on same server? Yes we can
  • 6. Single DB vs. Multiple databases • • • Can we create multiple databases by using same version of Oracle Software? Yes we can One database vs. Multiple databases – Nature of applications • Dependency – Size of the database (maintenance) – Application Complexity … ..
  • 7. • Instance and Database – CPU Instance will be hosted on server – – MEM PROCESS ES •Database (C,R,D files) is located on high end storage solutions like SAN with fiber optic technology. • Process power and memory for all Database operations are from server resources
  • 8. ORACLE INSTANCE • BACKGROUND PROCESSES • Mandate and Optional background process will be • stated when INSTANCE starts • All the running background processes can be viewed –ef | grep $ORACLE_SID – $ps DATABASE LEVELlevels @ two different - SQL> Select PNAME From v$process Where PNAME • OS LEVEL is not null ORDER by PNAME; – $echo the available background process How to see all$ORACLE_SID (Instance details Name) – SQL>Select name from v$bgprocess;
  • 9. • Mandate Background Processes DBWn Insta: Writes dirty buffers from Buffer to fil DBWn SHAR nce Cache DBF es DATAB ED ASE Redo buffers PO OL USER DATAFILE
  • 10. • • Mandate Background Processes DBWn an buff (mem What is the betw blo (fil DBWn : Writes only dirty buffers that are LRU (Least recently difference een ck e) d er ory) Used Data Basebuffers) to dbf files and MRU Buffer Cache during CKPT (Memory) Dbf file Blocks : (Storage) Default Non default supported block Block Size 8K sizes: 2k,4k,16k,32k
  • 12. • Types of Buffers in Buffer Cache Dirty Buffers • • that are buffer writt t da fil –Modified in not yet o ta es cache(memory) en Free (storage) Buffers –Ready to use Pinned Buffers –Buffers that in use by Oracle
  • 13. • • DBWn writes when? Dirty buffers threshold When required free buffers • During are available • n ot Any TS status change graceful/consistent • like (read only, shutdown offline or Tablespace Begin backup..)
  • 14. Mandate Background • LGWR : Log writer writes change records fro Processes LGWR redo buffers to redo log files m SHAR ED Redo buffers PO OL DATAB ASE Current (In use) Active (Required for recovery Log Inactive (Ready to Switch be current) ) Redo log files
  • 15. LGWR writes when • • • At every commit • • Every three seconds When 1/3 full of redo log vect – Change vector • Scn and buffers Time Stamp of change ors • contains • Transaction Id • When worth of committed Commit details if redo • • ( scn is 1MB recordsand timestamp) Type of operation What contains change Segment name and type Change vectors details
  • 16. • LG WR Server Process copy redo • records from user memory space (PGA) to • redo log buffers for every • DML and DDL V$system_ - log file switch (event,total_waits, time_waited • LOG_BUFFER is the parameter to set redo log event completion and average_wait) buffers size. Min 64k. • Alert log file also records the above event check Log buffer space (v$session_wait) – wait event(in for checkpoint not complete seconds) indicates insufficient log buffers size
  • 17. Mand background LR LR LR ate process CKPT SHARED U U U DATABASE BUFFERMR MR MR CACHE DBWn CK PT 72 3 Cont fil rol e U U Da file ta 1 72 U POOL REDO LOG BUFF ERS 72 3 72 3 723 3 Da file ta 2 Redo log files
  • 18. Mandatevery critical background process to background Checkpoint is a •process CHECKPOINT time reduce the instance or media recovery Checkpoint wont write any data but in only • ensures marking SCN in Redo, Control file and data files – During checkpoint DBWn writes data to dbf files and • marks Redo, control file and data files with scn# • • Checkpointrecovery must startpointer where position (SCN) in redo is the from Checkpoint ensures all the dirty buffers to disk (LRU & MRU) Checkpoint position is the oldest dirty buffer in the database buffer cache
  • 19. • • Types of checkpoint Thread checkpoint : – (database checkpoint) Database writes to disk all buffers – Consistent modified by redo in a specific thread, occurs during the following database shutdown situations system – Alter checkpoint
  • 20. Types of checkpoint • TS and data file checkpoints: – Tablespace checkpoint is with respect to a particular table space during the status change like read only, read write, begin backup. Only for the data files that belongs to a TS
  • 21. • Types of checkpoint Incremental checkpoints – It is kind of thread checkpoint in order to avoid large number of blocks at online redo log switches. • DBWn checks every 3 seconds to any work to do, if DBWn check writes dirty buffers, it advances the checkpoint
  • 22. • • Types of checkpoint Incremental checkpoints It is kind of thread checkpoint in order to avoid large number of blocks at online redo log switches. • DBWn checks every 3 seconds to check any work to do, if DBWn writes dirty
  • 23. Mandate background process SMON • • • SMON : System Monitor • Responsible for Instance crash recovery (ICR)is applying records from – Instance recovery Cleans up temporary segments. For example if redo index creation failed it recent checkpoint to dbf files after most cleans up all the temporary – Information from redo must be transferred segments. to What ismake it permanent and consistent dbf to ICR? –
  • 24. SM ON Cra Recov sh ery 245 Control file ICR SMON INSTANCE BUFFER CACHE STARTUP AFTER CRASH 24 5 24 5 Data file 1 Data file 2 245 Data file 3 1.Rollforward 2.Rollback Committ (uncommitted txns) ed & Undo 3.24 Recovery done Data 5 file 1 SHARED POOL DATABASE un committ ed 24 5 Committ ed & un committ ed
  • 25. Mandate background • process PMON PMON : Processes •Respon for Monitor ade proces sible cleanin ad ses resourc g User process Crash of es User process SG A PM ON
  • 26. • • Mandate REC background transact iO Responsible for distrib datab environ resolving in-doubt process Distribute ions n uted ase ment. RECO : Recoverer REC O d txn Us er REC O
  • 27. SQL statements ORACLE PARSI processing in DATABASE Us er Pro cess SQL> Select * from employee s; DATAB Server SHAR Processes ASE ED BUFFER PO CACHE OL REDO BUFFERS data file Execut ion Row source generation NG 1. Syntax check 2. Semantic check If 3.Shared so SP pool check ft che har ck d OPTIMI =n ZER o Multiple EP’s
  • 28. SQL statements ORACLE PARSI processing in DATABASE Us er p Proc DB Wn ess SQL> Update sal=20K from salary where sal=1 0K Rows u dated DATAB Server SHAR Processes ASE 10 ED 10 10 BUFFER RED PO k k k 20 20 20 O CACHE OL BUFF k k k ERS Un data do User data file file Execut ion Row source generation NG 1. Syntax check 2. Semantic check If 3.Shared so SP pool check ft che har ck d OPTIMI =n ZER o Multiple EP’s
  • 29. Building career with passion QUESTION AND ANSWER SESSION DSNR:944 11 72 718/040-65555689