SlideShare una empresa de Scribd logo
1 de 37
Copyright © 2009, Oracle. All rights reserved.
Exploring the Oracle Database Architecture
Copyright © 2009, Oracle. All rights reserved.
1 - 2
Objectives
After completing this lesson, you should be able to:
• List the major architectural components of Oracle
Database
• Explain the memory structures
• Describe the background processes
• Correlate the logical and physical storage structures
• Describe ASM storage components
Copyright © 2009, Oracle. All rights reserved.
1 - 3
Oracle Database
The Oracle relational database management system (RDBMS)
provides an open, comprehensive, integrated approach to
information management
Copyright © 2009, Oracle. All rights reserved.
1 - 4
Connecting to a Server
Client Middle tier Server
Multitier architecture shown
Copyright © 2009, Oracle. All rights reserved.
1 - 6
Database (Storage Structures)
Oracle Database Server Architecture:
Overview
Server
process
PGA
User
process
Instance
Memory Structures
(System Global Area)
Process Structures
Client
Server
Copyright © 2009, Oracle. All rights reserved.
1 - 7
Instance: Database Configurations
D1
D2
I1
I2
I1 I2 I3
D
Clustered System
Nonclustered System
Local
Storage
Shared Storage
Copyright © 2009, Oracle. All rights reserved.
1 - 8
Connecting to the Database Instance
• Connection: Communication between a user process and
an instance
• Session: Specific connection of a user to an instance
through a user process
SQL> Select …
Session
Connection
User
User
process
Server
process
Session
Copyright © 2009, Oracle. All rights reserved.
1 - 9
Oracle Database Memory Structures
Server
process 1
Shared pool
Database
buffer
cache
Redo log
buffer
Streams
pool
Large pool Java pool
Stack
Space
System Global Area (SGA)
Program Global Area (PGA)
Server
process 2
KEEP
buffer pool
RECYCLE
buffer pool
nK buffer
cache
User
Global
Area
Stack
Space
User
Global
Area
PGA
Copyright © 2009, Oracle. All rights reserved.
1 - 11
Shared pool
Database
buffer
cache
Redo log
buffer
Streams
pool
Large pool Java pool
System Global Area (SGA)
KEEP
buffer pool
RECYCLE
buffer pool
nK buffer
cache
Shared Pool
• Is a portion of the SGA
• Contains:
– Library cache
— Shared SQL area
– Data dictionary cache
– Control structures
Shared
SQL area
Library
cache
Data dictionary
cache
Other
Fixed Area
Copyright © 2009, Oracle. All rights reserved.
1 - 13
Shared pool
Database
buffer
cache
Redo log
buffer
Streams
pool
Large pool Java pool
System Global Area (SGA)
KEEP
buffer pool
RECYCLE
buffer pool
nK buffer
cache
Database Buffer Cache
• Is part of the SGA
• Holds copies of data blocks that are read from data files
• Is shared by all concurrent users
Copyright © 2009, Oracle. All rights reserved.
1 - 14
Redo Log Buffer
• Is a circular buffer in the SGA
• Holds information about changes made to the database
• Contains redo entries that have the information to redo
changes made by operations such as DML and DDL
Shared pool
Database
buffer
cache
Streams
pool
Large pool Java pool
System Global Area (SGA)
KEEP
buffer pool
RECYCLE
buffer pool
nK buffer
cache
Redo log
buffer
Copyright © 2009, Oracle. All rights reserved.
1 - 15
Shared pool
Database
buffer
cache
Redo log
buffer
Streams
pool
Large pool Java pool
System Global Area (SGA)
KEEP
buffer pool
RECYCLE
buffer pool
nK buffer
cache
Large Pool
Provides large memory allocations for:
• Session memory for the shared server and the Oracle XA
interface
• I/O server processes
• Oracle Database backup and restore operations
Large pool
I/O buffer
Response
queue
Request
queue
Free
memory
Parallel
Query
Advanced
Queuing
Copyright © 2009, Oracle. All rights reserved.
1 - 16
Shared pool
Database
buffer
cache
Redo log
buffer
Streams
pool
Large pool Java pool
System Global Area (SGA)
KEEP
buffer pool
RECYCLE
buffer pool
nK buffer
cache
Java Pool
and Streams Pool
• Java pool memory is used to store all session-specific
Java code and data in the JVM.
• Streams pool memory is used exclusively by Oracle
Streams to:
– Store buffered queue messages
– Provide memory for Oracle Streams processes
Java pool Streams pool
Copyright © 2009, Oracle. All rights reserved.
1 - 17
Program Global Area (PGA)
Server
process 1
Stack
Space
System Global Area (SGA)
PGA
Shared pool
Database
buffer
cache
Redo log
buffer
Streams
pool
Large pool Java pool
KEEP
buffer pool
RECYCLE
buffer pool
nK buffer
cache
User
Global
Area
User Session
Data
Cursor
State
Sort
Area
Hash
Area
Create Bitmap Area
SQL
Working Areas
Bitmap Merge Area
Copyright © 2009, Oracle. All rights reserved.
1 - 18
Quiz
Memory region that contains data and control information for a
server or background process is called:
1. Shared Pool
2. PGA
3. Buffer Cache
4. User session data
Copyright © 2009, Oracle. All rights reserved.
1 - 19
Quiz
What is read into the Database Buffer Cache from the data
files?
1. Rows
2. Changes
3. Blocks
4. SQL
Copyright © 2009, Oracle. All rights reserved.
1 - 20
Process Architecture
• User process
– Is the application or tool that connects to the Oracle
database
• Database processes
– Server process: Connects to the Oracle instance and is
started when a user establishes a session
– Background processes: Are started when an Oracle instance
is started
• Daemon / Application processes
– Networking listeners
– Grid infrastructure daemons
Copyright © 2009, Oracle. All rights reserved.
1 - 21
Process Structures
PMON
SMON
Others
Instances (ASM and Database separate)
RECO
ARCn
DBWn LGWR
CKPT
PGA
Background processes
System Global Area (SGA)
Required:
ASMB RBAL
Optional:
Grid Infrastructure Processes
(ASM and Oracle Restart)
orarootagent
ohas ocssd diskmon
oraagent cssdagent
User
process
Server
process
Listener
Copyright © 2009, Oracle. All rights reserved.
1 - 23
Database Writer Process (DBWn)
Writes modified (dirty) buffers in the database buffer cache to
disk:
• Asynchronously while performing other processing
• To advance the checkpoint
Database buffer
cache
Database writer
process
Data files
DBWn
Copyright © 2009, Oracle. All rights reserved.
1 - 25
Log Writer Process (LGWR)
• Writes the redo log buffer to a redo log file on disk
• Writes:
– When a user process commits a transaction
– When the redo log buffer is one-third full
– Before a DBWn process writes modified buffers to disk
– Every 3 seconds
Redo log buffer Log Writer process Redo log files
LGWR
Copyright © 2009, Oracle. All rights reserved.
1 - 27
Checkpoint Process (CKPT)
• Records checkpoint information in
– Control file
– Each data file header
Checkpoint
process
Data files
Control file
CKPT
Copyright © 2009, Oracle. All rights reserved.
1 - 28
System Monitor Process (SMON)
• Performs recovery at instance startup
• Cleans up unused temporary segments
Instance
Temporary
segment
System Monitor
process
SMON
Copyright © 2009, Oracle. All rights reserved.
1 - 29
Process Monitor Process (PMON)
• Performs process recovery when a user process fails
– Cleans up the database buffer cache
– Frees resources that are used by the user process
• Monitors sessions for idle session timeout
• Dynamically registers database services with listeners
Process Monitor
process
Database buffer
cache
Failed user
process
User
PMON
Server
process
tnslsnr
Copyright © 2009, Oracle. All rights reserved.
1 - 30
Archiver Processes (ARCn)
• Copy redo log files to a designated storage device after a
log switch has occurred
• Can collect transaction redo data and transmit that data to
standby destinations
Archiver process Archive destination
Copies of redo log
files
ARCn
Copyright © 2009, Oracle. All rights reserved.
1 - 31
• Oracle Grid Infrastructure is started by the OS init daemon.
• Oracle Grid Infrastructure installation modifies the
/etc/inittab file to ensure startup every time machine
is started in corresponding run level.
Process Startup Sequence
init.ohasd
(root)
ohasd.bin
oraagent.bin
orarootagent.bin
diskmon.bin
cssdagent
ocssd.bin
init
Grid Infrastructure
Wrapper Script
Grid Infrastructure
Daemons and Processes
Operating System
Init Daemon
# cat /etc/inittab
..
h1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null
ASM Instance
Listener
DB Instance
User Defined
Applications
Copyright © 2009, Oracle. All rights reserved.
1 - 32
Database Storage Architecture
Online redo log files
Password file
Parameter file Archived redo log
files
Control files Data files
Alert log and trace files
Backup files
Copyright © 2009, Oracle. All rights reserved.
1 - 34
Logical and Physical Database Structures
Database
Logical Physical
Tablespace Data file
Segment
Extent
Oracle data
block
Storage System
• SAN
• NAS
• Exadata
• File System
• NFS
• ASM
• RAW
Copyright © 2009, Oracle. All rights reserved.
1 - 36
Segments, Extents, and Blocks
• Segments exist in a tablespace.
• Segments are collections of extents.
• Extents are collections of data blocks.
• Data blocks are mapped to disk blocks.
Segment Extents Data
blocks
Disk blocks
(File System
Storage)
Copyright © 2009, Oracle. All rights reserved.
1 - 37
Tablespaces and Data Files
8Kb 8Kb
8Kb 8Kb
8Kb 8Kb
8Kb 8Kb
8Kb 8Kb
8Kb 8Kb
8Kb 8Kb
8Kb 8Kb
8Kb
8Kb
8Kb
8Kb
Tablespace 1
Datafile 1 Datafile 2
Extent
64KB
Extent
96KB
Segment
160KB
Tablespace 2 (Bigfile)
Datafile 3
Only 1 datafile
allowed
<= 128 TB
Copyright © 2009, Oracle. All rights reserved.
1 - 38
SYSTEM and SYSAUX Tablespaces
• The SYSTEM and SYSAUX tablespaces are mandatory
tablespaces that are created at the time of database
creation. They must be online.
• The SYSTEM tablespace is used for core functionality (for
example, data dictionary tables).
• The auxiliary SYSAUX tablespace is used for additional
database components (such as the Enterprise Manager
Repository).
• The SYSTEM and SYSAUX tablespaces are not
recommended to be used to store application's data.
Copyright © 2009, Oracle. All rights reserved.
1 - 39
Automatic Storage Management
• Is a portable and high-performance
cluster file system
• Manages Oracle database files
• Manages application files with
ASM Cluster File System (ACFS)
• Spreads data across disks
to balance load
• Mirrors data in case of failures
• Solves storage-management
challenges
ASM
Cluster File
System
ASM Dynamic
Volume
Manager
Application
Oracle
Database
Operating system
ASM
Files for
Oracle
Database
Automatic Storage Management
Copyright © 2009, Oracle. All rights reserved.
1 - 40
ASM Storage Components
Oracle
Database
datafile
ASM allocation
unit
ASM
disk group
ASM disk
ASM file
ASM
extent
File system
or
Raw device
ASM
Copyright © 2009, Oracle. All rights reserved.
1 - 41
Interacting with an Oracle Database:
Memory, Processes and Storage
User
PGA
User
process
Server
process
Listener
PMON
SMON Others
Instance
RECO
DBWn LGWR
CKPT
Shared
pool
Database
buffer
cache
Redo log
buffer
Streams
pool
Large pool
Java
pool
KEEP
buffer
RECYCLE
buffer
nK buffer
cache
ARCn
Copyright © 2009, Oracle. All rights reserved.
1 - 43
Quiz
The Process Monitor process (PMON):
1. Performs recovery at instance startup
2. Performs process recovery when a user process fails
3. Automatically resolves all in-doubt transactions
4. Writes the redo log buffer to a redo log file
Copyright © 2009, Oracle. All rights reserved.
1 - 44
Quiz
ASM Files are accessed by which types of instances?
1. RDBMS Instances only
2. ASM Instances only
3. Both RDBMS and ASM Instances
Copyright © 2009, Oracle. All rights reserved.
1 - 45
Summary
In this lesson, you should have learned how to:
• List the major architectural components of Oracle
Database
• Explain the memory structures
• Describe the background processes
• Correlate the logical and physical storage structures
• Describe the ASM storage components
Copyright © 2009, Oracle. All rights reserved.
1 - 46
Practice 1: Overview
This is a paper practice with questions about:
• Database architecture
• Memory
• Processes
• File structures

Más contenido relacionado

La actualidad más candente

The internals of gporca optimizer
The internals of gporca optimizerThe internals of gporca optimizer
The internals of gporca optimizerXin Zhang
 
Colas en programacion
Colas en programacionColas en programacion
Colas en programacionLuis Igoodbad
 
8. Multi List (Struktur Data)
8. Multi List (Struktur Data)8. Multi List (Struktur Data)
8. Multi List (Struktur Data)Kelinci Coklat
 
Analisis Algoritma - Strategi Algoritma Greedy
Analisis Algoritma - Strategi Algoritma GreedyAnalisis Algoritma - Strategi Algoritma Greedy
Analisis Algoritma - Strategi Algoritma GreedyAdam Mukharil Bachtiar
 
Algoritma Greedy (contoh soal)
Algoritma Greedy (contoh soal)Algoritma Greedy (contoh soal)
Algoritma Greedy (contoh soal)Ajeng Savitri
 
Otras estructuras de datos (heap, tablas hash y diccionarios)
Otras estructuras de datos (heap, tablas hash y diccionarios)Otras estructuras de datos (heap, tablas hash y diccionarios)
Otras estructuras de datos (heap, tablas hash y diccionarios)Alvaro Enrique Ruano
 
Listas doblemente enlazadas C++ UP
Listas doblemente enlazadas C++ UPListas doblemente enlazadas C++ UP
Listas doblemente enlazadas C++ UPMiguelGomez371
 
Búsqueda en Anchura
Búsqueda en AnchuraBúsqueda en Anchura
Búsqueda en AnchuraTutor4uDev
 
Búsqueda secuencial en tabla ordenada
Búsqueda secuencial  en tabla ordenadaBúsqueda secuencial  en tabla ordenada
Búsqueda secuencial en tabla ordenadaEdwin Chavarria
 
Flink Forward San Francisco 2019: Moving from Lambda and Kappa Architectures ...
Flink Forward San Francisco 2019: Moving from Lambda and Kappa Architectures ...Flink Forward San Francisco 2019: Moving from Lambda and Kappa Architectures ...
Flink Forward San Francisco 2019: Moving from Lambda and Kappa Architectures ...Flink Forward
 
01 Knapsack using Dynamic Programming
01 Knapsack using Dynamic Programming01 Knapsack using Dynamic Programming
01 Knapsack using Dynamic ProgrammingFenil Shah
 
Presto At Arm Treasure Data - 2019 Updates
Presto At Arm Treasure Data - 2019 UpdatesPresto At Arm Treasure Data - 2019 Updates
Presto At Arm Treasure Data - 2019 UpdatesTaro L. Saito
 
PPT Functional dan OOP Programming.pptx
PPT Functional dan OOP Programming.pptxPPT Functional dan OOP Programming.pptx
PPT Functional dan OOP Programming.pptxAliefMuhammadAbdilla
 

La actualidad más candente (20)

The internals of gporca optimizer
The internals of gporca optimizerThe internals of gporca optimizer
The internals of gporca optimizer
 
Colas en programacion
Colas en programacionColas en programacion
Colas en programacion
 
Metodos de ordenamiento
Metodos de ordenamientoMetodos de ordenamiento
Metodos de ordenamiento
 
Pilas estáticas. IESIT
Pilas estáticas. IESITPilas estáticas. IESIT
Pilas estáticas. IESIT
 
Pilas y colas
Pilas y colasPilas y colas
Pilas y colas
 
8. Multi List (Struktur Data)
8. Multi List (Struktur Data)8. Multi List (Struktur Data)
8. Multi List (Struktur Data)
 
Analisis Algoritma - Strategi Algoritma Greedy
Analisis Algoritma - Strategi Algoritma GreedyAnalisis Algoritma - Strategi Algoritma Greedy
Analisis Algoritma - Strategi Algoritma Greedy
 
Algoritma Greedy (contoh soal)
Algoritma Greedy (contoh soal)Algoritma Greedy (contoh soal)
Algoritma Greedy (contoh soal)
 
Otras estructuras de datos (heap, tablas hash y diccionarios)
Otras estructuras de datos (heap, tablas hash y diccionarios)Otras estructuras de datos (heap, tablas hash y diccionarios)
Otras estructuras de datos (heap, tablas hash y diccionarios)
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithms
 
Listas doblemente enlazadas C++ UP
Listas doblemente enlazadas C++ UPListas doblemente enlazadas C++ UP
Listas doblemente enlazadas C++ UP
 
Búsqueda en Anchura
Búsqueda en AnchuraBúsqueda en Anchura
Búsqueda en Anchura
 
Shell sort slide
Shell sort slideShell sort slide
Shell sort slide
 
Búsqueda secuencial en tabla ordenada
Búsqueda secuencial  en tabla ordenadaBúsqueda secuencial  en tabla ordenada
Búsqueda secuencial en tabla ordenada
 
Flink Forward San Francisco 2019: Moving from Lambda and Kappa Architectures ...
Flink Forward San Francisco 2019: Moving from Lambda and Kappa Architectures ...Flink Forward San Francisco 2019: Moving from Lambda and Kappa Architectures ...
Flink Forward San Francisco 2019: Moving from Lambda and Kappa Architectures ...
 
01 Knapsack using Dynamic Programming
01 Knapsack using Dynamic Programming01 Knapsack using Dynamic Programming
01 Knapsack using Dynamic Programming
 
Presto At Arm Treasure Data - 2019 Updates
Presto At Arm Treasure Data - 2019 UpdatesPresto At Arm Treasure Data - 2019 Updates
Presto At Arm Treasure Data - 2019 Updates
 
PPT Functional dan OOP Programming.pptx
PPT Functional dan OOP Programming.pptxPPT Functional dan OOP Programming.pptx
PPT Functional dan OOP Programming.pptx
 
Quick_sort1.pptx
Quick_sort1.pptxQuick_sort1.pptx
Quick_sort1.pptx
 
Less08 users
Less08 usersLess08 users
Less08 users
 

Similar a Less01_Architecture.ppt

exploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptexploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptAmitavaRoy49
 
Exploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.pptExploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.pptMohammedHdi1
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture pptDeepak Shetty
 
Adavanced Databases and Mangement system
Adavanced Databases and Mangement systemAdavanced Databases and Mangement system
Adavanced Databases and Mangement systemMurtazaMughal13
 
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdfOracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdfRajendra Jain
 
Less01 db architecture
Less01 db architectureLess01 db architecture
Less01 db architectureImran Ali
 
les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_tricantino1973
 
DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)Gustavo Rene Antunez
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.pptHODCA1
 
Ora01_OraArc.pdf
Ora01_OraArc.pdfOra01_OraArc.pdf
Ora01_OraArc.pdfNamNguynMu
 
Oracle apps dba training dba technologies
Oracle apps dba training   dba technologiesOracle apps dba training   dba technologies
Oracle apps dba training dba technologiessanind88
 

Similar a Less01_Architecture.ppt (20)

exploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.pptexploring-the-oracle-database-architecture.ppt
exploring-the-oracle-database-architecture.ppt
 
Exploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.pptExploring the Oracle Database Architecture.ppt
Exploring the Oracle Database Architecture.ppt
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture ppt
 
Adavanced Databases and Mangement system
Adavanced Databases and Mangement systemAdavanced Databases and Mangement system
Adavanced Databases and Mangement system
 
Les 01 core
Les 01 coreLes 01 core
Les 01 core
 
les_01_core.ppt
les_01_core.pptles_01_core.ppt
les_01_core.ppt
 
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdfOracle Database 11g SQL Tuning Workshop - Student Guide.pdf
Oracle Database 11g SQL Tuning Workshop - Student Guide.pdf
 
Less01 db architecture
Less01 db architectureLess01 db architecture
Less01 db architecture
 
Resize sga
Resize sgaResize sga
Resize sga
 
les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_les_01_arch_presentation_asm_oracle_rac_
les_01_arch_presentation_asm_oracle_rac_
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
 
DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.ppt
 
Ora01_OraArc.pdf
Ora01_OraArc.pdfOra01_OraArc.pdf
Ora01_OraArc.pdf
 
Oracle 10g Introduction 1
Oracle 10g Introduction 1Oracle 10g Introduction 1
Oracle 10g Introduction 1
 
Oracle apps dba training dba technologies
Oracle apps dba training   dba technologiesOracle apps dba training   dba technologies
Oracle apps dba training dba technologies
 
Less01 Dba1
Less01 Dba1Less01 Dba1
Less01 Dba1
 
App D
App DApp D
App D
 
ORACLE ARCHITECTURE
ORACLE ARCHITECTUREORACLE ARCHITECTURE
ORACLE ARCHITECTURE
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 

Último

The-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptxThe-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptxVivek487417
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNKTimothy Spann
 
怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制
怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制
怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制vexqp
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...nirzagarg
 
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...gajnagarg
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...gajnagarg
 
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangePredicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangeThinkInnovation
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabiaahmedjiabur940
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...gajnagarg
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Klinik kandungan
 
7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.pptibrahimabdi22
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteedamy56318795
 
Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........EfruzAsilolu
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...nirzagarg
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格q6pzkpark
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxchadhar227
 
Harnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptxHarnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptxParas Gupta
 

Último (20)

The-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptxThe-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制
怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制
怎样办理伦敦大学城市学院毕业证(CITY毕业证书)成绩单学校原版复制
 
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit RiyadhCytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
 
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Tumkur [ 7014168258 ] Call Me For Genuine Models We...
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
 
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangePredicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........Switzerland Constitution 2002.pdf.........
Switzerland Constitution 2002.pdf.........
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
 
Harnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptxHarnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptx
 

Less01_Architecture.ppt

  • 1. Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture
  • 2. Copyright © 2009, Oracle. All rights reserved. 1 - 2 Objectives After completing this lesson, you should be able to: • List the major architectural components of Oracle Database • Explain the memory structures • Describe the background processes • Correlate the logical and physical storage structures • Describe ASM storage components
  • 3. Copyright © 2009, Oracle. All rights reserved. 1 - 3 Oracle Database The Oracle relational database management system (RDBMS) provides an open, comprehensive, integrated approach to information management
  • 4. Copyright © 2009, Oracle. All rights reserved. 1 - 4 Connecting to a Server Client Middle tier Server Multitier architecture shown
  • 5. Copyright © 2009, Oracle. All rights reserved. 1 - 6 Database (Storage Structures) Oracle Database Server Architecture: Overview Server process PGA User process Instance Memory Structures (System Global Area) Process Structures Client Server
  • 6. Copyright © 2009, Oracle. All rights reserved. 1 - 7 Instance: Database Configurations D1 D2 I1 I2 I1 I2 I3 D Clustered System Nonclustered System Local Storage Shared Storage
  • 7. Copyright © 2009, Oracle. All rights reserved. 1 - 8 Connecting to the Database Instance • Connection: Communication between a user process and an instance • Session: Specific connection of a user to an instance through a user process SQL> Select … Session Connection User User process Server process Session
  • 8. Copyright © 2009, Oracle. All rights reserved. 1 - 9 Oracle Database Memory Structures Server process 1 Shared pool Database buffer cache Redo log buffer Streams pool Large pool Java pool Stack Space System Global Area (SGA) Program Global Area (PGA) Server process 2 KEEP buffer pool RECYCLE buffer pool nK buffer cache User Global Area Stack Space User Global Area PGA
  • 9. Copyright © 2009, Oracle. All rights reserved. 1 - 11 Shared pool Database buffer cache Redo log buffer Streams pool Large pool Java pool System Global Area (SGA) KEEP buffer pool RECYCLE buffer pool nK buffer cache Shared Pool • Is a portion of the SGA • Contains: – Library cache — Shared SQL area – Data dictionary cache – Control structures Shared SQL area Library cache Data dictionary cache Other Fixed Area
  • 10. Copyright © 2009, Oracle. All rights reserved. 1 - 13 Shared pool Database buffer cache Redo log buffer Streams pool Large pool Java pool System Global Area (SGA) KEEP buffer pool RECYCLE buffer pool nK buffer cache Database Buffer Cache • Is part of the SGA • Holds copies of data blocks that are read from data files • Is shared by all concurrent users
  • 11. Copyright © 2009, Oracle. All rights reserved. 1 - 14 Redo Log Buffer • Is a circular buffer in the SGA • Holds information about changes made to the database • Contains redo entries that have the information to redo changes made by operations such as DML and DDL Shared pool Database buffer cache Streams pool Large pool Java pool System Global Area (SGA) KEEP buffer pool RECYCLE buffer pool nK buffer cache Redo log buffer
  • 12. Copyright © 2009, Oracle. All rights reserved. 1 - 15 Shared pool Database buffer cache Redo log buffer Streams pool Large pool Java pool System Global Area (SGA) KEEP buffer pool RECYCLE buffer pool nK buffer cache Large Pool Provides large memory allocations for: • Session memory for the shared server and the Oracle XA interface • I/O server processes • Oracle Database backup and restore operations Large pool I/O buffer Response queue Request queue Free memory Parallel Query Advanced Queuing
  • 13. Copyright © 2009, Oracle. All rights reserved. 1 - 16 Shared pool Database buffer cache Redo log buffer Streams pool Large pool Java pool System Global Area (SGA) KEEP buffer pool RECYCLE buffer pool nK buffer cache Java Pool and Streams Pool • Java pool memory is used to store all session-specific Java code and data in the JVM. • Streams pool memory is used exclusively by Oracle Streams to: – Store buffered queue messages – Provide memory for Oracle Streams processes Java pool Streams pool
  • 14. Copyright © 2009, Oracle. All rights reserved. 1 - 17 Program Global Area (PGA) Server process 1 Stack Space System Global Area (SGA) PGA Shared pool Database buffer cache Redo log buffer Streams pool Large pool Java pool KEEP buffer pool RECYCLE buffer pool nK buffer cache User Global Area User Session Data Cursor State Sort Area Hash Area Create Bitmap Area SQL Working Areas Bitmap Merge Area
  • 15. Copyright © 2009, Oracle. All rights reserved. 1 - 18 Quiz Memory region that contains data and control information for a server or background process is called: 1. Shared Pool 2. PGA 3. Buffer Cache 4. User session data
  • 16. Copyright © 2009, Oracle. All rights reserved. 1 - 19 Quiz What is read into the Database Buffer Cache from the data files? 1. Rows 2. Changes 3. Blocks 4. SQL
  • 17. Copyright © 2009, Oracle. All rights reserved. 1 - 20 Process Architecture • User process – Is the application or tool that connects to the Oracle database • Database processes – Server process: Connects to the Oracle instance and is started when a user establishes a session – Background processes: Are started when an Oracle instance is started • Daemon / Application processes – Networking listeners – Grid infrastructure daemons
  • 18. Copyright © 2009, Oracle. All rights reserved. 1 - 21 Process Structures PMON SMON Others Instances (ASM and Database separate) RECO ARCn DBWn LGWR CKPT PGA Background processes System Global Area (SGA) Required: ASMB RBAL Optional: Grid Infrastructure Processes (ASM and Oracle Restart) orarootagent ohas ocssd diskmon oraagent cssdagent User process Server process Listener
  • 19. Copyright © 2009, Oracle. All rights reserved. 1 - 23 Database Writer Process (DBWn) Writes modified (dirty) buffers in the database buffer cache to disk: • Asynchronously while performing other processing • To advance the checkpoint Database buffer cache Database writer process Data files DBWn
  • 20. Copyright © 2009, Oracle. All rights reserved. 1 - 25 Log Writer Process (LGWR) • Writes the redo log buffer to a redo log file on disk • Writes: – When a user process commits a transaction – When the redo log buffer is one-third full – Before a DBWn process writes modified buffers to disk – Every 3 seconds Redo log buffer Log Writer process Redo log files LGWR
  • 21. Copyright © 2009, Oracle. All rights reserved. 1 - 27 Checkpoint Process (CKPT) • Records checkpoint information in – Control file – Each data file header Checkpoint process Data files Control file CKPT
  • 22. Copyright © 2009, Oracle. All rights reserved. 1 - 28 System Monitor Process (SMON) • Performs recovery at instance startup • Cleans up unused temporary segments Instance Temporary segment System Monitor process SMON
  • 23. Copyright © 2009, Oracle. All rights reserved. 1 - 29 Process Monitor Process (PMON) • Performs process recovery when a user process fails – Cleans up the database buffer cache – Frees resources that are used by the user process • Monitors sessions for idle session timeout • Dynamically registers database services with listeners Process Monitor process Database buffer cache Failed user process User PMON Server process tnslsnr
  • 24. Copyright © 2009, Oracle. All rights reserved. 1 - 30 Archiver Processes (ARCn) • Copy redo log files to a designated storage device after a log switch has occurred • Can collect transaction redo data and transmit that data to standby destinations Archiver process Archive destination Copies of redo log files ARCn
  • 25. Copyright © 2009, Oracle. All rights reserved. 1 - 31 • Oracle Grid Infrastructure is started by the OS init daemon. • Oracle Grid Infrastructure installation modifies the /etc/inittab file to ensure startup every time machine is started in corresponding run level. Process Startup Sequence init.ohasd (root) ohasd.bin oraagent.bin orarootagent.bin diskmon.bin cssdagent ocssd.bin init Grid Infrastructure Wrapper Script Grid Infrastructure Daemons and Processes Operating System Init Daemon # cat /etc/inittab .. h1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null ASM Instance Listener DB Instance User Defined Applications
  • 26. Copyright © 2009, Oracle. All rights reserved. 1 - 32 Database Storage Architecture Online redo log files Password file Parameter file Archived redo log files Control files Data files Alert log and trace files Backup files
  • 27. Copyright © 2009, Oracle. All rights reserved. 1 - 34 Logical and Physical Database Structures Database Logical Physical Tablespace Data file Segment Extent Oracle data block Storage System • SAN • NAS • Exadata • File System • NFS • ASM • RAW
  • 28. Copyright © 2009, Oracle. All rights reserved. 1 - 36 Segments, Extents, and Blocks • Segments exist in a tablespace. • Segments are collections of extents. • Extents are collections of data blocks. • Data blocks are mapped to disk blocks. Segment Extents Data blocks Disk blocks (File System Storage)
  • 29. Copyright © 2009, Oracle. All rights reserved. 1 - 37 Tablespaces and Data Files 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb Tablespace 1 Datafile 1 Datafile 2 Extent 64KB Extent 96KB Segment 160KB Tablespace 2 (Bigfile) Datafile 3 Only 1 datafile allowed <= 128 TB
  • 30. Copyright © 2009, Oracle. All rights reserved. 1 - 38 SYSTEM and SYSAUX Tablespaces • The SYSTEM and SYSAUX tablespaces are mandatory tablespaces that are created at the time of database creation. They must be online. • The SYSTEM tablespace is used for core functionality (for example, data dictionary tables). • The auxiliary SYSAUX tablespace is used for additional database components (such as the Enterprise Manager Repository). • The SYSTEM and SYSAUX tablespaces are not recommended to be used to store application's data.
  • 31. Copyright © 2009, Oracle. All rights reserved. 1 - 39 Automatic Storage Management • Is a portable and high-performance cluster file system • Manages Oracle database files • Manages application files with ASM Cluster File System (ACFS) • Spreads data across disks to balance load • Mirrors data in case of failures • Solves storage-management challenges ASM Cluster File System ASM Dynamic Volume Manager Application Oracle Database Operating system ASM Files for Oracle Database Automatic Storage Management
  • 32. Copyright © 2009, Oracle. All rights reserved. 1 - 40 ASM Storage Components Oracle Database datafile ASM allocation unit ASM disk group ASM disk ASM file ASM extent File system or Raw device ASM
  • 33. Copyright © 2009, Oracle. All rights reserved. 1 - 41 Interacting with an Oracle Database: Memory, Processes and Storage User PGA User process Server process Listener PMON SMON Others Instance RECO DBWn LGWR CKPT Shared pool Database buffer cache Redo log buffer Streams pool Large pool Java pool KEEP buffer RECYCLE buffer nK buffer cache ARCn
  • 34. Copyright © 2009, Oracle. All rights reserved. 1 - 43 Quiz The Process Monitor process (PMON): 1. Performs recovery at instance startup 2. Performs process recovery when a user process fails 3. Automatically resolves all in-doubt transactions 4. Writes the redo log buffer to a redo log file
  • 35. Copyright © 2009, Oracle. All rights reserved. 1 - 44 Quiz ASM Files are accessed by which types of instances? 1. RDBMS Instances only 2. ASM Instances only 3. Both RDBMS and ASM Instances
  • 36. Copyright © 2009, Oracle. All rights reserved. 1 - 45 Summary In this lesson, you should have learned how to: • List the major architectural components of Oracle Database • Explain the memory structures • Describe the background processes • Correlate the logical and physical storage structures • Describe the ASM storage components
  • 37. Copyright © 2009, Oracle. All rights reserved. 1 - 46 Practice 1: Overview This is a paper practice with questions about: • Database architecture • Memory • Processes • File structures