SlideShare a Scribd company logo
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
Oracle Database Architecture
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 2
Objectives
After completing this lesson, you should be able to:
• List the major architectural components of Oracle
Database
• Explain memory structures
• Describe background processes
• Correlate logical and physical storage structures
• Describe pluggable databases
• Describe ASM storage components
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 3
Database (Storage Structures)
Oracle Database Server Architecture: Overview
Server
process
PGA
User
process
Instance
Memory Structures
(System Global Area)
Process Structures
Client
Server
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 4
Oracle Database Instance Configurations
D1
D2
I1
I2
I1 I2 I3
D
Clustered System
Nonclustered System
Local Storage
Shared Storage
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 5
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
User
User
process
Server
process
Session
Connection
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 6
Oracle Database Memory Structures
Server
process 1
Shared pool
Database
buffer
cache
Streams
pool
Large pool Java pool
Stack
Space
System Global Area (SGA)
Program Global Area (PGA)
Server
process 2
User
Global
Area
Stack
Space
User
Global
Area
PGA
Fixed SGA
Redo log
buffer
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 7
Redo log
buffer
Shared pool
Database
buffer
cache
Streams
pool
Large pool Java pool
System Global Area (SGA)
Shared Pool
• Is a portion of the SGA
• Contains:
– Library cache
— Shared SQL area
– Data dictionary cache
– Server result cache
Shared
SQL Area
Library
Cache
Data Dictionary
Cache
Server Result
Cache
Other
Reserved Pool
Fixed SGA
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 8
Shared pool
Database
buffer
cache
Streams
pool
Large pool Java pool
System Global Area (SGA)
Keep pool
Recycle
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
Fixed SGA
Redo log
buffer
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 9
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)
Redo log
buffer
Redo log
buffer
Fixed SGA
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 10
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
Shared pool
Database
buffer
cache
Streams
pool
Large pool Java pool
System Global Area (SGA)
RECYCLE
buffer pool
Fixed SGA
Redo log
buffer
Large pool
I/O buffer
Response
queue
Request
queue
Free
memory
Parallel
Query
Advanced
Queuing
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 11
Java Pool
Java pool memory is used to store all session-specific Java
code and data in the JVM.
Shared pool
Database
buffer
cache
Streams
pool
Large pool Java pool
System Global Area (SGA)
Java pool
Fixed SGA
Redo log
buffer
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 12
Streams Pool
Streams pool memory is used exclusively by Oracle Streams
to:
• Store buffered queue messages
• Provide memory for Oracle Streams processes
Shared pool
Database
buffer
cache
Streams
pool
Large pool Java pool
System Global Area (SGA)
nK buffer
cache
Redo log
buffer
Streams pool
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 13
Program Global Area (PGA)
Server
process 1
Stack
Space
System Global Area (SGA)
PGA
Shared pool
Database
buffer
cache
Streams
pool
Large pool Java pool
User
Global
Area
User Session
Data
Cursor
State
Sort
Area
Hash
Area
Create Bitmap Area
SQL
Work Areas
Bitmap Merge Area
Fixed SGA
Redo log
buffer
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 14
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 © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 15
Process Structures
PMON
SMON
Others
Instances (ASM and Database separate)
LREG
ARCn
DBWn LGWR
CKPT
PGA
Background processes
System Global Area (SGA)
Required:
Optional:
Grid Infrastructure Processes
(ASM and Oracle Restart)
orarootagent
ohas ocssd diskmon
oraagent cssdagent
User
process
Server
process
Listener
RECO MMON MMNL Others
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 16
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 © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 17
Log Writer Process (LGWR)
• Writes the redo log buffer to a redo log file on disk
– When a user process commits a transaction
– When an online redo log switch occurs
– When the redo log buffer is one-third full or contains 1 MB of
buffered data
– Before a DBWn process writes modified buffers to disk
– When three seconds have passed since the last write
• Serves as coordinator of LGnn processes and ensures
correct order for operations that must be ordered
Redo log files
LGWR
Redo log
buffer
LGnn
LGnn
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 18
Checkpoint Process (CKPT)
• Records checkpoint information in
– Control file
– Each data file header
• Signals DBWn to write blocks to disk
Checkpoint
process
Data files
Control file
CKPT
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 19
System Monitor Process (SMON)
• Performs recovery at instance startup
• Cleans up unused temporary segments
Instance
Temporary
segment
System Monitor
process
SMON
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 20
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
Process Monitor
process
Database buffer
cache
Failed user process
User
PMON
Server
process
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 21
Recoverer Process (RECO)
• Used with the distributed database configuration
• Automatically connects to other databases involved in in-
doubt distributed transactions
• Automatically resolves all in-doubt transactions
• Removes any rows that correspond to in-doubt
transactions
Recoverer process
in database A
In-doubt transaction
in database B
RECO
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 22
Listener Registration Process (LREG)
Registers information about the database instance and
dispatcher processes with the Oracle Net Listener
listener
Instance
Memory Structures
(System Global Area)
Process Structures
LREG
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 23
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 © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 24
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 © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 25
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
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 26
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 © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 27
Tablespaces and Data Files
8Kb 8Kb
8Kb 8Kb
8Kb 8Kb
8Kb 8Kb
8Kb 8Kb
8Kb 8Kb
8Kb 8Kb
8Kb 8Kb
Tablespace 1
Data file 1 Data file 2
Extent
64 KB
Extent
64 KB
Segment
128 KB
Tablespace 2 (Bigfile)
Data file 3
Only 1 data file
allowed
<= 128 TB
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 28
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.
• The SYSTEM and SYSAUX tablespaces should not be used
for application data.
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 29
Multitenant Architecture
Instance
System Global Area
Process Structures
Server
Instance
Multitenant
container
database
root container
Data files Redo Log files
Control files
UNDO
TEMP
SYSTEM
SYSAUX
Seed PDB
Data files
SYSTEM
SYSAUX
SALES PDB
SYSTEM
SYSAUX TBS2
HR PDB
Data files
TEMPO
Data files
TEMP2
PDBid2 PDBid3 PDBid4 PDBid2 PDBid4
All PDBs share:
• Background
processes
• Shared/process
memory
• Oracle metadata
• Redo log files
• Control files
• Undo tablespace
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 30
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 © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 31
ASM Storage Components
Oracle
Database
Data file
ASM allocation
unit
ASM
disk group
ASM disk
ASM file
ASM
extent
File system
ASM
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 32
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
Streams
pool
Large pool
Java pool
ARCn
Redo log
buffer
Fixed SGA
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 33
Quiz
The memory region that contains data and control information
for a server or background process is called:
a. Shared pool
b. PGA
c. Buffer cache
d. User session data
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 34
Quiz
What is read into the database buffer cache from data files?
a. Rows
b. Changes
c. Blocks
d. SQL
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 35
Quiz
The Process Monitor process (PMON):
a. Performs recovery at instance startup
b. Performs process recovery when a user process fails
c. Automatically resolves all in-doubt transactions
d. Writes the redo log buffer to a redo log file
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
2 - 36
Summary
In this lesson, you should have learned how to:
• List the major architectural components of Oracle
Database
• Explain memory structures
• Describe background processes
• Correlate logical and physical storage structures
• Describe pluggable databases
• Describe ASM storage components
Ad

More Related Content

Similar to 01-Oracle 19c-Architecture Overview Oracle (20)

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
Rajendra Jain
 
les_01_core.ppt
les_01_core.pptles_01_core.ppt
les_01_core.ppt
SoloParaTi7
 
Conceptos y herramientas del core de Oracle 11g
Conceptos y herramientas del core de Oracle 11gConceptos y herramientas del core de Oracle 11g
Conceptos y herramientas del core de Oracle 11g
188882
 
les_01_core_database-oracle00000000.ppt.ppt
les_01_core_database-oracle00000000.ppt.pptles_01_core_database-oracle00000000.ppt.ppt
les_01_core_database-oracle00000000.ppt.ppt
mhmdfoad66
 
Les 01 core
Les 01 coreLes 01 core
Les 01 core
Femi Adeyemi
 
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
 
Less01 db architecture
Less01 db architectureLess01 db architecture
Less01 db architecture
Imran Ali
 
Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architecture
Simon Huang
 
Ora01_OraArc.pdf
Ora01_OraArc.pdfOra01_OraArc.pdf
Ora01_OraArc.pdf
NamNguynMu
 
Oracle DBA
Oracle DBAOracle DBA
Oracle DBA
shivankuniversity
 
Oracle 10g Introduction 1
Oracle 10g Introduction 1Oracle 10g Introduction 1
Oracle 10g Introduction 1
Eryk Budi Pratama
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.ppt
HODCA1
 
App D
App DApp D
App D
Sudharsan S
 
Oracle GoldenGate Performance Tuning
Oracle GoldenGate Performance TuningOracle GoldenGate Performance Tuning
Oracle GoldenGate Performance Tuning
Bobby Curtis
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
durgaprasad1407
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
Hitesh Kumar Markam
 
Resize sga
Resize sgaResize sga
Resize sga
Hitesh Kumar Markam
 
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
 
ORACLE ARCHITECTURE
ORACLE ARCHITECTUREORACLE ARCHITECTURE
ORACLE ARCHITECTURE
Manohar Tatwawadi
 
Oracle Database 12c : Multitenant
Oracle Database 12c : MultitenantOracle Database 12c : Multitenant
Oracle Database 12c : Multitenant
Digicomp Academy Suisse Romande SA
 
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
Rajendra Jain
 
Conceptos y herramientas del core de Oracle 11g
Conceptos y herramientas del core de Oracle 11gConceptos y herramientas del core de Oracle 11g
Conceptos y herramientas del core de Oracle 11g
188882
 
les_01_core_database-oracle00000000.ppt.ppt
les_01_core_database-oracle00000000.ppt.pptles_01_core_database-oracle00000000.ppt.ppt
les_01_core_database-oracle00000000.ppt.ppt
mhmdfoad66
 
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
 
Less01 db architecture
Less01 db architectureLess01 db architecture
Less01 db architecture
Imran Ali
 
Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architecture
Simon Huang
 
Ora01_OraArc.pdf
Ora01_OraArc.pdfOra01_OraArc.pdf
Ora01_OraArc.pdf
NamNguynMu
 
Oracle Instance Architecture.ppt
Oracle Instance Architecture.pptOracle Instance Architecture.ppt
Oracle Instance Architecture.ppt
HODCA1
 
Oracle GoldenGate Performance Tuning
Oracle GoldenGate Performance TuningOracle GoldenGate Performance Tuning
Oracle GoldenGate Performance Tuning
Bobby Curtis
 
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
 

Recently uploaded (20)

Salesforce Aged Complex Org Revitalization Process .pdf
Salesforce Aged Complex Org Revitalization Process .pdfSalesforce Aged Complex Org Revitalization Process .pdf
Salesforce Aged Complex Org Revitalization Process .pdf
SRINIVASARAO PUSULURI
 
Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025
kashifyounis067
 
Landscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature ReviewLandscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature Review
Hironori Washizaki
 
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Ranjan Baisak
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
Sales Deck SentinelOne Singularity Platform.pptx
Sales Deck SentinelOne Singularity Platform.pptxSales Deck SentinelOne Singularity Platform.pptx
Sales Deck SentinelOne Singularity Platform.pptx
EliandoLawnote
 
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AIScaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
danshalev
 
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software DevelopmentSecure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Shubham Joshi
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025
kashifyounis067
 
PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025
mu394968
 
Agentic AI Use Cases using GenAI LLM models
Agentic AI Use Cases using GenAI LLM modelsAgentic AI Use Cases using GenAI LLM models
Agentic AI Use Cases using GenAI LLM models
Manish Chopra
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025
mu394968
 
Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025
kashifyounis067
 
Revolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptxRevolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptx
nidhisingh691197
 
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and CollaborateMeet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Maxim Salnikov
 
EASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License CodeEASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License Code
aneelaramzan63
 
Shift Left using Lean for Agile Software Development
Shift Left using Lean for Agile Software DevelopmentShift Left using Lean for Agile Software Development
Shift Left using Lean for Agile Software Development
SathyaShankar6
 
Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)
Allon Mureinik
 
Salesforce Aged Complex Org Revitalization Process .pdf
Salesforce Aged Complex Org Revitalization Process .pdfSalesforce Aged Complex Org Revitalization Process .pdf
Salesforce Aged Complex Org Revitalization Process .pdf
SRINIVASARAO PUSULURI
 
Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025
kashifyounis067
 
Landscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature ReviewLandscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature Review
Hironori Washizaki
 
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Proactive Vulnerability Detection in Source Code Using Graph Neural Networks:...
Ranjan Baisak
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
Sales Deck SentinelOne Singularity Platform.pptx
Sales Deck SentinelOne Singularity Platform.pptxSales Deck SentinelOne Singularity Platform.pptx
Sales Deck SentinelOne Singularity Platform.pptx
EliandoLawnote
 
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AIScaling GraphRAG:  Efficient Knowledge Retrieval for Enterprise AI
Scaling GraphRAG: Efficient Knowledge Retrieval for Enterprise AI
danshalev
 
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software DevelopmentSecure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Shubham Joshi
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025
kashifyounis067
 
PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025
mu394968
 
Agentic AI Use Cases using GenAI LLM models
Agentic AI Use Cases using GenAI LLM modelsAgentic AI Use Cases using GenAI LLM models
Agentic AI Use Cases using GenAI LLM models
Manish Chopra
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025
mu394968
 
Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025
kashifyounis067
 
Revolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptxRevolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptx
nidhisingh691197
 
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and CollaborateMeet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Maxim Salnikov
 
EASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License CodeEASEUS Partition Master Crack + License Code
EASEUS Partition Master Crack + License Code
aneelaramzan63
 
Shift Left using Lean for Agile Software Development
Shift Left using Lean for Agile Software DevelopmentShift Left using Lean for Agile Software Development
Shift Left using Lean for Agile Software Development
SathyaShankar6
 
Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)
Allon Mureinik
 
Ad

01-Oracle 19c-Architecture Overview Oracle

  • 1. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Oracle Database Architecture
  • 2. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 2 Objectives After completing this lesson, you should be able to: • List the major architectural components of Oracle Database • Explain memory structures • Describe background processes • Correlate logical and physical storage structures • Describe pluggable databases • Describe ASM storage components
  • 3. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 3 Database (Storage Structures) Oracle Database Server Architecture: Overview Server process PGA User process Instance Memory Structures (System Global Area) Process Structures Client Server
  • 4. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 4 Oracle Database Instance Configurations D1 D2 I1 I2 I1 I2 I3 D Clustered System Nonclustered System Local Storage Shared Storage
  • 5. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 5 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 User User process Server process Session Connection
  • 6. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 6 Oracle Database Memory Structures Server process 1 Shared pool Database buffer cache Streams pool Large pool Java pool Stack Space System Global Area (SGA) Program Global Area (PGA) Server process 2 User Global Area Stack Space User Global Area PGA Fixed SGA Redo log buffer
  • 7. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 7 Redo log buffer Shared pool Database buffer cache Streams pool Large pool Java pool System Global Area (SGA) Shared Pool • Is a portion of the SGA • Contains: – Library cache — Shared SQL area – Data dictionary cache – Server result cache Shared SQL Area Library Cache Data Dictionary Cache Server Result Cache Other Reserved Pool Fixed SGA
  • 8. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 8 Shared pool Database buffer cache Streams pool Large pool Java pool System Global Area (SGA) Keep pool Recycle 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 Fixed SGA Redo log buffer
  • 9. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 9 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) Redo log buffer Redo log buffer Fixed SGA
  • 10. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 10 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 Shared pool Database buffer cache Streams pool Large pool Java pool System Global Area (SGA) RECYCLE buffer pool Fixed SGA Redo log buffer Large pool I/O buffer Response queue Request queue Free memory Parallel Query Advanced Queuing
  • 11. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 11 Java Pool Java pool memory is used to store all session-specific Java code and data in the JVM. Shared pool Database buffer cache Streams pool Large pool Java pool System Global Area (SGA) Java pool Fixed SGA Redo log buffer
  • 12. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 12 Streams Pool Streams pool memory is used exclusively by Oracle Streams to: • Store buffered queue messages • Provide memory for Oracle Streams processes Shared pool Database buffer cache Streams pool Large pool Java pool System Global Area (SGA) nK buffer cache Redo log buffer Streams pool
  • 13. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 13 Program Global Area (PGA) Server process 1 Stack Space System Global Area (SGA) PGA Shared pool Database buffer cache Streams pool Large pool Java pool User Global Area User Session Data Cursor State Sort Area Hash Area Create Bitmap Area SQL Work Areas Bitmap Merge Area Fixed SGA Redo log buffer
  • 14. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 14 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
  • 15. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 15 Process Structures PMON SMON Others Instances (ASM and Database separate) LREG ARCn DBWn LGWR CKPT PGA Background processes System Global Area (SGA) Required: Optional: Grid Infrastructure Processes (ASM and Oracle Restart) orarootagent ohas ocssd diskmon oraagent cssdagent User process Server process Listener RECO MMON MMNL Others
  • 16. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 16 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
  • 17. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 17 Log Writer Process (LGWR) • Writes the redo log buffer to a redo log file on disk – When a user process commits a transaction – When an online redo log switch occurs – When the redo log buffer is one-third full or contains 1 MB of buffered data – Before a DBWn process writes modified buffers to disk – When three seconds have passed since the last write • Serves as coordinator of LGnn processes and ensures correct order for operations that must be ordered Redo log files LGWR Redo log buffer LGnn LGnn
  • 18. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 18 Checkpoint Process (CKPT) • Records checkpoint information in – Control file – Each data file header • Signals DBWn to write blocks to disk Checkpoint process Data files Control file CKPT
  • 19. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 19 System Monitor Process (SMON) • Performs recovery at instance startup • Cleans up unused temporary segments Instance Temporary segment System Monitor process SMON
  • 20. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 20 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 Process Monitor process Database buffer cache Failed user process User PMON Server process
  • 21. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 21 Recoverer Process (RECO) • Used with the distributed database configuration • Automatically connects to other databases involved in in- doubt distributed transactions • Automatically resolves all in-doubt transactions • Removes any rows that correspond to in-doubt transactions Recoverer process in database A In-doubt transaction in database B RECO
  • 22. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 22 Listener Registration Process (LREG) Registers information about the database instance and dispatcher processes with the Oracle Net Listener listener Instance Memory Structures (System Global Area) Process Structures LREG
  • 23. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 23 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
  • 24. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 24 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
  • 25. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 25 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
  • 26. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 26 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)
  • 27. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 27 Tablespaces and Data Files 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb 8Kb Tablespace 1 Data file 1 Data file 2 Extent 64 KB Extent 64 KB Segment 128 KB Tablespace 2 (Bigfile) Data file 3 Only 1 data file allowed <= 128 TB
  • 28. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 28 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. • The SYSTEM and SYSAUX tablespaces should not be used for application data.
  • 29. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 29 Multitenant Architecture Instance System Global Area Process Structures Server Instance Multitenant container database root container Data files Redo Log files Control files UNDO TEMP SYSTEM SYSAUX Seed PDB Data files SYSTEM SYSAUX SALES PDB SYSTEM SYSAUX TBS2 HR PDB Data files TEMPO Data files TEMP2 PDBid2 PDBid3 PDBid4 PDBid2 PDBid4 All PDBs share: • Background processes • Shared/process memory • Oracle metadata • Redo log files • Control files • Undo tablespace
  • 30. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 30 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
  • 31. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 31 ASM Storage Components Oracle Database Data file ASM allocation unit ASM disk group ASM disk ASM file ASM extent File system ASM
  • 32. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 32 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 Streams pool Large pool Java pool ARCn Redo log buffer Fixed SGA
  • 33. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 33 Quiz The memory region that contains data and control information for a server or background process is called: a. Shared pool b. PGA c. Buffer cache d. User session data
  • 34. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 34 Quiz What is read into the database buffer cache from data files? a. Rows b. Changes c. Blocks d. SQL
  • 35. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 35 Quiz The Process Monitor process (PMON): a. Performs recovery at instance startup b. Performs process recovery when a user process fails c. Automatically resolves all in-doubt transactions d. Writes the redo log buffer to a redo log file
  • 36. Copyright © 2019, Oracle and/or its affiliates. All rights reserved. 2 - 36 Summary In this lesson, you should have learned how to: • List the major architectural components of Oracle Database • Explain memory structures • Describe background processes • Correlate logical and physical storage structures • Describe pluggable databases • Describe ASM storage components